SAMBA_3_0_RELEASE is ready for 3.0.21b

Thomas Bork tombork at web.de
Fri Jan 27 03:45:51 GMT 2006


Gerald (Jerry) Carter schrieb:

> The problem is that the system was in a half valid state.
> If I were to guess you have no machine account in /etc/passwd
> but you do in /etc/smbpasswd.  The second suceeds since it
> is a mod all the way through.  Initially its a half add and
> half mod.
> Did I guess right?

I don't think so. The script is using

/usr/bin/smbpasswd -a -m 'xp$'
/usr/bin/smbpasswd -e -m 'xp$'

which at no time succeeding, if no account in /etc/passwd exists:

deveis # /usr/bin/smbpasswd -a -m 'ab$'
Failed to initialise SAM_ACCOUNT for user ab$. Does this user exist in 
the UNIX password database ?
Failed to modify password entry for user ab$



[2006/01/27 05:03:12, 10] passdb/pdb_smbpasswd.c:smbpasswd_getsampwnam(1322)
   getsampwnam (smbpasswd): search by name: xp$
[2006/01/27 05:03:12, 10] passdb/pdb_smbpasswd.c:startsmbfilepwent(184)
   startsmbfilepwent_internal: opening file /etc/smbpasswd
[2006/01/27 05:03:12, 5] passdb/pdb_smbpasswd.c:getsmbfilepwent(488)
   getsmbfilepwent: returning passwd entry for user tb, uid 2001
[2006/01/27 05:03:12, 5] passdb/pdb_smbpasswd.c:getsmbfilepwent(488)
   getsmbfilepwent: returning passwd entry for user root, uid 0
[2006/01/27 05:03:12, 10] passdb/pdb_smbpasswd.c:getsmbfilepwent(462)
   getsmbfilepwent: LM password for user w2k2$ invalidated
[2006/01/27 05:03:12, 5] passdb/pdb_smbpasswd.c:getsmbfilepwent(488)
   getsmbfilepwent: returning passwd entry for user w2k2$, uid 2003
[2006/01/27 05:03:12, 5] passdb/pdb_smbpasswd.c:getsmbfilepwent(539)
   getsmbfilepwent: end of file reached.
[2006/01/27 05:03:12, 7] passdb/pdb_smbpasswd.c:endsmbfilepwent(301)
   endsmbfilepwent_internal: closed password file.
[2006/01/27 05:03:12, 3] smbd/sec_ctx.c:pop_sec_ctx(386)
   pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2006/01/27 05:03:12, 5] lib/username.c:Get_Pwnam_alloc(290)
   Finding user xp$
[2006/01/27 05:03:12, 5] lib/username.c:Get_Pwnam_internals(234)
   Trying _Get_Pwnam(), username as lowercase is xp$
[2006/01/27 05:03:12, 5] lib/username.c:Get_Pwnam_internals(252)
   Trying _Get_Pwnam(), username as uppercase is XP$
[2006/01/27 05:03:12, 5] lib/username.c:Get_Pwnam_internals(261)
   Checking combinations of 2 uppercase letters in xp$
[2006/01/27 05:03:12, 5] lib/username.c:Get_Pwnam_internals(267)
   Get_Pwnam_internals didn't find user [xp$]!
[2006/01/27 05:03:12, 5] rpc_server/srv_samr_nt.c:_samr_create_user(2391)
   _samr_create_user:  can add this account : False
