View previous topic :: View next topic |
Author |
Message |
Anthanos Guest
|
Posted: Fri Apr 26, 2002 5:30 pm Post subject: su with NIS |
|
|
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
|
Posted: Fri Apr 26, 2002 8:00 pm Post subject: fixed |
|
|
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
Joined: 13 Apr 2002 Posts: 60
|
Posted: Fri Apr 26, 2002 9:08 pm Post subject: |
|
|
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 |
|
|
Anthanos Guest
|
Posted: Fri Apr 26, 2002 10:47 pm Post subject: doh |
|
|
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
|
Posted: Fri Apr 26, 2002 10:57 pm Post subject: doh again |
|
|
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 |
|
|
|