Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 08-27-2013, 06:59 AM   #1
Registered: May 2013
Location: Faisalabad, Pakistan
Posts: 72

Rep: Reputation: Disabled
how to assign password to a group

hi , can some one tell me that how to assign a password on a group. i mean if some one want to join a group then have to insert passwd too.
Old 08-27-2013, 07:12 AM   #2
Senior Member
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
root@:~/bin# gpasswd
Usage: gpasswd [option] GROUP

  -a, --add USER                add USER to GROUP
  -d, --delete USER             remove USER from GROUP
  -h, --help                    display this help message and exit
  -Q, --root CHROOT_DIR         directory to chroot into
  -r, --remove-password         remove the GROUP's password
  -R, --restrict                restrict access to GROUP to its members
  -M, --members USER,...        set the list of members of GROUP
  -A, --administrators ADMIN,...
                                set the list of administrators for GROUP
Except for the -A and -M options, the options cannot be combined.
Old 08-28-2013, 02:37 PM   #3
Registered: Mar 2008
Posts: 16,883

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
Normally groups are used to offer some common permissions, either file based or role based part of the OS.

One doesn't normally allow some user to convert their permissions with a password. It usually is the task for an admin or power user of some sort.

I have seen some cases where an authenticated user could access some web site or other app that would authenticate their level by some second means to do some task.

It may be possible to allow some users a sudo task that would allow them to change groups. You'd have to construct the script or task and the sudo permissions pretty well. I'd still assume they'd have a way around it.

What exactly do you want to do with this?


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
how can i assign a group to existing user thiyagusham Linux - Newbie 11 11-23-2012 12:54 PM
Use AD to assign a user to a group? Beandip408 Linux - Security 3 08-16-2011 09:38 PM
lp permission assign to user group syedali Linux - Desktop 0 08-06-2011 03:17 AM
How can we assign group password?? JATA01 Linux - Server 5 11-15-2008 12:47 AM
Assign group by IP waifurchin Linux - General 1 01-29-2003 04:36 PM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 04:51 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration