The network name cannot be found - addition
rsharpe at richardsharpe.com
Tue Jun 24 15:01:39 GMT 2003
On Tue, 24 Jun 2003, dsrc wrote:
dscr, whose email does not work, complains of problems accessing a share:
> Apparently, the share inherits the ownership and access rights of its
> parent directory (possibly all the way up to the parent directory, just
> off the root). This is my setup:
> Samba verion 3.0a20 running on FreeBSD v4.8
> Directory "/raid" contains the subdirectory that I want to share.
> Permissions for "/raid" = "774"
> Owner:Group = "root:wheel"
Ah-ha. Samba tries to chdir to the root of the share. Without O:X, no one
but root and members of wheel can do that.
Solution: chmod o:x /raid
> Want to share directory:
> Permissions for /raid/download = "775"
> Owner:Group = "root:staff"
> From the file "/etc/group":
> Parts of the file "/usr/local/etc/smb.conf":
> encrypt passwords = yes
> security = user
> path = /raid/download
> public = no
> printable = no
> guest ok = no
> writeable = yes
> write list = @staff
> Those who are only members of the group "staff" are denied access to the
> share "download". My guess is that for the shared directory, Samba is
> having the share inherit the group ownership rigts of the parent
> directory of "/raid/download" which is "/raid" with owner "root:wheel".
> The group "staff" does not own it so can only see it because of the
> rights "774" assigned to the "/raid" directory. Interesting was that
> when using an account that is member of wheel I could browse through
> share and subdirectories just fine. This is what led me to conclusion
> about share inheritting rights of parent directory.
> Mark B
Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org,
More information about the samba-technical