LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-13-2012, 06:21 AM   #1
LarryResch
LQ Newbie
 
Registered: Jul 2012
Posts: 8

Rep: Reputation: Disabled
Add NIS User to video Group via PAM


I need to add users who authenticate via NIS to the video group in order to use the nvidia driver's ability to direct render for VMware Player. I have added
auth optional pam_group.so
to /etc/pam.d/login and /etc/pam.d/xdm, and I have added
*;*;*;Al000-2400;video
to /etc/security/group.conf

Everything I can find indicates that this should work, but when I log in as an NIS user, I am still get an access denied for the nvidia device. (the device is owned by root and the group video, others have no rights.)

-L
 
Old 07-16-2012, 08:03 AM   #2
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Is there a zero missing in the time specification?

You checked the assigned groups with id?
 
Old 07-16-2012, 08:25 AM   #3
LarryResch
LQ Newbie
 
Registered: Jul 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
yes - that was a transcription typo on my end - the syntax is correct on the real system.
id does not show the video group - only the groups set by NIS. Could the problem be in my nswitch.conf file? group is set to file,nis
 
Old 07-16-2012, 10:17 AM   #4
LarryResch
LQ Newbie
 
Registered: Jul 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
[solved]

I added
auth optional pam_group.so
to /etc/pam.d/xdm again and after logging out/back in, I was able to see that video group is part of the user id. Not sure why it is now working...

Last edited by LarryResch; 07-16-2012 at 10:19 AM.
 
Old 07-16-2012, 12:24 PM   #5
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
For passwd, group and shadow often compat is used as setting. Maybe it will help here too. On a local machine it’s sufficient to add pam_group.so to xdm (but I set it to required), I can’t say for NIS.
 
  


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 to list user in Linux box, add an user to a group! steady_lfcfan Linux - Newbie 12 01-27-2013 01:14 PM
Add NIS User to video Group via PAM LarryResch Linux - Desktop 3 07-14-2012 07:52 AM
linux user group pam zerocool22 Linux - Server 1 04-21-2008 07:17 PM
PAM: user{add,del} asks for password systemparadox Linux - Security 1 11-19-2005 03:59 PM
squid (pam auth) add group ? stomach Linux - Software 3 09-09-2005 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:51 AM.

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