LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 08-27-2013, 07:59 AM   #1
AbidDhanaiser
Member
 
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.
thanks
 
Old 08-27-2013, 08:12 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,467
Blog Entries: 11

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

Options:
  -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, 03:37 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 11,970

Rep: Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485
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?
 
  


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


All times are GMT -5. The time now is 08:37 PM.

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