Results 1 to 7 of 7
I'm using RedHat 7 and tried to add a new user using the adduser command. I receive the following error when running the command:
bash: adduser: command not found
This ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-07-2003 #1Just Joined!
- Join Date
- Mar 2003
- Posts
- 5
Problem using "adduser" command
I'm using RedHat 7 and tried to add a new user using the adduser command. I receive the following error when running the command:
bash: adduser: command not found
This command works on all my other boxes?
I'm accessing the box remotly using SSH1, but I don't think that can be the problem.
Regards,
Jason
- 04-07-2003 #2Linux Engineer
- Join Date
- Jan 2003
- Location
- Lebanon, pa
- Posts
- 994
Might want to add that line to your .bash_profileCode:export PATH=$PATH:/sbin:/usr/sbin
- 04-18-2003 #3Linux Engineer
- Join Date
- Apr 2003
- Location
- Sweden
- Posts
- 796
I didnt know there existed an adduser command, use the tradition useradd command instead. It workes always and on every unix-dialekt.
RegardsRegards
Andutt
- 04-18-2003 #4Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Actually, they're one and the same. adduser is a symlink to useradd. However, if you're even somewhat interested in portability, use useradd like andutt says.
- 04-19-2003 #5Linux Engineer
- Join Date
- Apr 2003
- Location
- Sweden
- Posts
- 796
OK dolda, thats the cool stuff about linux-unix im learning something every day even if i think i know much...
Regards
Regards
Andutt
- 06-27-2003 #6
very interesting indeed.
On Freebsd it is adduser so I tend to go for that. I always wondered why they used different commands.
- 06-27-2003 #7Linux Engineer
- Join Date
- Nov 2002
- Location
- Queens, NY
- Posts
- 1,319
I always thought adduser was a front end to useradd.
The best things in life are free.


Reply With Quote
