Probs with /etc/shadow updates on RH 7

Guilderson, Tom W. TWGuilderson at cvs.com
Wed Feb 14 17:52:26 EST 2001


Did you create a home directory for yourself and did you change the
ownership and permissions for that directory? Also did you create a
.login/.profile/.bash_profile and .xxxrc to go with the shell you specified
in /etc/passwd? Then you need to make sure that the .profile is executable
etc.

Create /etc/passwd entry
Create /etc/shadow directory
Create home dir
Create default files (usually found in /etc/skel) .bash_profile. .bashrc etc
in home dir
Change onwership from root to new UID
Change permissions - .bash_profile needs to be executable, new user needs
write permision in home dir
Change passwd of new UID
Login in as new user before leaving console to test!


 
> 
> > At work we have a RH 6 or 7, kernel 2.2.16 box onto which I 
> have manually
> > added myself to the /etc/passwd file and attempted to add 
> myself to the
> > /etc/shadow file.  But, upon trying a remote login via ssh, 
> the system
> > denies my account access.  Root has no problems at the console.
> 
> Not sure if you already did this: Make sure the line in 
> /etc/shadow has
> the same number of fields and same position as /etc/passwd. 
> After you add
> yourself to that file, as root change scott's password to whatever you
> want it to be. Then it should work.
> 
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).



More information about the Discuss mailing list