Note

You must supply a username of an existing system user, but the password used for Samba access does not have to match the existing user's password.

When finished, click the Add New User button. SWAT then creates the username and password and displays Added user username (where username is the name you entered). The new Samba user should now be able to gain access to the home directory from any allowed host if the Samba (smb) server is running.

For example, if you have set up Samba on a host named mini that has a user named andrew, the user can access the home directory on mini from any remote host (if allowed by the Globals settings), perhaps by using the smbclient command like so:

$ smbclient //mini/andrew -U andrew added interface ip=192.168.2.68 bcast=192.168.2.255 nmask=255.255.255.0 Password:

Domain=[MYGROUP] OS=[Unix] Server=[Samba 2.2.5] smb: \> pwd

Current directory is \\mini\andrew\ smb: \> quit

Click the Status icon (as shown in Figure 22.2 or 22.4) to view Samba's status or to start, stop, or restart the server. You can use various buttons on the resulting web page to control the server and view periodic or continuous status updates.

You can also use SWAT to share a Linux directory. First, click the Shares icon in the toolbar at the top of the main Samba page (refer to Figure 22.2). Then, type a share name in the Create Shares field, and then click the Create Shares button. The SWAT Shares page displays the detailed configuration information in a dialog box, as shown in Figure 22.5, providing access to detailed configuration for the new Samba share.

Was this article helpful?

0 0

Post a comment