You are not logged in.
I am having a few problems with a cifs mount. First off, I can't mount the share unless I am root..kind of annoying. Secondly..whenever I create a new file on the cifs share, its permission default to read only. How do I go about specifying the default permissions.. After looking around recently..I've come across the "file_mode" argument in fstab, but it fails to do anything :s When I check the permisisons, they're still read only..
Offline
hmmm in the "options" column of your fstab (or the options passed to mount), add "users" (or is it "user"?) to allow users to mount it... also "umask=644" will give read access by default....
Offline
Yah, I have user in the fstab, but I still get an error..
mount error 1 = Operation not permitted
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
And with umask to 755, still presents read only permissions. Hmm.. I've searched all over for answers and just ended up confused. Here is my current fstab
//web1-04/cacemic$ /mnt/pweb cifs user,noauto,credentials=/etc/cifs/cifs.web,umask=755 0 0
Offline
try the "rw" flag? also try replacing "user" with "users"
Offline
Same thing. Is there possibly a permissions issue with /sbin/mount.cifs?
lrwxrwxrwx 1 root root 18 2005-04-17 19:14 /sbin/mount.cifs -> /usr/bin/cifsmount
-rwxr-xr-x 1 root root 18572 2005-04-16 12:36 /usr/bin/cifsmount
Offline
Altough 2 years later.. I had the same problem:)
I solved it by disabling CIFS Linux Extensions (cat 0 > /proc/fs/cifs/LinuxExtensions..or something).
This was the only way for file_mode and dir_mode to work. Alas, if these Linux Extensions don't already do what you mean;)
Offline
chmod +s /sbin/mount.cifs
chmod +s /sbin/umount.cifs
to solve the problem
my fstab
//192.168.0.3/D /mnt/pepi cifs username=Alexandru,password=1,noauto,users,uid=wonder,gid=users,file_mode=0644 0 0
Last edited by wonder (2007-08-11 20:11:05)
Give what you have. To someone, it may be better than you dare to think.
Offline