View Single Post
  #7   (View Single Post)  
Old 7th July 2008
kazcor kazcor is offline
Real Name: Registreed Usre
Port Guard
 
Join Date: May 2008
Location: bliner, erg
Posts: 20
Default

Sorry, my mistake
Of course, fstab handles whitespace as delimeters between the various fstab fields. So if you need to specify options that require further parameters, you will require some sort of workaround.
I don't know how the fstab is parsed, so maybe even this solution may help:
Code:
//tdonnelly@otter/music   /mnt/Music   smbfs   rw,-N,-g\ 0, -u\ 1001
In any case as mentioned in the manpage, it should be possible to assign the user/group settings to the destination directory, before mounting to get this issue solved.

Another way would be to create a script in /sbin that does the dirty work for you. E.g. create something like mount_smbfs2 which then calls mount_smbfs with the correct options and in the fstab provide smbfs2 as filesystem type
Reply With Quote