LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-23-2001, 07:45 PM   #1
True
LQ Newbie
 
Registered: Jan 2001
Posts: 3

Rep: Reputation: 0

I have been reading Running Linux 3rd Ed. and they mention users and groups but they do not mention how to add users to groups from the command line. How is this done?

Is it possible for me to create a dialup group? The members would be able to use the modem.

I using Linux Mandrake 7.2
 
Old 01-24-2001, 04:21 PM   #2
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Rep: Reputation: 47
In Mandrake 7.2 there is a program called DrakConf which can allow you to change the groups that users belong to. You have to open-up DrakConf and click on a button called users.... (I think!). Its the obvious one anyway! Once there you can change the users data and so on

Or are you looking for a termianl, command-line way of doing it?
 
Old 01-24-2001, 07:24 PM   #3
True
LQ Newbie
 
Registered: Jan 2001
Posts: 3

Original Poster
Rep: Reputation: 0
Yes I was looking for a command line way of doing it. Thank you for the response. I am trying to be like those linux purists that do not use X for administration. I have a loooong way to go :-)
 
Old 01-24-2001, 07:47 PM   #4
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 11,957

Rep: Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108Reputation: 3108
To add someone to a group just edit /etc/group. You would want to make make a line like the following:
Quote:
pppusers:x:44:user1,user2,etc
NOTE: 44 is just an arbitrary GID. Make sure you do not use a number that is already used. You can use the groupadd command to add the group.

Then just group own (chgrp) the modem to pppusers and you should be all set.
 
Old 01-26-2001, 02:16 PM   #5
True
LQ Newbie
 
Registered: Jan 2001
Posts: 3

Original Poster
Rep: Reputation: 0
Thumbs up

Thanks that is what I am looking for. I also found out after some more research that you can specify the group with the "adduser -g". I am not sure of the correct syntax however.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Devices permissions hlinux Fedora 3 04-02-2005 12:48 AM
New to linux, so so lost, auto mounting issues, permissions issues slowhand22 Linux - Newbie 2 02-10-2005 10:41 AM
Write Permissions for Devices twoton Linux - Software 1 10-21-2003 08:48 PM
permissions issues goldenmag Linux - General 3 08-01-2003 09:43 AM
Change permissions for devices? LizardMan Linux - Hardware 3 07-03-2003 02:32 PM


All times are GMT -5. The time now is 10:09 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration