Weblog entry #1 for ostracon

Samba server, smbmount, undesired -x perms
Posted by ostracon on Mon 12 May 2008 at 16:54
Tags: none.

Samba server and smbmount client give me executable permission for all files on the share. How would I disable this undesired behavior?

Here is my mount syntax:

smbmount //server/share share
touch share/file.txt
ls -l share
-rwxr-xr-x 1 user user 0 2008-05-12 16:00 file.txt

I've tried the following /etc/samba/smb.conf parameters with no success:

[global]
  map archive = no
[share]
  create mask = 0660
  directory mask = 0770
  force create mask = 0660
  force directory mode = 0770

OS and all packages are all stock standard Debian Etch/stable:

Samba server:
  Samba 3.0.24-6etch9

Client PC:
  smbfs 3.0.24-6etch9

 

Comments on this Entry

Posted by Anonymous (147.173.xx.xx) on Tue 13 May 2008 at 15:47
Your filesystem is not FAT32 ? because in this case, you can't change the x perms

[ Parent | Reply to this comment ]

Posted by ostracon (70.184.xx.xx) on Wed 14 May 2008 at 14:45
[ Send Message | View Weblogs ]
The Samba server filesystem is EXT3, not FAT32. And the client mount is, of course, SMBFS.

Any other ideas? Anyone? Bueller?

[ Parent | Reply to this comment ]

Posted by andyr (158.37.xx.xx) on Thu 15 May 2008 at 10:23
[ Send Message ]
You could try :
smbmount //server/share share -ofmask=0660

[ Parent | Reply to this comment ]

Posted by ostracon (70.184.xx.xx) on Sun 18 May 2008 at 02:19
[ Send Message | View Weblogs ]
Evidently the solution is to use /sbin/mount.cifs and /sbin/umount.cifs (which are both SUID by default) instead of /usr/bin/smbmount and /usr/bin/smbumount. The former provide for proper permissions, but at the cost of some higgledlies with /etc/mtab and/or /proc/mounts at unmounting.

[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search