Just a followup from google searching for a solution to this. 'chmod a-w' does not work for me if the mounting is done by the user, with an entry in fstab.
(I'm using cifs to mount windows server share, Ubuntu 8.04.)
/etc/fstab entry:
//10.0.0.15/winshare /media/backupsrv cifs rw,user,noauto,username=foo,password=bar 0 0
========
: ls -l /media/backupsrv
drwx------ 2 maint root 4096 2010-03-13 01:01 backupsrv
: mount //10.0.0.15/winshare
(success)
: umount //10.0.0.15/winshare
(success)
=========
: chown a-w backupsrv
: ls -l /media/backupsrv
dr-x------ 2 maint root 4096 2010-03-13 01:01 backupsrv
: mount //10.0.0.15/winshare
mount error: permission denied or not superuser and mount.cifs not installed SUID
,
Last edited by DMahalko; 03-31-2010 at 02:05 AM.
Reason: I see cifs should be used rather than smbfs, no effect on issue
|