Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-24-2008, 05:43 AM   #1
LQ Newbie
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
Setting a group to which all user should belong to.


right now pam is configured to retrieve the groups from ldap (through nsswitch.conf).

I need to find a way to specify that all users belong additionaly to a group calles 'fuse'.

I heard there are two ways to do it:

1. through pam_group Module
2. through NSS_OVERRIDE_ATTRIBUTE_VALUE in ldap.conf

pam_group is not working for me right now, but I'm working on it whit the help of internet ...

Could someone please describe how to do it in the second way? I could find no place where I could find the proper ATTRIBUTES, and add a group to it...

Thank you in advance!

Old 07-25-2008, 10:22 AM   #2
Registered: Jun 2008
Posts: 101

Rep: Reputation: 15
You could just as well edit the /etc/group file by adding each user to group 'fuse' (assuming that you have created such a user/group before), or modify /etc/passwd and changing each regular user's group to 'fuse' if they should not have groups on their own (don't do this daemons and other helpers).

If you have a very large number of users, then a shell script can help modifying/updating those configuration files.

Linux Archive

Last edited by FranDango; 09-20-2008 at 06:17 AM.
Old 07-29-2008, 05:32 AM   #3
LQ Newbie
Registered: Jul 2008
Posts: 2

Original Poster
Rep: Reputation: 0
yeah... .your right... but as I have mentioned... I get the users information from a ldap server... they don't appear under /etc/passwd... and since there are more thousends of users and new users are beeing added regulary using /etc/group will not work for me...

Last edited by krzysiek; 07-29-2008 at 05:34 AM.


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
show processes than don't belong to user root jianelisj Linux - Newbie 2 03-06-2008 11:31 PM
see which partitions belong to which volume group kpachopoulos Linux - General 1 03-10-2007 05:52 AM
how to check which grp a user belong to? binary_0011 Linux - Newbie 3 09-18-2006 05:12 AM
Two Questions: autologin to X, and setting the adding a user to a group. Cobra133 Slackware 8 06-01-2004 02:43 PM
Can a file belong to more than one group? lostboy Linux - General 2 11-08-2003 11:14 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:35 AM.

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