Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
why is new user passwd not recognised?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Tue Sep 23, 2014 11:43 am    Post subject: why is new user passwd not recognised? Reply with quote

Hi,

I needed to add a new user account so did useradd with no passwd ( since the man tells me it's a bad idea to type on in here ).

I expected a new account with no password but I can only log into this account from a root shell that does not need one.

su - newuser from a different account gets asked for a passwd and fails.

I try to change the account passwork by su-ing into it and then doing passwd but it asks for the (non existent ) password.


I edit /etc/shadow and /etc/passwd to remove the password part of the field hoping to log in and set one but still get asked for the password.

Having removed the passed field, then su to it from a root console I then have to play twenty guesses as to what I actually requires. Lots of "BAD password" errors, not enough of this or that without saying what it DOES require.


GET OUT OF MY WAY and let me set a friggin password.

Finally I got set pass word from the root su shell, but now if I try to su to it from a normal user account , using the new pass word ( using Xwindow middle mouse to past from the same text that set it to ensure no typing errors ) , I get refused

Code:
su newuser
Password:
su: Permission denied


ARGH!

What is the ( any ) acceptable way to set the passwd for a new user account?

TIA, Gentree.


PS I am now having to do what I need to do from an account that higher access than is desirable. All the stupidity locks and hindering setting up a user with appropriate access rights. This is not helping secure the system.
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Tue Sep 23, 2014 7:54 pm    Post subject: Reply with quote

The gentoo handbook gives the only example I have ever used:

useradd -m -G users john
passwd john
New password: (Enter john's password)
Re-enter password: (Re-enter john's password)
You can change your user id from root to the newly created user by using su:
su - john
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum