From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,8437b689e0f48291 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2002-03-01 10:32:29 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!lon1-news.nildram.net!peernews!peer.cwci.net!news5-gui.server.ntli.net!ntli.net!news6-win.server.ntlworld.com.POSTED!not-for-mail From: "Adam Price" Newsgroups: comp.sys.dec References: <829v7u0ehstt5q9p2fdl75nuec2vlnuscj@4ax.com> Subject: Re: problem with adding / deleting users X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Inktomi-Trace: ntl_site_no_cluster 1015007538 8760 80.2.248.107 (1 Mar 2002 18:32:18 GMT) Message-ID: Date: Fri, 1 Mar 2002 18:32:24 -0000 NNTP-Posting-Host: 80.3.128.5 X-Complaints-To: abuse@ntlworld.com X-Trace: news6-win.server.ntlworld.com 1015007538 80.3.128.5 (Fri, 01 Mar 2002 18:32:18 GMT) NNTP-Posting-Date: Fri, 01 Mar 2002 18:32:18 GMT Organization: ntl News Service Xref: archiver1.google.com comp.sys.dec:12142 "Eberhard Jopp" wrote in message news:829v7u0ehstt5q9p2fdl75nuec2vlnuscj@4ax.com... > Hello, > > I have a very strange phenomenon while adding / deleting users. > We have a DEC Alpha 2000 with Digital Unix 4.0d. > > When I add a user with useradd john ... > the systems creates a line in /etc/passwd, a homedirectory and > everything seems to be okay. > > But when I login as user john I get the following: > > ALPHA> login john > Password: > Last login: Fri Mar 1 16:27:51 on ttyp4 > > Digital UNIX V4.0D (Rev. 878); Sat Mar 27 20:29:06 MET 1999 > ***************************************************** > No terminfo database. > Cannot find termcap > ALPHA> pwd > /usr/users/john > ALPHA> whoami > staatz > ALPHA> echo "something" > text.txt > ALPHA> ls -l > total 2 > drwxr-xr-x 2 staatz users 512 Dec 30 1997 bin > -rw-r--r-- 1 staatz users 10 Mar 1 16:29 text.txt > ALPHA> > > ---------------------------------------------------------------------- > The user is identified from the system as "staatz" - this is another > active and valid username. > This is caused by a duplicate uid, check the lines in /etc/passwd for staatz and your new user john, they are almost certainly the same. > Ok. I add the next user: > SNIP Same problem, it seems that useradd is broken. Is useradd the one which is a shell script or is that adduser I can never remember... > Then I decide to delete user john: > -------------------------------------------------------------------------- > # whoami > root > # userdel john > userdel: Specified user not found. > # > # more /etc/passwd | grep john > john:idNBBpGnc2JEc:14927:15:john:/usr/users/john:/bin/sh > # > # more /etc/group | grep john > # > -------------------------------------------------------------------------- > > OK, I think I delete him in passwd, then: > > -------------------------------------------------------------------------- > # whoami > root > # more /etc/passwd | grep john > # > # login john > Password: > Last login: Fri Mar 1 16:28:46 on ttyp4 > > Digital UNIX V4.0D (Rev. 878); Sat Mar 27 20:29:06 MET 1999 This on the other hand is usually caused by a 'hashed' password file, look for /etc/passwd.db and /etc/passwd.pag Hope this helps Adam PS If you have enhanced security installed then all of this changes, so let us know.