08-24-2005
Simply saying you ruled something out is not very informative. If I had a penny for every time a poster incorrectly ruled something out I would be a rich man (well, I could afford to go to a movie and buy some popcorn anyway). What technique did you use to verify that group did not change? Try changing the file to 666, can they access it then? Are the other users prevented from accessing other files 660 with that particular group? Do you have the "groups" command? If so, run it as those other users. What is the timestamp on /etc/group? Were these other users recently added to any other groups? How many groups are you trying to add them to? Is that greater than the maximum number of groups per user for your OS?
7 More Discussions You Might Find Interesting
1. Programming
please refer the following 2 statements...
1)
int i=1,j;
j= i++ + i++;
2) int i=1,j;
j=++i + ++i;
how j becomes 2 and 6 for the above 2 statements
respectively ???
( i guessed j must be 3 and 5)
Somebody define the exact reason please.. :(
... (2 Replies)
Discussion started by: shamal
2 Replies
2. Red Hat
Hi everyone,
- I have CentOs server 5.4 , I usually remote by ssh.
- My problem is server usually restart but I don't reason. I check log in file /var/log/messages: I don't see "signal 15" which kernel have to receive before restart. Everyone can see in attach.
- I try to restart with command... (3 Replies)
Discussion started by: vietbk87
3 Replies
3. UNIX for Dummies Questions & Answers
This is my input file like this
03,105581,,015,+00000416418,,,901,+00000000148,,,922,+00000000354,,/
49,+00000000000416920,00002/
03,5313236,,015,+00231036992,,,045,+00231036992,,,901,+00000048428,,/
88,100,+0000000000000,0000000,,400,+0000000000000,0000000,/
88,902,+0000000079077,,/... (0 Replies)
Discussion started by: sgoud
0 Replies
4. Shell Programming and Scripting
can some one please help me at my post ?
for hours yet being ignored
Need help on this:
nonsense. can't even solve forum ask people redo whole code. LMAO - after asking 101 qns
the pre result should be like this:
A A A A A
A A A A A A
A A A A A
A A A A A A
A A A... (27 Replies)
Discussion started by: nanochan1
27 Replies
5. Shell Programming and Scripting
I have two files
File1
====
1|2000-00-00|2010-02-02||
2| 00:00:00|2012-02-24||
3|2000-00-00|2011-02-02||
File2
====
2000-00-00
00:00:00
I want the delete the patterns which are found in file 2 from file 1,
Expected output:
File1
==== (5 Replies)
Discussion started by: machomaddy
5 Replies
6. Shell Programming and Scripting
hello,
I have problem with writing/adjusting a shell script.
I searched forum and unfortunately couldn't write scipt based on the information I found.
I never wtire such so it's hard for me and I do need to modify one script immediately.
case looks like:
1. 'file' that needs to be modified... (3 Replies)
Discussion started by: bipbip
3 Replies
7. Shell Programming and Scripting
Hi, I have a control file which will contain all filenames(300) files. Loop through all the file names in the control files and check the existence of this file in another directory(same server). I need to infinitely(2 hrs) run this while loop until all the files are found. Once a file is found,... (5 Replies)
Discussion started by: laknar
5 Replies
LEARN ABOUT CENTOS
groupmems
GROUPMEMS(8) System Management Commands GROUPMEMS(8)
NAME
groupmems - administer members of a user's primary group
SYNOPSIS
groupmems -a user_name | -d user_name | [-g group_name] | -l | -p
DESCRIPTION
The groupmems command allows a user to administer his/her own group membership list without the requirement of superuser privileges. The
groupmems utility is for systems that configure its users to be in their own name sake primary group (i.e., guest / guest).
Only the superuser, as administrator, can use groupmems to alter the memberships of other groups.
OPTIONS
The options which apply to the groupmems command are:
-a, --add user_name
Add an user to the group membership list.
If the /etc/gshadow file exist, and the group has no entry in the /etc/gshadow file, a new entry will be created.
-d, --delete user_name
Delete a user from the group membership list.
If the /etc/gshadow file exist, the user will be removed from the list of members and administrators of the group.
If the /etc/gshadow file exist, and the group has no entry in the /etc/gshadow file, a new entry will be created.
-g, --group group_name
The superuser can specify which group membership list to modify.
-h, --help
Display help message and exit.
-l, --list
List the group membership list.
-p, --purge
Purge all users from the group membership list.
If the /etc/gshadow file exist, and the group has no entry in the /etc/gshadow file, a new entry will be created.
-R, --root CHROOT_DIR
Apply changes in the CHROOT_DIR directory and use the configuration files from the CHROOT_DIR directory.
SETUP
The groupmems executable should be in mode 2770 as user root and in group groups. The system administrator can add users to group groups to
allow or disallow them using the groupmems utility to manage their own group membership list.
$ groupadd -r groups
$ chmod 2770 groupmems
$ chown root.groups groupmems
$ groupmems -g groups -a gk4
CONFIGURATION
The following configuration variables in /etc/login.defs change the behavior of this tool:
MAX_MEMBERS_PER_GROUP (number)
Maximum members per group entry. When the maximum is reached, a new group entry (line) is started in /etc/group (with the same name,
same password, and same GID).
The default value is 0, meaning that there are no limits in the number of members in a group.
This feature (split group) permits to limit the length of lines in the group file. This is useful to make sure that lines for NIS
groups are not larger than 1024 characters.
If you need to enforce such limit, you can use 25.
Note: split groups may not be supported by all tools (even in the Shadow toolsuite). You should not use this variable unless you really
need it.
FILES
/etc/group
Group account information.
/etc/gshadow
secure group account information
SEE ALSO
chfn(1), chsh(1), passwd(1), groupadd(8), groupdel(8), useradd(8), userdel(8), usermod(8).
shadow-utils 4.1.5.1 05/25/2012 GROUPMEMS(8)