Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-04-2003, 03:53 PM
|
#1
|
Member
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720
Rep:
|
bash: command not found
Hey,
I was using the command line in order to add some users (my friends) to my computer so that they could log into RH9 on my PC.
I gave myself an account and one friend. Then I rebooted (a couple of hours later) and when I came to start back at it again, I get an error when I do it.
Screen like this:
[root@localhost root]# useradd sam
bash: useradd: command not found
[root@localhost root]#
What am I doing wrong? I did the EXACT same thing this morning and now it isn't working. Please help.
I have tried the same for adding groups, but I get the same error.
Can anyone think of problem? All suggestions are helpful, even if they are irrelivent, I like learning!!!
thanks
Hamish
|
|
|
09-04-2003, 04:02 PM
|
#2
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
i know it is a command but try typing the other method ::
adduser ?
or maybe /usr/sbin is not in your path...so try the full path if adduser doesn't work...
|
|
|
09-04-2003, 04:03 PM
|
#3
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
How did you get to becoem root?
If you typed:
su
And not:
su -
Then you will only have your user PATH variable set which does not include /usr/sbin. If you use "su -" it will create a new shell for root. So wither run:
su -
useradd
or:
/usr/sbin/useradd
|
|
|
09-04-2003, 04:07 PM
|
#4
|
Member
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720
Original Poster
Rep:
|
Hey,
thanks a lot guys, that is great. I have it all working now.
this forum is SO good for n00bs like me. Very helpful. With any luck, I will, one day, be able to help out other users.
cheers
Hamish
|
|
|
09-04-2003, 04:41 PM
|
#5
|
Member
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720
Original Poster
Rep:
|
Hey,
one last thing for tonight,
Although I really want to do everything with command line, I would also like to learn about administering accounts with the GUI.
I know that RH8 had the linuxconf thing, but that no longer appears in RH and that it has been split into more specific GUIs. Which ones are these and where can I find them?
thanks loads
Hamish
|
|
|
09-04-2003, 04:45 PM
|
#6
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Try running:
redhat-config-users
There is a menu item for it - under system tools I think.
|
|
|
02-23-2011, 04:24 PM
|
#7
|
LQ Newbie
Registered: Feb 2011
Posts: 1
Rep:
|
the solution
just switch to the root account then vi .bash_profile
change it should look like this
PATH=$PATH:/usr/sbin:/sbin:$HOME/bin
then save it (by esc then shift : then type wq)(then type source .bash_profile)
this will make that the root will also look in the sbin folder
|
|
|
02-23-2011, 04:28 PM
|
#8
|
Member
Registered: May 2010
Distribution: Windows / Debian
Posts: 163
Rep:
|
Quote:
Originally Posted by sol4718
just switch to the root account then vi .bash_profile
change it should look like this
PATH=$PATH:/usr/sbin:/sbin:$HOME/bin
then save it (by esc then shift : then type wq)(then type source .bash_profile)
this will make that the root will also look in the sbin folder
|
lol mate this post is 8 Year's Old lol
|
|
|
All times are GMT -5. The time now is 07:23 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|