Chapter 26 . Running a File Server 687 (Web site management)
Chapter 26 . Running a File Server 687 users have their own accounts.) Then you need to add SMB passwords for each user. For example, here is how you would add a user whose Windows workstation login is chuckp: 1. Type the following as root user from a Terminal window to add a Linux user account: # useradd -m chuckp 2. Add a Linux password for the new user as follows: # passwd chuckp Changing password for user chuckp New UNIX password: ******** Retype new UNIX password: ******** 3. Repeat the previous steps to add user accounts for all users from Windows workstations on your LAN that you want to give access to your Linux system to. 4. Type the following command to create the Samba password file (smbpasswd) on Fedora Linux systems: # cat /etc/passwd | /usr/bin/mksmbpasswd.sh > /etc/samba/smbpasswd (In Debian systems, use the /usr/sbin/mksmbpasswd command instead of mksmbpasswd.sh.) 5. Add an SMB password for the user as follows: # smbpasswd chuckp New SMB password: ********** Retype new SMB password: ********** 6. Repeat this step for each user. Later, each user can log into Linux and rerun the passwd and smbpasswd commands to set private passwords. In the most recent version of Samba, there are options available in the smb.conf file that cause SMB and Linux passwords to be synchronized automatically. See descriptions of the passwd program, passwd chat, and UNIX password sync options in the SWAT section of this chapter. Starting the Samba Service When you have your Samba configuration the way you would like it, restart the Samba server as described earlier in the Getting and Installing Samba section. You can now check SMB clients on the network to see if they can access your Samba server. Testing Your Samba Permissions You can run several commands from a shell to work with Samba. One is the testparm command, which you can use to check the access permissions you have set up. It lists global parameters that are set, along with any shared directories or printers. Note
We recommend you use shared web hosting services, because many users agree that it is cheap, reliable and customer-satisfying webhost.