LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   How to add a new user? (https://www.linuxquestions.org/questions/fedora-35/how-to-add-a-new-user-4175456168/)

SharpyWarpy 03-30-2013 12:47 PM

How to add a new user?
 
I'm using Fedora 18_i686 and I need to add a new user. I have tried
Code:

useradd -p password username
but when I try to do
Code:

su angie
it does not prompt for a password and when I do
Code:

users
the new user in not there. I have read the manual for useradd to no avail, unless I'm missing something. The directory /home/user is created and all seems well but it isn't prompting for a password. I really need to get this done because I want to lend the laptop to a friend for a while. I tried using the GUI "Administration > Users and Groups" but I get the same results. Thanks ahead of time.

pingu 03-30-2013 02:25 PM

As root you can "su" to any account without password.
And I believe the command "users" lists accounts logged in on tty - that is, when you su to some account "users" will still only list the original username.

SharpyWarpy 03-30-2013 02:35 PM

Quote:

Originally Posted by pingu (Post 4921753)
As root you can "su" to any account without password.
And I believe the command "users" lists accounts logged in on tty - that is, when you su to some account "users" will still only list the original username.

Ah, thanks. I'll play around some more, see if I can log in from boot with the new user.

SharpyWarpy 03-30-2013 04:13 PM

@ pingu: Thanks, I rebooted and the new user and password worked fine. Reputation added!

pingu 03-30-2013 04:17 PM

Glad to help, and thanks! :-)


All times are GMT -5. The time now is 01:25 PM.