[Samba] Questions about sub-folders, access...?

Warren Beldad advisory22 at gmail.com
Thu Feb 23 03:18:05 GMT 2006


On 2/22/06, Alberto Moreno <portsbsd at gmail.com> wrote:
>
> Hi people, iam testing samba3 on freebsd 5.4, i install samba from ports
> with no problems, i have this simple smb.conf file:
>
> [global]
>        workgroup = WORKGROUP
>        netbios name = FREEBSD
>        server string = Samba Server FreeBSD
>        security = user
>        encrypt passwords = yes
> [public]
>        comment = %h Shared Public Directory
>        path = /opt/test
>        force directory mode = 0777
>        force create mode = 0777
>        force group = nobody
>        force user = nobody
>        public = yes
>        writeable = yes
>        read only = no
>
>   My problem right now is that i want to create one folder with the user X
> inside this share and give access to  user Y to that sub-folder, them i
> create the folder with the user X from windows 2000, smbd create the
> folder
> with this permisions:
>
> root# getfacl test
> #file:test
> #owner:65534
> #group:0
> user::rwx
> group::rwx
> other::rwx
>
> The owner is nobody like the smb.conf say, the group 0 is wheel, ok here
> everybody can access the folder, but what about if i only want to give
> access to the owner(X user) and the user Y...?
>
>   Ok, after rading some docs, i do this:
>
> Go to freebsd login with root and change the folder rights:
>
> root# chown X:Y /opt/test/NewFolder
> root# chmod 770 /opt/test/NewFolder
>
>   Now user X or Y if try to access the folder from windows 2000 smbd say
> \\Freebsd\public\test is not accessible Access is denied


yes, maybe access denied because you connect to public as user "nobody" and
then you access a subfolder in it where only user:group X:Y has the
permission.


More information about the samba mailing list