I recently upgraded samba from samba-2.2.1a-4 to samba-2.2.7-2.7.2 on Red Hat 7.2 and a guest share stopped working. The share is defined as: [test] comment = Test path = /test browseable = yes guest ok = yes guest account = intranet writable = yes It looks like with the new version samba has started accessing the file system as user nobody, which doesn't work. This is my smb.conf global section: [global] workgroup = IT server string = Samba Server printcap name = /etc/printcap load printers = yes printing = lprng log file = /var/log/samba/%m.log max log size = 0 security = domain encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = no The shared directory is owned by intranet: [root@rhtest1 test]# ls -ld /test drwxr-xr-x 2 intranet intranet 1024 Mar 25 11:55 /test I'm connecting to the share with a domain account, which is not in /etc/passwd. Here are log excerpts from the working and broken versions: (works) [2003/03/25 13:06:27, 1] smbd/service.c:make_connection(606) soitsw (10.20.10.158) connect to service test as user intranet (uid=507, gid=511) (pid 17637) (broken) [2003/03/25 13:05:43, 1] smbd/service.c:make_connection(636) soitsw (10.20.10.158) connect to service test as user intranet (uid=99, gid=99) (pid 17588) As you can see, in the broken case samba has got the wrong uid/gid. Can anyone help me find out what's causing this? Regards, Steve Woodcock
Bradley W. Langhorst
2003-Mar-25 14:24 UTC
[Samba] Guest account not working after upgrade
On Tue, 2003-03-25 at 08:17, Woodcock, Steve wrote:> I recently upgraded samba from samba-2.2.1a-4 to samba-2.2.7-2.7.2 on Red > Hat 7.2 and a guest share stopped working. > > The share is defined as: > > [test] > comment = Test > path = /test > browseable = yes > guest ok = yes> guest account = intranetI think this belong in the global section... brad -- Bradley W. Langhorst <brad@langhorst.com>
> > guest account = intranet > I think this belong in the global section...Thanks, that fixes it. Funny, my smb.conf man page has "guest account (S)" which should put it in the service section. Regards, Steve Woodcock