09.21
Step 1: Installing SAMBA
Install Samba on your Ubuntu Server
apt-get install samba
Edit you Aptitude source list so you can install Webmin (nice all-in tool for your Linux server)
vi /etc/apt/sources.list
Add the following line to the bottom of the sources.list
deb http://download.webmin.com/download/repository sarge contrib
Update your aptitude to check for changes in the sourcelist
apt-get update
You need a GPG key for the signed repository. Go to a location to temporary download the key, like:
cd /root
Download the key by using the following command
wget http://www.webmin.com/jcameron-key.ascAdd the key for use with your repository
apt-key add jcameron-key.asc
Install Webmin
apt-get install webmin
Step 2: Configure SAMBA using the file /etc/samba/smb.conf
useradd %USERNAME% -m -n -c “Username”
-m stands for creating a homedrive
-n stands for creating the user with a default group instead of creating every user his own group
-c You can add the users Full Name as comment
passwd %USERNAME% {password for unix account}
smbpasswd -a %USERNAME% {create samba account for just created unix account}
Step 3: Configure SAMBA to work with ACL
When you set up a Samba server, you will need more than the ability to CHMOD files/directories. ACL is sort of an extended version of CHMOD, which almost has the same abilities as the file permissions on a Windows environment.
Install the ACL package:
apt-get install acl
modify your etc/fstab to allow ACL to give rights on the chosen filesystems:
vi /etc/fstab
Save the modified file and reboot the system.
To use ACL, you can use the command “getfacl“ and “setfacl“
You can use the helpfiles on how to use these commands.