Long machine names...
Tim Winders
twinders at SPC.cc.tx.us
Thu May 21 18:21:04 GMT 1998
On Thu, 21 May 1998, Jeremy Allison wrote:
> Tim Winders wrote:
> >
> >
> > OK, now I am VERY confused. I ran the unix adduser utility and added the
> > new user called sup2$ (the new name of my machine). I verified the entry
> > WAS in /etc/passwd. I then IMMEDIATELY ran smbpasswd -a -m sup2 sup2 and
> > the samba private/smbpasswd file was updated to relfect the new sup2$
> > machine account. I could then login with the NT box. I then checked the
> > /etc/passwd file and there were NO machine account entries...
> >
>
> Well whoever did it wasn't smbpasswd. I defy you to find
> code in there that writes to /etc/passwd :-).
OK. I added the user phone$ and here's the entry in /etc/passwd
phone$:Nologin:1152:92:machine account:/usr/users/machine/phone$:/bin/false
(This machine ALREADY had a machine account and the unix user was removed
somehow).
Next, I did smbpasswd -m phone phone and all is still OK in /etc/passwd.
So, edited private/smbpasswd and removed the phone$ entry. Then did:
# smbpasswd -a -m phone phone
smbpasswd: Added user phone$.
and the /etc/passwd file is STILL OK. So, I changed MY UNIX passwd and
everthing is still OK. (arrrgh!)
So, then I remembered that we are running the Digital Internet Locker
management suite. So, I created a temporary user using that software and
SON OF A B*TCH, the phone$ entry was GONE. There must be a
"bug/problem/something" with usernames with $ in the account name and they
are getting stripped from the /etc/passwd file when the new account is
created.
But, here is a problem... That account goes away, but their files
(spool/home directory etc) are LEFT and then that UID gets used again!
I guess I have to talk to digital...
=== Tim
---------------------------------------------------------------------
| Tim Winders, CNE, MCSE | Email: TWinders at SPC.cc.tx.us |
| Network Administrator | Phone: 806-894-9611 x 2369 |
| South Plains College | Fax: 806-897-4711 |
---------------------------------------------------------------------
More information about the samba-ntdom
mailing list