You are not logged in.

#1 2014-01-03 18:41:46

addamm
Member
Registered: 2014-01-03
Posts: 3

samba: access denied to user 'nobody'

I'm trying to access to a share with no password using nobody user.
Clicking on the share does not appear the dialog box where you need to enter your user name and password: simply told me that access is denied (from both Kubuntu and Win7).

# grep 'nobody' /etc/passwd
nobody:x:99:99:nobody:/:/bin/false
# cat /etc/samba/smbusers 
nobody = guest
# cat /etc/samba/smb.conf
[global]
    workgroup = WORKGROUP
    security = user
    Map to guest = Bad User
    username map = /etc/samba/smbusers

[fooshare]
    comment = blablabla
    path = /path/of/the/share
    guest ok = yes

SOURCE

Last edited by addamm (2014-01-03 19:06:48)

Offline

#2 2014-01-03 19:34:30

addamm
Member
Registered: 2014-01-03
Posts: 3

Re: samba: access denied to user 'nobody'

semi-SOLVED.
The problem is that the path I wanted to share is owned by a user that is not 'nobody'.
- Used a new path in [fooshare] of smb.conf
- created the folder for the new path of [fooshare]
- CHanged OWNer to nobody:nobody

Now I can access to the new share with no password request.

But... Is there a way to access as a guest (with no password) to a share with a path that already has its own owner/group without changing them to nobody:nobody?

Offline

#3 2014-01-05 06:34:52

sluckxz
Member
Registered: 2012-09-04
Posts: 10

Re: samba: access denied to user 'nobody'

-  security = user
+  security = share

"Note, security levels for a single Samba server cannot be mixed."
As it seems like you are possibly trying to mix both from your config file.

Share-level access is far less secure and old.
http://www.samba.org/samba/docs/using_s … -9-TABLE-4
but still works fine.

some concise examples https://www.centos.org/docs/5/html/Depl … rvers.html

more
http://www.samba.org/samba/docs/man/Sam … #id2559439

Offline

Board footer

Powered by FluxBB