Hidden,System Attributes on Directories
Simo Sorce
idra at samba.org
Thu Jan 24 15:32:02 GMT 2002
sometime ago i planned to test a special ACL on files that would store hidden, system, archive. Basically teh idea is to add a fake user named dosbits and add an ACL for user dosbits on the file or directory stornig the three attributes mentioned into rwx attributes of that fake user. The only issue is that you must make usre no one can impersonate that user as it can have read, write and/or execute access to the files of any user setting dos attributes.
On Thu, Jan 24, 2002 at 05:22:57PM -0500, Nick Eggleston wrote:
> I agree.
>
> We do want the backend (unix) files to be portable, such that, if you
> tar/cpio the samba files from one flavor of unix to another, they appear
> identical to the windows clients.
>
> I don't know if the suid/guid/sticky bits are portable across unixes. If
> so, then it seems like a reasonable place to store the directory
> attributes. However, there are already extended NT File attribults (ACLs,
> Streams, Unicode(?)) that do not map directly to the underlying Unix
> system, so some provision must be made to store that information
> separately from the actual files.
>
> Surely the development community has dealt with this issue before. Can
> anyone shed some light?
>
> [sorry, in advance, if this topic is a common one]
>
> Nick
>
>
>
> On Thu, 24 Jan 2002, David Brodbeck wrote:
>
> > Under Linux it'd make more sense to store the DOS attributes as extended
> > user attributes, but obviously that wouldn't be portable. There are other
> > problems with doing it the way it's currently done...for example, if a
> > program manages to set the execute bit on a file, the file becomes hidden.
> > Photoshop does this for some bizarre reason.
> >
> > -----Original Message-----
> > From: Nick Eggleston [mailto:nick at dccinc.com]
> > Sent: Thursday, January 24, 2002 1:03 PM
> > To: samba at lists.samba.org
> > Cc: samba-technical at lists.samba.org
> > Subject: Hidden,System Attributes on Directories
> >
> >
> > Setting Hidden, System, or Archive bits on DIRECTORIES does not work
> > (Samba Ver 2.2.2) . We have it working fine for files, where is maps
> > those permissions to the X flags under Unix. However, directories on Unix
> > require those bits for normal operation, so they would have to be mapped
> > to some other bits (probably suid, sgid and sticky bits) for directories.
> > Unfortunately, I can find no configuration parameters that discuss this
> > issue.
> >
> > [the only other option I can see would me to have a secret look-aside file
> > that stored these setting out-of-band]
> >
> > Would someone(s) please comment on this issue? Has it been addressed
> > previously? Am I just missing something obvious?
> >
> > Thanks!
> >
> >
> >
>
>
--
Simo Sorce idra at samba.org
-------------------------------
Samba Team http://www.samba.org
More information about the samba-technical
mailing list