User manual

3 Software Configuration
3.7.5. Samba
Samba
18
is an Open Source/Free Software suite that has, since 1992, provided file and print ser-
vices to all manner of SMB/CIFS clients, including the numerous versions of Microsoft Windows
operating systems. Samba is freely available under the GNU General Public License.
To share an extra directory for users create this directory:
mkdir /samba
Edit /etc/samba/smb.conf:
[global]
workgroup = debian
netbios name = debianserver
server string = %h server (Samba %v)
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
[SAMBA]
path=/samba
browseable=yes
writeable=yes
valid users = user
admin users = debian
Now you need to restart the samba to take the new changes effect:
/etc/init.d/samba restart
3.7.6. Web Server (Apache2.2)
The Apache HTTP Server Project
19
is an effort to develop and maintain an open-source HTTP
server for modern operating systems including UNIX and Windows NT. The goal of this project
is to provide a secure, efficient and extensible server that provides HTTP services in sync with
the current HTTP standards. Apache has been the most popular web server on the Internet since
April 1996.
In addition to the Apache2 packages the openssl package is installed to enable a SSL certificate
creation. Apache2 is already equipped with SSL certificate and is ready to accept https connections
needed for example to configure mail server via webadmin tool (see 3.7.7) . To create your own
certificate or to install the official certificate take a look at the following paragraph.
How to Configure SSL? To enable https connections, a SSL certificate must be created and then
registered by the Apache2 web server:
1. mkdir /etc/apache2/ssl/
2. openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/ssl/apache.pem
-keyout /etc/apache2/apache.pem
3. chmod 600 /etc/apache2/ssl/apache.pem
18
http://us3.samba.org/samba/
19
http://httpd.apache.org/
May 2014 OnRISC User Manual 21