[oclug]managing permissions with smbfs

Joe Burpee jeb at burkby.com
Sat Jan 25 18:05:01 EST 2003


On Sat, Jan 25, 2003 at 02:51:25PM -0500, Michael P. Soulier wrote:
> On 25/01/03 Joe Burpee did speaketh:
> > There's no executable flag on a FAT fs, so I assume it's not supported
> > by Samba either.  DOS uses "extensions" (suffixes) like .EXE, etc.  You
> > can do `mount -t smbfs -o fmask=...' but that's pretty crude.
>     But that wouldn't work either. That only affects how the files are
> displayed when mounted. It still has no effect on the files' permissions on
> the server. 
>     I can't be the only one mounting a cgi-bin directory through samba, who
> has to ensure that the files are executable. 
 
I.e. executable on the server.  With Samba, a Windows client sees a
remote filesystem that looks like its own.  An executable file is
supposed to be executable on the client.  Whether it's executable on the
server is irrelevant.

But Samba supports ACLs, so Windows clients are able to access more than
the 4 FAT16 attributes (including an "executable" flag).  Whether a
Linux client can see them depends on smbfs.  In my experience smbfs only
supports the 4 DOS flags; and the smbclient man page seems to confirm
this.  I don't know of any alternative to smbfs.  8-(

What about nfs?

Joe

-- 
Joseph E. Burpee
GPG Fingerprint: 9188 AB4F A7B6 4AE5 9FB7  EF30 BE9B B1A2 9F6C BB8B



More information about the OCLUG mailing list