LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-18-2008, 12:17 PM   #1
dale504
LQ Newbie
 
Registered: Jan 2008
Location: IL
Distribution: f8
Posts: 29

Rep: Reputation: 15
Trying To Learn Need Some Help!


Hello all I am trying to use the adduser command to create 3 new groups and to add james a user to all of them and set his shell etc...what order do i use i looked at the man page but not much help

can any one help?

dale504
 
Old 02-18-2008, 12:31 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Not sure on the order because I'm not sure what you mean. But typically you create groups first (using groupadd) and then add your user to the groups. If the user is new, something like:
useradd -g users -G wheel,etc,etc,etc -m ... jim

If the user exists, something like:
usermod -aG wheel,etc,etc,etc

Should work.

Good Luck!

-Chad
 
Old 02-18-2008, 12:35 PM   #3
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
The groups have to exist before you can add a user to them. So you make the groups you want, then create the user, and add them to the group. You didn't say what distro you are using. Some have tools to manage the creation of users and groups.

If you are new to linux, I would recommend you take the time to install Webmin. It is available for all distros. In Webmin, there is a Manage Users and Groups function. In here you can create new groups, add create new users, and add any user to any group that you choose. It is much easier to use than the command line tools. It is graphical, and as its name may imply, you can access Webmin locally through your web browser or from a remote location through a web browser.

I install it on all my systems, and then use it for management of most of the servers and configuration on each system. You need to create a webmin user in webmin. Once that is done, you can control what elements of the system you want any webmin user to modify. It can be everything, like root, or limited to one item. Root will have full privileges.

Hope this helps.
 
Old 02-18-2008, 12:42 PM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Some general hints to help you learn:

1) in a terminal, use the apropos command to help find commands: appropos group
would give you a list of all commands on your system having anything to do with group.

2) www.google.com/linux is your friend and largest resource for information on Linux-related issues.

3) the LQ forum has a search function. Use it frequently. Most problems you encounter have probably already been asked.

4) include in your post which distro you are using. The command-line tools will probably be the same for most, if not all, distros. But, each distro may have it's own set of GUI tools. Knowing the distro you use helps others with experience with that distro to give you helpful directions.
 
Old 02-18-2008, 01:05 PM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
http://www.linuxquestions.org/questi...4/#post3061429

More threads, more help?
 
  


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
Should I learn C or C++ gregorian Linux - Newbie 18 03-02-2007 07:05 AM
Trying to Learn and don't know how... mherrera Linux - Desktop 1 02-09-2007 12:53 PM
The best way to learn? iz3r Programming 7 02-06-2005 11:00 PM
What is best to learn on? jillyt Linux - Newbie 9 12-03-2003 07:10 PM
Best way to learn.... InEeDhElPlInUx Linux - Newbie 5 10-11-2003 01:02 AM

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

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