Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Probs with /etc/shadow updates on RH 7



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).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org