To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.off-topic.geekOpen lugnet.off-topic.geek in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Off-Topic / Geek / 3221
3220  |  3222
Subject: 
Re: Help with users and grps in unix...
Newsgroups: 
lugnet.off-topic.geek
Date: 
Tue, 24 Jul 2001 19:14:50 GMT
Viewed: 
150 times
  
On Tue, Jul 24, 2001 at 07:08:23PM +0000, Bram Lambrecht wrote:
Is there a way to check which users are members of a grp?  Also, can a
member of a grp (not root) add other members to the grp?  For example, I
want to add "nobody" to "bldesign" so that my web scripts can have write
access to a directory set at 775. Will that work? Thanks,

to see who's in a group:

grep "groupname" /etc/group

to see what groups a user belongs to:

id "user"

to add users to a group, you have to be able to edit the /etc/group file
- which (on any sane system), only root can do.

sorry...

--
Dan Boger
dan@peeron.com



Message has 2 Replies:
  Re: Help with users and grps in unix...
 
(...) Thanks, Dan! Will adding "nobody" to group "bldesign" make it possible for my php script to write to directories set at mod 775? I'd like to know for sure before I ask support if they'll do that for me. Thanks, --Bram (23 years ago, 24-Jul-01, to lugnet.off-topic.geek)
  Re: Help with users and grps in unix...
 
(...) Actually, check out the 'gpasswd' command from the linux shadow-utils suite. This allows non-root users to be defined as group administrators, and these people can add and remove people from their groups. (23 years ago, 31-Jul-01, to lugnet.off-topic.geek)

Message is in Reply To:
  Help with users and grps in unix...
 
Hi all, Is there a way to check which users are members of a grp? Also, can a member of a grp (not root) add other members to the grp? For example, I want to add "nobody" to "bldesign" so that my web scripts can have write access to a directory set (...) (23 years ago, 24-Jul-01, to lugnet.off-topic.geek)

7 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR