LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-23-2002, 02:33 AM   #16
Sifvion
Member
 
Registered: Jan 2002
Location: Singapore
Distribution: Slackware
Posts: 250

Original Poster
Rep: Reputation: 30

i got it work thks alot

By the way at the 1st place i was able to just type adduser and it work but now i had to type /usr/sbin/adduser. DO you guys know why?
 
Old 05-23-2002, 10:13 AM   #17
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by Sifvion
i got it work thks alot

By the way at the 1st place i was able to just type adduser and it work but now i had to type /usr/sbin/adduser. DO you guys know why?
apparently if you still have to type the full path, then /usr/sbin is not in your path.. that is why you would have to type the full path. to make it permanently, you need to either edit your /etc/profile or in the users home directory, edit .bashrc and or .bash_profile

Last edited by trickykid; 05-23-2002 at 10:16 AM.
 
Old 06-08-2002, 06:12 PM   #18
ColdSun
LQ Newbie
 
Registered: Jun 2002
Posts: 2

Rep: Reputation: 0
useradd question

I rebooted my system and im no longer able to do the following commands

groupadd
useradd

and what not..
for useradd the following works "/usr/sbin/adduser" but i was wondering how i could make it so i no longer need the location and just be able to do "useradd"
 
Old 06-08-2002, 10:41 PM   #19
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Re: useradd question

Quote:
Originally posted by ColdSun
I rebooted my system and im no longer able to do the following commands

groupadd
useradd

and what not..
for useradd the following works "/usr/sbin/adduser" but i was wondering how i could make it so i no longer need the location and just be able to do "useradd"
Are you running the command as root? Either log in as root or in a terminal run su -. If that doesn't work, maybe something is wrong with your PATH. Log in as root or run su - and then run echo $PATH to print out your path. See if /usr/sbin is listed. Post a copy of your PATH.
 
Old 06-09-2002, 05:00 AM   #20
ColdSun
LQ Newbie
 
Registered: Jun 2002
Posts: 2

Rep: Reputation: 0
Thats strange when i went to check the info.. it worked fine now lol even before i changed anything
 
Old 06-09-2002, 09:24 AM   #21
Sifvion
Member
 
Registered: Jan 2002
Location: Singapore
Distribution: Slackware
Posts: 250

Original Poster
Rep: Reputation: 30
Funny

I open the terminal as user. Then i su to root account. but i cant use the adduser command. But if login as root at the 1st place i can use the command.
Any ideas?
 
Old 06-09-2002, 05:02 PM   #22
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Quote:
Originally posted by ColdSun
Thats strange when i went to check the info.. it worked fine now lol even before i changed anything
Sometimes things just mysteriously fix themselves.
 
Old 06-09-2002, 05:08 PM   #23
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Re: Funny

Quote:
Originally posted by Sifvion
I open the terminal as user. Then i su to root account. but i cant use the adduser command. But if login as root at the 1st place i can use the command.
Any ideas?

If you're using su to become root, use su - instead. Using su, you inherit the user's environment. That includes the user's path and you need root's path to run ' adduser '. So, use su - to get root's path.
 
Old 06-11-2002, 08:45 AM   #24
Sifvion
Member
 
Registered: Jan 2002
Location: Singapore
Distribution: Slackware
Posts: 250

Original Poster
Rep: Reputation: 30
Linuxcool

Thanks for the help!! it work!!
 
Old 06-12-2002, 04:26 AM   #25
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
You're welcome.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to list user in Linux box, add an user to a group! steady_lfcfan Linux - Newbie 12 01-27-2013 01:14 PM
user home dir doesn't create when new user add dev_mohamed Linux - Software 3 01-12-2007 01:08 AM
How to Enable User or Add New User omeryasin Linux - Software 3 10-29-2005 05:16 AM
Help! Cannot Add a User to User Manager or Change Root Password lennysokol Linux - General 2 06-25-2005 09:59 AM
add user rstmn957 Slackware 5 09-09-2003 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration