LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 06: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, 07:12 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
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, 02:37 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,984

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:01 PM.

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
Open Source Consulting | Domain Registration