objective : mount the same share to 2 folders with different permissions.
I used to use:
now that smbfs, dmask, fmask, and long-password are deprecated or something I am using:Code:mount -t smbfs -o username=user,password=long-password,fmask=0555,dmask=0555,gid=1000 //ip/share /media/folder
I have tried various combinations but I can't get mount to mount more then one time eg:Code:mount -t smbfs -o username=user,password=short-password,dir_mode=0555,file_mode=0555,gid=1000 //ip/share /media/folder
//ip/share to /media/folder
and
//ip/share to /media/otherFolder
I tried to use mount --bind to get around this but it ignores my masks/modes.
If anyone can shine some light on this I would be most grateful.
cat /proc/version
Linux version 2.6.24-19-generic (buildd@terranova) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Wed Aug 20 22:56:21 UTC 2008




Bookmarks