I tried to add a new user using the command line commands "useradd" and "adduser" but with no luck. The user names are added but i cannot login into the system using the just created username and password. Whats wrong?? y isint it working??
And also i wanted to know that when i login as a regular user and then use "su" in the terminal and then as root in the terminal try to do "adduser" command it says "bash command not found". why does this happen. im a superuser in the terminal and y cant i execute the "adduser" command.
And finally i would like to know if there is a way to manually add a user in the centos remotely from the command line. This is very important to me right now.
any advice is welcomed.
thanx in advance
adding user from command line
adding user from command line
[quote]
thecoolone wrote:
I tried to add a new user using the command line commands "useradd" and "adduser" but with no luck. The user names are added but i cannot login into the system using the just created username and password. Whats wrong?? y isint it working??
[/quote]
http://www.centos.org/docs/4/html/rhel-sag-en-4/s1-users-cmd-line.html
Look closely at the two steps described in section 33.5.1.
[quote]
And also i wanted to know that when i login as a regular user and then use "su" in the terminal and then as root in the terminal try to do "adduser" command it says "bash command not found". why does this happen. im a superuser in the terminal and y cant i execute the "adduser" command.
[/quote]
It's all about the path. Use "su -" instead of just "su".
[quote]
And finally i would like to know if there is a way to manually add a user in the centos remotely from the command line.
[/quote]
Of course. See the above link.
thecoolone wrote:
I tried to add a new user using the command line commands "useradd" and "adduser" but with no luck. The user names are added but i cannot login into the system using the just created username and password. Whats wrong?? y isint it working??
[/quote]
http://www.centos.org/docs/4/html/rhel-sag-en-4/s1-users-cmd-line.html
Look closely at the two steps described in section 33.5.1.
[quote]
And also i wanted to know that when i login as a regular user and then use "su" in the terminal and then as root in the terminal try to do "adduser" command it says "bash command not found". why does this happen. im a superuser in the terminal and y cant i execute the "adduser" command.
[/quote]
It's all about the path. Use "su -" instead of just "su".
[quote]
And finally i would like to know if there is a way to manually add a user in the centos remotely from the command line.
[/quote]
Of course. See the above link.
Re: adding user from command line
It took a few minutes to find out the location of "adduser". Here we go.
[b][size=120][color=FF0000][font=Georgia]/usr/sbin/adduser[/font][/color][/size][/b]
:lol:
[b][size=120][color=FF0000][font=Georgia]/usr/sbin/adduser[/font][/color][/size][/b]
:lol:
- AlanBartlett
- Forum Moderator
- Posts: 9327
- Joined: 2007/10/22 11:30:09
- Location: ~/Earth/UK/England/Suffolk
- Contact:
Re: adding user from command line
To the OP -- please check the [i]CentOS[/i] wiki. It's a valuable resource. [url=http://wiki.centos.org/TipsAndTricks/BecomingRoot]Assuming root powers.[/url]
Re: adding user from command line
[quote][quote]
And also i wanted to know that when i login as a regular user and then use "su" in the terminal and then as root in the terminal try to do "adduser" command it says "bash command not found". why does this happen. im a superuser in the terminal and y cant i execute the "adduser" command.
[/quote]
It's all about the path. Use "su -" instead of just "su".
[/quote]
For this, I'd like to refer the OP to:
http://wiki.centos.org/TipsAndTricks/BecomingRoot
And also i wanted to know that when i login as a regular user and then use "su" in the terminal and then as root in the terminal try to do "adduser" command it says "bash command not found". why does this happen. im a superuser in the terminal and y cant i execute the "adduser" command.
[/quote]
It's all about the path. Use "su -" instead of just "su".
[/quote]
For this, I'd like to refer the OP to:
http://wiki.centos.org/TipsAndTricks/BecomingRoot
Re: adding user from command line
I have my own page on this, as it's such a frequent question on Fedora forums
http://home.nyc.rr.com/computertaijutsu/rhpath.html
(On the other hand, I think most of the info is already given in the provided links--but I hate to be left out). :)
http://home.nyc.rr.com/computertaijutsu/rhpath.html
(On the other hand, I think most of the info is already given in the provided links--but I hate to be left out). :)