+ . /var/install/include/eislib
++ '[' '' '!=' true ']'
++ _EISLIB=true
++ . /var/install/include/baselib
+++ '[' '' '!=' true ']'
+++ _EISLIB_BASELIB=true
+++ /usr/bin/tty -s
+++ '[' '' '!=' '' ']'
+++ _EISLIB_PRINTMODE=file
+++ _EISLIB_COLOR_TTY_STD=
+++ _EISLIB_COLOR_HTML_STD=b
+++ _EISLIB_COLOR_TTY_INFO=gn
+++ _EISLIB_COLOR_HTML_INFO=gn
+++ _EISLIB_COLOR_TTY_WARN=br b br
+++ _EISLIB_COLOR_HTML_WARN=br
+++ _EISLIB_COLOR_TTY_ERROR=rd w brinv
+++ _EISLIB_COLOR_HTML_ERROR=rd x br
++ . /var/install/include/anykey
++ . /var/install/include/clrhome
++ . /var/install/include/colecho_tty
++ . /var/install/include/colecho_html
++ . /var/install/include/mecho
++ . /var/install/include/techo
+++ _techo_spacestr=
+ groupfile=/etc/group
+ smbpasswdfile=/etc/smbpasswd
+ smbpasswdbin=/usr/bin/smbpasswd
+ passwdfile=/etc/passwd
+ interactive=false
+ workstation=xp$
+ password=*
+ uid=
+ gid=777
+ name=machine_account
+ home=/dev/null
+ shell=/bin/false
+ '[' false = true ']'
+ '[' 'xp$' = '' ']'
++ echo 'xp$'
++ tr '[:upper:]' '[:lower:]'
+ workstation=xp$
+ grep -q '^machines:' /etc/group
+ grep -q '^xp$:' /etc/passwd
+ echo 'Workstation xp$ don'\''t exists in /etc/passwd'
+ /var/install/bin/add-user 'xp$' '*' '' 777 machine_account /dev/null 
/bin/false
+ sleep 1
+ grep -q '^xp$:' /etc/smbpasswd
+ echo 'Workstation xp$ don'\''t exists in /etc/smbpasswd'
+ /usr/bin/smbpasswd -a -m 'xp$'
+ /usr/bin/smbpasswd -e -m 'xp$'
+ '[' false = true ']'
[2006/01/27 05:03:13, 3] rpc_server/srv_samr_nt.c:_samr_create_user(2404)
   _samr_create_user: Running the command 
