Hello Tim,

Tuesday, July 24, 2001, 11:19:38 PM, you wrote:

TH> Personally I would have tried and fixed the "corrupted" userID before I
TH> would have deleted the user.  That should always be the very last option
TH> when all else fails.  But at this point it's a bit late for that huh? :0)

TH> Never go through an just vi /etc/passwd, or whatever editor you use.
TH> Learn basic movements in vi and use the command vipw.  It's a command
TH> that all *nix systems.  It will edit the /etc/passwd and then make sure
TH> it's propigated to /etc/passwd.master, or whatever the system decides to
TH> call that database.

TH> From there delete the line that contains the userID.  Then use vigr and
TH> remove the line with the userID there as well.  It will do the same thing
TH> about updating /etc/group.

TH> From there change the permissions to the /home directories.  I'm assuming
TH> you'd like to keep those.  Change them to root. chown root:root -R
TH> /home/$USER.

TH> Then create the user using adduser.  The syntax would look like adduser
TH> userID.  Set the passwd, and then change the permissions to the home
TH> directory.  chown userID:userID -r /home/$USER.  From there make sure
TH> everything in the directory is owned by the "NEW" userID. 

TH> Now su - userID.  Make sure you can move through, run a few commands and
TH> make sure you don't have .*rc files that don't have access to things like
TH> /tmp or something like that.

TH> Make sure you correct all those issues and then login.  It's a bit of
TH> work around, but at this point it appears to be the only way you can
TH> really accomplish what you want here.

TH> Hopefully that leads you in a better direction.
TH> tdh

TH> --
TH> T. Holmes
TH> -----------------
TH> UNIXTECHS.org
TH> [EMAIL PROTECTED]
TH> -----------------
TH> "Real Men Use Vi!"

TH> Uptime:
TH>   --------------------------------------------------------------------
TH>   9:07am  up 4 days,  9:34,  8 users,  load average: 0.00, 0.00, 0.00
TH>   --------------------------------------------------------------------
TH> | Hi,
TH> | I am trying to delete a user account (mine) which got corrupted.
TH> | userconf gave an error, so I deleted manually every thing I could find
TH> | relating to this account (in retrospect, probably a mistake)
TH> | Now when I go to  recreate the account (adduser cj) I get vipn
TH> | lockfile (etc/ptmp) is present.
TH> | I mchecked that file, but it doesn't appear to have any reference to
TH> | the account.
TH> | Any suggestions on how I can fix this ?
TH> | 
TH> | ================================================================
TH> | Colin Jenkins
TH> | ICQ: 650611  Voice: +61 97351410 Mob: 0409196144
TH> | "You can't get the wood, you know." --Minni Bannister
TH> | ================================================================  
TH> | 
TH>   ------------------------------------------------------------------ 


Thanks for that, I'll print out your instructions for next time I stuff
up :)
btw, when I use userconf, I get errors about not being able to read
certain files, but I seems to work ok.  I have  password length set to
4, and userconf tells me its too short, but accept the password
anyway :/

================================================================
Colin Jenkins
ICQ: 650611  Voice: +61 97351410 Mob: 0409196144
To be or not to be is true. Or maybe not. 
================================================================  



Reply via email to