Linux - NewbieThis 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.
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.
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
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.