LinuxQuestions.org
Visit Jeremy's Blog.
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 03-05-2004, 02:05 PM   #1
jogurt666
Member
 
Registered: Nov 2003
Location: Poland => Mazowieckie => Ok'a
Distribution: Gentoo
Posts: 176

Rep: Reputation: 30
how do i add user to a group


i've installed k3b. it uses cdrecord to burn CDs. i can burn them correctly as root. then i run k3b as a normal user, k3b tells me that it cannot find cdrecord (because i have no permissions to use it). i don't want to change chmods. all i have to do is to add my user to cdrom group, but i dunno how should i do that. could anyone tell me?
 
Old 03-05-2004, 02:12 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
usermod will do what you want.

man usermod, the -G option.

You should keep this in mind:
If the user is currently a member of a group which is not listed, the user will be removed from the group.

First check if the user belongs to any other groups already (as root: $ id <user>).

PS: This question has been answered before, do try to use the search function first before asking

Last edited by druuna; 03-05-2004 at 02:14 PM.
 
Old 04-02-2004, 11:05 PM   #3
Qucho
Member
 
Registered: Mar 2004
Location: Colorado, US
Distribution: Debian "Sarge"
Posts: 228

Rep: Reputation: 30
to add an user to a specific group you can use:

adduser [username-to-be-added] [existing-group-name]

Example:

adduser druuna audio

In this example the user 'druuna' is added to the group 'audio'. You need to do this as root.

[edit]

I do this in Debian, I am not sure if would be the same in other distros.

Last edited by Qucho; 04-02-2004 at 11:07 PM.
 
  


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 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 02:14 PM
how to add a user to a new group? emanresu Linux - Newbie 5 11-21-2005 09:18 AM
add user to the group ashley75 Linux - General 4 03-30-2005 03:42 PM
how to add a user to a certain group? feetyouwell Linux - Software 2 01-13-2004 12:56 PM
how can i add a user to a group? doublefailure Linux - General 14 07-10-2002 12:11 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration