VMware Images:
|
Ubuntu 7.10 (Gutsy Gibbon) Samba Standalone Server With tdbsam Backend
Ubuntu 7.10 (Gutsy Gibbon) Samba Standalone Server With tdbsam BackendVersion 1.0 This tutorial explains the installation of a Samba fileserver on Ubuntu 7.10 and how to configure it to share files over the SMB protocol as well as how to add users. Samba is configured as standalone server, not as a domain controller. For this setup, I will use the Ubuntu Server installation CD but the same installation procedure will work on an Ubuntu desktop as well. In the resulting setup, every user has its own home directory accessible via SMB protocol and all users have a shared directory with read / write access.
Installing SambaConnect to your server on the shell, or open a shell window if your Ubuntu server has a desktop installed. To become root user, execute this command: sudo su and enter the password of the user that you created during Ubuntu installation. Install the Samba packages: apt-get install libcupsys2 samba samba-common Edit the smb.conf file: vi /etc/samba/smb.conf In the global section, remove the ";" at the front of the line security = user so it looks like this: security = user to enable Linux system users to log in to the Samba server. Close the file and restart Samba: /etc/init.d/samba restart
Adding Samba SharesNow I will add a share that is accessible by all users. Create the directory for sharing the files and change the owner to the users group. mkdir -p /home/shares/allusers At the end of the file /etc/samba/smb.conf add the following lines: [allusers] comment = All Users path = /home/shares/allusers valid users = @users force group = users create mask = 0660 directory mask = 0771 writable = yes If all users shall be able to read and write to their home directories via Samba, add the following lines to /etc/samba/smb.conf: [homes] comment = Home Directories browseable = no valid users = %S writable = yes create mask = 0700 directory mask = 0700 Now we restart Samba: /etc/init.d/samba restart
Adding and managing usersIn this example, I will add a user named tom. You can add as many users as you need in the same way, just replace the username tom with the desired username in the commands. useradd tom -m -G users Set a password for tom in the Linux system user database. If the user tom shall not be able to login to the Linux system, skip this step. passwd tom -> Enter the password for the new user Now add the user to the Samba user database. smbpasswd -a tom -> Enter the password for the new user Now you should be able to log in from your Windows workstation with the file explorer using username tom and the chosen password and store files on the Linux server either in tom's home directory or in the public shared directory.
Links
|






Recent comments
3 hours 7 min ago
6 hours 4 min ago
6 hours 38 min ago
13 hours 42 min ago
15 hours 29 min ago
15 hours 43 min ago
16 hours 55 min ago
18 hours 17 min ago
1 day 2 hours ago
1 day 7 hours ago