Using YaST to Set Up Samba Client Services

The YaST module for Samba client services is labeled Windows Domain Membership in the network Services menu. This can be started manually from the command line with the command yast2 samba-client.

continued

(continued)

YaST's Samba client module allows you to set the current machine as a member of a Windows Domain or workgroup. In the case of a traditional Windows NT-style domain or Active Directory domain, selecting the box ''Also use SMB information for Linux Authentication'' allows you to authenticate against the Windows Domain. This changes the Pluggable Authentication Module (PAM) setup so that your primary logon is the Domain authentication.

MBUi -i i!. J^W1 Just like any other partitions or network drives, you can automatically mount SMB

K-'j ^ .■¿•CV-.wshares when your system boots by adding them to your system's /etc/fstab file. To do this, create a standard /etc/fstab entry such as the following:

//BOOJUMWIN/photos /photos cifs username=roger,password=xxxx, uid=1000,gid=100 0 0

The first field defines the name of the SMB share that you want to mount. The second field is the directory on your system where you want to mount the drive, and the third field is the type of filesystem (in this case cifs) that you are mounting. The fourth field provides options that you want to use when mounting the share. Here we are specifying the username and password that will be passed to the remote server and the user ID and group ID of the user to whom the files in the mounted share belong. The fifth and sixth fields define when you want to back up the filesystem and when you want to check the consistency of the filesystem at boot time. These values are almost always 0 (zero) for networked filesystems, which means never.

Because you have to enter your password, you should also make sure that the /etc/fstab file is not publicly readable by executing a command (as root) such as chmod 600 /etc/fstab. Otherwise, anyone in the know can view the file and find out your Windows password — probably not a good idea.

Was this article helpful?

0 0

Post a comment