Wednesday, May 4, 2011

Samba File System on SuSE

To mount a samba file system (CIFS) on SLES 11, do the following

1. Edit the file of /etc/samba/smbfstab, specify the source location, mount point, username and password. Below is an example
//fjall/test /data/test cifs username=tridge,password=foobar
2. Mount the directory by
rcsmbfs start
3. Turn on smbfs service.
chkconfig smbfs on

For OpenSuSE 11.4, the file used for samba client is /etc/samba/cifstab. And the corresponding command is changed to rccifs, and we can turn the service on by "chkconfig cifs on". 

Or do the manually every time, we can run
mount -t cifs -ousername=tridge,password=foobar //fjall/test /data/test

No comments: