Configure a Cifs client to mount on boot a windows shared resource:
First we need to make the client start on boot:
#ch_rc -p RUN_CIFSCLIENT -l > /dev/null ; if [ $? -eq 0 ] ; then ch_rc -a -p RUN_CIFSCLIENT=1 ; fi
We fire up the client:
# /sbin/init.d/cifsclient start
The CIFS Client is up; process id 25397, started 09:47:42
We store our windows mount in the cifs client DataBase:
# cifsmount //W08D.EF.EG/SALV /mnt -s
#cifslist
Mounted Object Mountpoint State
-------------------------------------------------------------------------------
\\W08D.EF.EG\SALV /mnt MS
Now we have the FS mounted but we don't have permissions to navigate it, because we haven't validated against the widows server or Domain controller:
# cd /mnt
cd: permission denied: /mnt
We login as the user who needs to use the mount, we can have several users, we are going to map root and save it in the cifs database:
#cifslogin W08D.EF.EG -U dp -D MD -s
dp password on W08D.EF.EG:
# cifslist
Mounted Object Mountpoint State
-------------------------------------------------------------------------------
\\W08D.EF.EG\SAL /mnt M
=================================================
Server Local User Remote User Domain State
-------------------------------------------------------------------------------
W08D.MDE root dpar-00 MD LS
# cd /mnt
# ls
2-02-10_134 Cani Edos ORL Rein
2-02-10_151 En
After we reboot the server our /mnt gets auto mounted:
# bdf | grep mnt
w08d.mdef.es:/sal 20466 12249 8216 60% /mnt
All passwords are stored in the cifsclient database.with the command cifsdb you can delete mounts or users from the database:
#cifsumount /mnt
#cifsdb -d root
# cifsdb -d W08D.MD.EG
# cifslist
Mounted Object Mountpoint State
-------------------------------------------------------------------------------
===============================================
Server Local User Remote User Domain State
-------------------------------------------------------------------------------
More doc info form HP: