Web page design - 744 Part V . Running Servers 2. Add
744 Part V . Running Servers 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 in to 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. Checking the Status of Shared Directories The smbstatus command can view who is currently using Samba shared resources offered from your Linux system. The following is an example of the output from smbstatus: Note
In case you need affordable webhost to host your website, our recommendation is ecommerce web host services.