[Samba] unable to open file /etc/samba/smbpasswd. Error was Permission denied

Lawrence Strydom jls at midafrica.com
Wed Apr 14 04:52:44 GMT 2004


I am trying to get domain logons to work with SuSE 9.0 and
samba-2.2.8a-107 with win2k and xp clients.

When using just a workgroup, and user level security, users can access
shares after providing the logon string - no problems.

However, when I activate domain logons = yes and try to join the clienbt
to the domain, I get unkkknown username errors. I checked my log files
and found the following entry:
[2004/04/14 06:47:30, 2]
  Returning domain sid for domain RPC ->
[2004/04/14 06:47:30, 2]
  samr_io_userinfo_ctr: unknown switch level 0x1a
[2004/04/14 06:47:30, 0]
  api_samr_set_userinfo: Unable to unmarshall SAMR_Q_SET_USERINFO.
[2004/04/14 06:47:30, 2] passdb/pdb_smbpasswd.c:startsmbfilepwent(170)
  startsmbfilepwent_internal: unable to open file /etc/samba/smbpasswd.
Error was Permission denied
[2004/04/14 06:47:30, 0] passdb/pdb_smbpasswd.c:pdb_getsampwrid(1418)
  unable to open passdb database.
[2004/04/14 06:47:31, 2] smbd/server.c:exit_server(511)
  Closing connections
[2004/04/14 06:47:32, 2] smbd/server.c:exit_server(511)
  Closing connections

OK. Logical thing would be to change permissions on /etc/samba/smbpasswd
so I set it to chmod 666.

NOw here is where it gets weird. As soon as I try to join the client,
the permissions on smbpasswd is reset to 600!?!?


Any ideas please?



More information about the samba mailing list