Matisse Enzer
2002-Jul-26 15:28 UTC
[Samba] Mac OS X -- Unable to initgroups. on every anonymous connection.
I'm using Samba 2.2.5 on Mac OS X 10.1.5
Connecting to the share "public" with no username or password works
fine, but, this error message appears in the log every time:
[2002/07/26 15:15:54, 0] smbd/sec_ctx.c:initialise_groups(229)
Unable to initgroups. Error was Input/output error
What am I doing wrong?
smb.conf file:
[global]
workgroup = OSXGROUP
log file = /var/log/samba.log
max log size = 50 ; maximum of 50Kb in log file
encrypt passwords = yes
guest account = unknown
[homes]
guest ok = no
read only = no
[public]
path = /tmp
read only = no
comment = Guest Area
guest ok = yes
--
-------------------------------------------
Matisse Enzer
matisse@matisse.net
http://www.matisse.net/
Jay Ts
2002-Jul-26 18:10 UTC
[Samba] Mac OS X -- Unable to initgroups. on every anonymous connection.
> > I'm using Samba 2.2.5 on Mac OS X 10.1.5 > Connecting to the share "public" with no username or password works > fine, but, this error message appears in the log every time: > > [2002/07/26 15:15:54, 0] smbd/sec_ctx.c:initialise_groups(229) > Unable to initgroups. Error was Input/output error > > What am I doing wrong?The error is caused when Samba calls the C library's initgroups() function, and it runs into some kind of trouble. initgroups() needs to read /etc/group. Did you make sure the account you are using as your guest account exists? And is in a group that exists in the system? Make sure you have a /etc/group file and that it is non-corrupt, and readable. The "Input/output error" suggests (?) that there might be something wrong with the file. (BTW, I'm using Linux here, so I hope OS X isn't too far different. Try reading the initgroups(3) manual page on your system to check.) Jay Ts author, Using Samba, 2nd edition