Why are all files listed as read-only?

Cole, Timothy D. timothy_d_cole at md.northgrum.com
Wed Oct 6 20:14:18 GMT 1999


> -----Original Message-----
> From:	shapi003 at mc.duke.edu [SMTP:shapi003 at mc.duke.edu]
> Sent:	Wednesday, October 06, 1999 16:03
> To:	Multiple recipients of list SAMBA-TECHNICAL
> Subject:	Why are all files listed as read-only?
> 
> user:     stuff
> group: stuff
> 
> chmod 575 *              (i.e., rx rwx   rx)
> 
> /etc/group
>      stuff::puffin
> 
> In NT if you map drive (net use * \\server\stuff /user:puffin password )
> and
> then right click on any file on mapped drive and look in properties, the
> files
> are set are read only.  Why is the read-only attribute on?
> 
	In current versions of Samba, the read-only attribute corresponds
directly to the inverse of the owner read persmission (0200), irrespective
of any other permissions.  The major advantage of doing it this way is that
the mapping behaves consistently, regardless of the subject.

	I believe you can disable the read-only mapping entirely with "map
readonly = no" in your smb.conf if you wish.

> If I do an ls -la on nt on mapped drive to unix system it shows all files
> with
> read-only      r r r
> 
	I suspect the NT ports of the shell utilites you are using do not
understand NT ACLs, and so synthesize permission masks from the file
attributes.  i.e., if the file is marked read-only, you get 0444, else you
get 0666.


More information about the samba-technical mailing list