`/var/install/bin/samba-add-workstation 'xp$'' gave 0
[2006/01/27 05:03:13, 5] lib/username.c:Get_Pwnam_alloc(290)
   Finding user xp$
[2006/01/27 05:03:13, 5] lib/username.c:Get_Pwnam_internals(234)
   Trying _Get_Pwnam(), username as lowercase is xp$
[2006/01/27 05:03:13, 5] lib/username.c:Get_Pwnam_internals(267)
   Get_Pwnam_internals did find user [xp$]!
[2006/01/27 05:03:13, 10] passdb/pdb_get_set.c:pdb_set_username(617)
   pdb_set_username: setting username xp$, was
[2006/01/27 05:03:13, 10] passdb/pdb_get_set.c:pdb_set_fullname(698)
   pdb_set_full_name: setting full name machine_account, was
[2006/01/27 05:03:13, 10] passdb/pdb_get_set.c:pdb_set_unix_homedir(833)
   pdb_set_unix_homedir: setting home dir /home/__dummyhome__, was NULL
[2006/01/27 05:03:13, 10] passdb/pdb_get_set.c:pdb_set_domain(644)
   pdb_set_domain: setting domain TOMMAIK, was
[2006/01/27 05:03:13, 10] passdb/pdb_get_set.c:pdb_set_user_sid(544)
   pdb_set_user_sid: setting user sid 
S-1-5-21-1636569278-2151323032-2062914382-5008
[2006/01/27 05:03:13, 10] passdb/pdb_compat.c:pdb_set_user_sid_from_rid(73)
   pdb_set_user_sid_from_rid:
         setting user sid S-1-5-21-1636569278-2151323032-2062914382-5008 
from rid 5008
[2006/01/27 05:03:13, 3] smbd/sec_ctx.c:push_sec_ctx(256)
   push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2006/01/27 05:03:13, 3] smbd/uid.c:push_conn_ctx(393)
   push_conn_ctx(101) : conn_ctx_stack_ndx = 0
[2006/01/27 05:03:13, 3] smbd/sec_ctx.c:set_sec_ctx(288)
   setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2006/01/27 05:03:13, 5] auth/auth_util.c:debug_nt_user_token(433)
   NT user token: (NULL)
[2006/01/27 05:03:13, 5] auth/auth_util.c:debug_unix_user_token(454)
   UNIX token of user 0
   Primary group is 0 and contains 0 supplementary groups
[2006/01/27 05:03:13, 3] smbd/sec_ctx.c:pop_sec_ctx(386)
   pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2006/01/27 05:03:13, 10] passdb/pdb_get_set.c:pdb_set_group_sid(580)
   pdb_set_group_sid: setting group sid 
S-1-5-21-1636569278-2151323032-2062914382-515
[2006/01/27 05:03:13, 10] passdb/passdb.c:pdb_init_sam_new(372)
   pdb_init_sam_new: no RID specified.  Generating one via old algorithm
[2006/01/27 05:03:13, 10] passdb/pdb_get_set.c:pdb_set_user_sid(544)
   pdb_set_user_sid: setting user sid 
S-1-5-21-1636569278-2151323032-2062914382-5008
[2006/01/27 05:03:13, 10] passdb/pdb_compat.c:pdb_set_user_sid_from_rid(73)
   pdb_set_user_sid_from_rid:
         setting user sid S-1-5-21-1636569278-2151323032-2062914382-5008 
from rid 5008
[2006/01/27 05:03:13, 10] passdb/pdb_smbpasswd.c:startsmbfilepwent(184)
   startsmbfilepwent_internal: opening file /etc/smbpasswd
[2006/01/27 05:03:13, 5] passdb/pdb_smbpasswd.c:getsmbfilepwent(488)
   getsmbfilepwent: returning passwd entry for user tb, uid 2001
[2006/01/27 05:03:13, 5] passdb/pdb_smbpasswd.c:getsmbfilepwent(488)
   getsmbfilepwent: returning passwd entry for user root, uid 0
[2006/01/27 05:03:13, 10] passdb/pdb_smbpasswd.c:getsmbfilepwent(462)
   getsmbfilepwent: LM password for user w2k2$ invalidated
[2006/01/27 05:03:13, 5] passdb/pdb_smbpasswd.c:getsmbfilepwent(488)
   getsmbfilepwent: returning passwd entry for user w2k2$, uid 2003
[2006/01/27 05:03:13, 5] passdb/pdb_smbpasswd.c:getsmbfilepwent(488)
   getsmbfilepwent: returning passwd entry for user xp$, uid 2004
[2006/01/27 05:03:13, 0] passdb/pdb_smbpasswd.c:add_smbfilepwd_entry(618)
   add_smbfilepwd_entry: entry with name xp$ already exists
[2006/01/27 05:03:13, 7] passdb/pdb_smbpasswd.c:endsmbfilepwent(301)
   endsmbfilepwent_internal: closed password file.
[2006/01/27 05:03:13, 0] rpc_server/srv_samr_nt.c:_samr_create_user(2422)
   could not add user/computer xp$ to passdb.  Check permissions?
[2006/01/27 05:03:13, 5] rpc_parse/parse_prs.c:prs_debug(84)
   000000 samr_io_r_create_user
[2006/01/27 05:03:13, 6] rpc_parse/parse_prs.c:prs_debug(84)
       000000 smb_io_pol_hnd user_pol
[2006/01/27 05:03:13, 5] rpc_parse/parse_prs.c:prs_uint32(703)
           0000 data1: 00000000
[2006/01/27 05:03:13, 5] rpc_parse/parse_prs.c:prs_uint32(703)
           0004 data2: 00000000
[2006/01/27 05:03:13, 5] rpc_parse/parse_prs.c:prs_uint16(674)
           0008 data3: 0000
[2006/01/27 05:03:13, 5] rpc_parse/parse_prs.c:prs_uint16(674)
           000a data4: 0000
[2006/01/27 05:03:13, 5] rpc_parse/parse_prs.c:prs_uint8s(819)
           000c data5: 00 00 00 00 00 00 00 00
[2006/01/27 05:03:13, 5] rpc_parse/parse_prs.c:prs_uint32(703)
       0014 access_granted: 00000000
[2006/01/27 05:03:13, 5] rpc_parse/parse_prs.c:prs_uint32(703)
       0018 user_rid : 00000000
[2006/01/27 05:03:13, 5] rpc_parse/parse_prs.c:prs_ntstatus(762)
       001c status: NT_STATUS_ACCESS_DENIED



der tom


More information about the samba-technical mailing list