[Samba] Problems on HP-UX 11i with 'user add script'

Ryan Novosielski novosirj at umdnj.edu
Tue Jan 4 21:49:14 GMT 2005


This one doesn't make any sense to me. What's worse, it seems to 
occasionally work and sometimes not. I am attempting to log into a domain 
(DOMA let's say) and I only have an account on DOMB. When DOMA's Samba PDC 
attempts to create a UNIX account for me, this is what happens:

[2005/01/04 15:47:15, 3] auth/auth_util.c:smb_create_user(53)
   smb_create_user: Running the command `/usr/sbin/useradd -g guestsmb -c "<Samba tmpwacc Temp Guest Account>" -s /bin/false tmpwacc' gave 1
[2005/01/04 15:47:15, 3] auth/auth_util.c:make_server_info_info3(1127)
   User tmpwacc does not exist, trying to add it
Permission Denied
[2005/01/04 15:47:15, 3] auth/auth_util.c:smb_create_user(53)
   smb_create_user: Running the command `/usr/sbin/useradd -g guestsmb -c "<Samba tmpwacc Temp Guest Account>" -s /bin/false tmpwacc' gave 1
Permission Denied
[2005/01/04 15:47:15, 3] auth/auth_util.c:smb_create_user(53)
   smb_create_user: Running the command `/usr/sbin/useradd -g guestsmb -c "<Samba tmpwacc Temp Guest Account>" -s /bin/false tmpwacc' gave 1
[2005/01/04 15:47:15, 0] auth/auth_util.c:make_server_info_info3(1134)
   make_server_info_info3: pdb_init_sam failed!
[2005/01/04 15:47:15, 0] libsmb/samlogon_cache.c:netsamlogon_cache_store(123)
   netsamlogon_cache_store: cannot open netsamlogon_cache.tdb for write!
[2005/01/04 15:47:15, 2] auth/auth.c:check_ntlm_password(310)
   check_ntlm_password:  Authentication for user [tmpwacc] -> [tmpwacc] FAILED with error NT_STATUS_NO_SUCH_USER

...when running that command from a shell, it does not exit 1. I can't 
figure out why it does that, or why there is a problem with the 
netsamlogon_cache.tdb. I read something about requiring Winbindd, but I 
don't see how my situation (two Samba PDC's with a trust relationship 
between the two different domains) requires Winbindd, unless Winbindd 
running would keep me from having to do 'add user script' work (simply 
using the same accounting info via NSS that it is getting from Samba).

Can someone shed some light on this for me? The docs are not making it 
clearer.

---- _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  |  | Ryan Novosielski - User Support Spec. III
|$&| |__| |  | |__/ | \| _|  | novosirj at umdnj.edu - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630


More information about the samba mailing list