No users - Samba won't allow access

From: Andrew Gatt (sailordwarf_at_hotmail.com)
Date: 03/23/04


Date: 23 Mar 2004 05:22:01 -0800

Hello all,

I'm trying to configure a mini-distribution that contains the Samba
server among other things. I'm actually booting into a userless
environment as in all processes are started as UID 0 and there's no
login going on - it just dumps straight to a shell. I didn't have any
form of passwd or shadow files. Now i've managed to compile and
install Samba and have almost got it configured correctly, expect that
is will not authenticate any users. I can connect from a windows box
which just brings up a username, password dialog and in the samba log
it says:
 
User nobody in passdb, but getpwnam() fails!

Now after some searching i believe its because i don't have a nobody
account and this is what Samba is trying to use to access the shares?
So i manually created a passwd file as:

nobody:x:99:99:Nobody:/:

and a shadow file:

nobody::12471:0:99999:7:::

which i hoped would work. However Samba gives the same errors. Also
running
# id nobody

gives:

unknown user name: nobody

Now my present thinking is that its something to do with how i'm
booting the distribution without any kind of reference to users, i.e.
no login or anything? Or could it be that my user is not created
properly inside the distribution?
Could anyone point me in the right direction??

Any help would be greatly appreciated - i've been pulling my hair out
for a while!!

Thanks
Andrew



Relevant Pages

  • Re: samba
    ... public nobody nobody 58932 jennifer Fri Mar ... I have a FreeBSD box i set up long ago as a file server ... Don't know much about samba but placing your samba configuration file would help many. ... ; client code page=737 ...
    (freebsd-questions)
  • Re: ex3 share write problem with samba
    ... >> I can read my ext3 drive but not write to it. ... > As samba accesses the shares on behalf of a userid associated with the ... > connection, I suspect the userid for your connection was ... Googled around for a bit on 'nobody' and found this link ...
    (comp.os.linux.networking)
  • Samba not showing public share et al.
    ... connection to a windows 2000 LAN ... Samba on the freebsd side has the following smb.conf: ... force group = nobody ...
    (freebsd-questions)
  • Re: Sharing printer on XP for Ubuntu
    ... Arun Shrimali wrote: ... Is any body listening ?? ... problem and till now nobody has found solution. ... It's all done through Samba and/or Cups. ...
    (Ubuntu)
  • FC2 samba password...
    ... I setup the samba 3.0.3-5 in FC2. ... I remove the nobody from smbpasswd and I restart samba, ...
    (Fedora)