LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



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

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


Hi,

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!

krzysiek
 
Old 07-25-2008, 11:22 AM   #2
FranDango
Member
 
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 07:17 AM.
 
Old 07-29-2008, 06:32 AM   #3
krzysiek
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 06:34 AM.
 
  


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


All times are GMT -5. The time now is 05:52 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration