Mounting CIFS via /etc/fstab

VeeDubbs

Limp Gawd
Joined
Dec 9, 2005
Messages
398
Hi All -

I have used the following mount command in SUSE 11 SP1 successfully, but would now like to stick it in my /etc/fstab so it gets mounted on startup:

Code:
mount -t cifs -o file_mode=0666,dir_mode=0777,username=user,password=pass //10.2.1.41/Docufide /mnt/docufide

Can i put the file_mode and dir_mode commands in my /etc/fstab? If so, where would it go?

Thanks!
 
fstab entries are formatted like

<device> <mount point> <file system> <opts> <dump> <fsck>

You'd put file_mode and dir__mode in the opts column. You could simply copy paste the whole file_mode....password=pass portion into that column and it should work just fine. If using multiple opts, just comma delimit them as you did with your mount command.
 
Back
Top