504 Part IV . Implementing Network Services in SUSE Linux The directory on which you want to mount the SMB share must already exist. The mount command actually executes a command called smbmount, which is usually a symbolic link to the command /sbin/mount.smbfs. After executing this command, you will be prompted for the Windows password associated with the specified user. Tip You can also execute a command as a user other than the root user by using the sudo command, which lets users execute commands as privileged users (sudo means do with a substitute user ID ). The privileged commands and the users who can perform them are listed in the file /etc/sudoers. If you have a valid entry in the /etc/sudoers file, you will be prompted for your password and then again for the Windows password associated with the specified user. If you do not have a valid entry in the /etc/sudoers file, there isn t much point in using the sudo command, but if you do you will be prompted for the root password and then again for the Windows password associated with the specified user. You can enable users to execute privileged commands by executing the visudo command as the root user, which enables you to edit the /etc/sudoersfile using the vitext editor. For more information about the sudo command, execute the man sudo command in a console window or xterm. For more information about the /etc/sudoers file, execute the command man sudoers. Tip Just like any other partitions or network drives, you can automatically mount SMB shares 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: //SUSE/wvh /mnt/smb/wvh smbfs username=wvh,password=foo,uid=578,gid=500 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 that you are mounting. The fourth field provides options that you want to use when mounting the SMB share, and 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. For SMB shares, the mount parameters that you have to pass in the mount options field include the username that you want to use for authentication with the Samba server, your password, and the user and group IDs that you want to associate with the mounted filesystem so that only you can read and write files in the Samba share. 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 such as chmod 600 /etc/fstab, or else anyone in the know can view the file and find out your Windows password probably not a good idea.
Note: In case you are looking for affordable and reliable webhost to host and run your business application check Vision ftp web hosting services