a proposed update

Simo Sorce simo.sorce at xsec.it
Fri Mar 19 09:40:00 GMT 2004


Sorry Dave but this is not an acceptable proposal for a number of
motivations.

First that come to mind are:

- the symlink will not follow the file, if you rename the original file
from unix and then renamre another unix file with the prevoius original
file name, you end up with problems

- it cludges the unix file view

- it make samba double slow when parsing a directory, and that happens a
lot on browsing on a file open.


The "right thing"(TM) to do is to store these attributes in EAs (Extendd
Attributes). Many filesystems today have EAs support so that is the
right direction.

Simo.

On Fri, 2004-03-19 at 01:57, Dave Henderson wrote:
> Hi everyone...
>  
>      My name is Dave Henderson.  I am working on a project that requires the use of DOS attributes.  While searching through google groups it looks like there has been issues with being able to find a good way to map these DOS attributes over to linux since Linux uses the "rwx" permissions.  This creates trouble between Windows and Linux.  I propose an addition to samba.  Instead of adjusting the actual file's linux "rwx" permissions, is it possible to create a soft link to the file and use the links group and world permission set to "store" the DOS attributes for the actual file.  These soft links need to be hidden from the browsers of the samba share.  An example of my idea is below:
>  
>      We have a samba server that serves Windows clients.  One of the files on the samba server is called myfile.doc.  In the updated version of samba, samba will create a hidden link file with the same name as the acutal file:
>  
> myfile.doc   (this is the actual file and its seen by the Windows clients to get the appropriate file size, date info, etc.)
> .myfile.doc  (this is the file samba created to store the DOS attributes that get adjusted by the Windows clients.)
>  
>     The following linux permissions for the .myfile.doc soft link file controll the DOS attributes as follows:
>  
> rwx rwx rwx
>       | | |  | | |
>       | | |  | | ` - Files hidden attribute
>       | | |  | ` - Files system attribute
>       | | |  ` - Files read only attribute
>       | | ` - Files archive attribute
>       ` ` - Both can be used for future use
> ^^^
> ` ` ` - these three don't need to be adjusted (so the owner can delete this file in linux).
>  
>      Any directories created can follow this same idea.  The reason for creating the link files is because 1) there is no size increase using this update 2) it allows for added security in linux because you can keep your permissions secure on the acutal file while maintaing the DOS attributes with the link file 3) this can be applied to both files and folders (directories).
>  
> 
> Thanks,
> Dave Henderson
> 
> 
> Do you Yahoo!?
> Yahoo! Mail - More reliable, more storage, less spam
-- 
Simo Sorce - simo.sorce at xsec.it
Xsec s.r.l. - http://www.xsec.it
via Garofalo, 39 - 20133 - Milano
mobile: +39 329 328 7702
tel. +39 02 2953 4143 - fax: +39 02 700 442 399


More information about the samba-technical mailing list