LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   no (https://www.linuxquestions.org/questions/linux-newbie-8/no-185353/)

jonliu 05-24-2004 04:28 PM

no
 
2 Questions. They probably go together, hand-in-hand though.

1. How do I manually create a user account.
2. How do I login as the root. Right now I have installed Rehat 9.0, and I have only created my one account. Is this already the root user. If so, when I attempt to do certain things, such as access etc/shadow and etc/passwd, it says only the root can do such things.

thanks

Jon

peacebwitchu 05-24-2004 04:32 PM

1. adduser command

2. you have to use "su" command and then you will be prompted for the root passwd.

david_ross 05-24-2004 04:34 PM

1) How manual?
vi /etc/passwd
vi /etc/shadow
2) Open up a terminal and run "su -" enter your root password then you have root privilages in that shell.

Mega Man X 05-24-2004 04:39 PM

You've to be root to create accounts. An easy way to know if you are root or not, is to open a terminal and notice if your prompt is a hash (#) or a dollar symbol ($). Hash denotes root user, while dollar a non-root user:

non-root:
[megamanx@localhost mega]$

root:
[megamanx@localhost mega]#

You can become root by anytime by simply typing "su" at the terminal without the quotes. You will be prompted for the root password that you choose during installation process.

To add a new user, simply type, as root "useradd". You will be prompted for a couple of question for this user, including home directory, group and password. If later you wish to change any user password, including root, use the command "userpasswd".

Also, without being picky, but try making more descriptives threads in the future. "no" is a bad, bad thread title. "Help with root and managing users" would be 1.000.000x better and you will get quicker replies ;)

Good luck!

jonliu 05-24-2004 05:01 PM

Help with creating another user
 
I have been able to login as root user. However when I type in "useradd" i am given the prompt "bash: useradd:command not found"

i tried doing "where is useradd" and then going to that directory and typing useradd, but I obtained the same results. Any suggestions guys.

Genesee 05-24-2004 05:13 PM

https://www.redhat.com/docs/manuals/...e-account.html

peacebwitchu 05-25-2004 07:26 AM

then try adduser


All times are GMT -5. The time now is 01:16 AM.