LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 10-23-2005, 06:17 PM   #1
twb2005
LQ Newbie
 
Registered: Oct 2005
Posts: 9

Rep: Reputation: 0
add group


Could anyone could direct me. Im trying to add a group. I log in as root and use the comand
Code:
groupadd newgroup
I then get an message "command not found" I have tried this from different directories with no result
Thanks
twb
 
Old 10-23-2005, 07:06 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Try "locate groupadd" and type in the full path.
 
Old 10-23-2005, 07:19 PM   #3
twb2005
LQ Newbie
 
Registered: Oct 2005
Posts: 9

Original Poster
Rep: Reputation: 0
add group

I located the groupadd in the usr/sbin/groupadd. From usr/bin I use the command "groupadd newgroup" and I still have the same result. "command not found" hmmm
twb
 
Old 10-23-2005, 07:23 PM   #4
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
You said it was here
usr/sbin/groupadd
but you tried to execute it from here
usr/bin
so make sure you give the correct full path.
 
Old 10-23-2005, 07:36 PM   #5
twb2005
LQ Newbie
 
Registered: Oct 2005
Posts: 9

Original Poster
Rep: Reputation: 0
add group

I did a "locate group command" and it gave me the path usr/sbin/groupadd. From the directory /sbin # I enter "addgroup newgroup" and thats when I get that "command not found". When I do a ls -l from /sbin# it dosen't show it as being there. Yet it shows up in the "locate group"

twb
 
Old 10-23-2005, 09:03 PM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Probably /usr/sbin is not in your PATH and neither is . (the current working directory). Are you getting a root shell by doing su? If so, you're not getting root's environment, which has the sbin directories in its PATH. Use "su -" (note the trailing dash) instead. You can easily modify your PATH -- search the forums for details, how to do it has been discussed many times.

For now, see if "/usr/sbin/groupadd" (no quotes and note the leading slash) works for you.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add to the DIP group? Erik_the_Red Linux - Software 1 06-10-2005 10:39 AM
cannot add new group in RH jimberg51 Linux - General 1 06-08-2005 01:13 PM
Add a group to a group? Temujin_12 Linux - Security 2 06-08-2005 03:58 AM
Can't seem to add to group fredws Mandriva 3 11-10-2003 04:09 PM
how to add dir to group Robin01 Linux - Newbie 2 09-09-2003 08:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:42 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