Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
su with NIS
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Anthanos
Guest





PostPosted: Fri Apr 26, 2002 5:30 pm    Post subject: su with NIS Reply with quote

Okay, so I got NIS installed and working, but I can't su to root while logged in as an NIS user... nor can I ssh to my machine and login as root..

I tried adding the nis user to the wheel group - but no dice, and I really dont want to create a wheel group on my nis server just for this.

How do i turn off this restriction on su? any ideas?
Back to top
Anthanos
Guest





PostPosted: Fri Apr 26, 2002 8:00 pm    Post subject: fixed Reply with quote

okay - for those that care, I got it figured out.. although it doesnt make much sense. for whatever reason, to su to root i have to use the root password from my NIS host - i tried putting the "-" in front of my root entry in /etc/passwd with no luck, but at least i can get to a root shell now.... very weird...
Back to top
bart
n00b
n00b


Joined: 13 Apr 2002
Posts: 60

PostPosted: Fri Apr 26, 2002 9:08 pm    Post subject: Reply with quote

My solution: removing (or commenting out) the line
Code:
auth  required  /lib/security/pam_wheel.so use_uid
from the file '/etc/pam.d/su'

Now everybody can su to root, even when u use NIS.
Back to top
View user's profile Send private message
Anthanos
Guest





PostPosted: Fri Apr 26, 2002 10:47 pm    Post subject: doh Reply with quote

doh, shoulda mentioned that I did that as well. The really weird thing is that I have to use the root password for the root account on the nis server - not the root password for the local machine... i thought NIS did not allow this?
Back to top
Anthanos
Guest





PostPosted: Fri Apr 26, 2002 10:57 pm    Post subject: doh again Reply with quote

again i forget information.. the weirdest thing is that to login to the machine (kde) as root I have to use the root password as it is in /etc/shadow.. exactly as it should be.. but if i log in as anything else, to su root i have to use the NIS server's root password!
Back to top
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum