Integrate Sudo and NIS


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Integrate Sudo and NIS
# 1  
Old 12-30-2010
Integrate Sudo and NIS

hi guys

I configured NIS on my Centos 5.5.
I create accounts on NIS Server and users can log in. Cool.

Now I added a user in my sudoers users in my NIS Server but user on other Linux boxes don't get the sudo permissions

any way or procedure to integrate sudo in a NIS setup?

thanks a lot

Last edited by karlochacon; 12-31-2010 at 11:15 AM.. Reason: bad title
# 2  
Old 12-30-2010
Does this help?
This User Gave Thanks to citaylor For This Post:
# 3  
Old 12-31-2010
Quote:
Originally Posted by citaylor
Does this help?

I've already read that and if you see there was not solution Smilie and google is not providing me any good result Smilie

and also bad day to post everyone is at holidays/vacations
# 4  
Old 12-31-2010
Ah, sorry...In the latest sudo sources it says:
Quote:
Q) Can I put the sudoers file in NIS/NIS+ or do I have to have a
copy on each machine?
A) There is no support for making an NIS/NIS+ map/table out of
the sudoers file at this time. A good way to distribute the
sudoers file is via rdist(1). It is also possible to NFS-mount
the sudoers file.
I would also recommend rsync as well as rdist.
Good luck.
This User Gave Thanks to citaylor For This Post:
# 5  
Old 12-31-2010
Quote:
Originally Posted by citaylor
Ah, sorry...In the latest sudo sources it says:

I would also recommend rsync as well as rdist.
Good luck.
ok so this means I have to rsync the sudoers file every time I update my sudoers on my NIS Master and distribute across the NIS Clients...

Am I right?
# 6  
Old 12-31-2010
Yep - thats about right. Its pretty easy, however, to write a script thats called once a minute from cron to check the update status of the file, and fire off an rsync to the given hosts. It also means that you are not 100% dependant upon NIS being up to provide your "firecall" security - always a consideraton when an admin has to get onto a box to fix the networking. (Or I guess you could consider one of the commercial products out there that can provide more Enterprise centric functionality out of the box)

I hope this helps...
This User Gave Thanks to citaylor For This Post:
# 7  
Old 12-31-2010
citaylor thanks a lot for your input

let me see If I got it right....NIS is not complete solution for what I am trying to accomplish? I mean there is a similar sudo solution inside NIS which I do not know about or NIS is not good enough
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Web Development

Help to integrate Shell script with PHP

I have a shell script which takes user name and server name from the user and check the authentication type on that server like LDAP or VAS or local. It also provides various other info also such as owner of the ID and etc. I need this script to work on the browser where user can directly input... (2 Replies)
Discussion started by: Bhuwan Nazkani
2 Replies

2. AIX

AIX 7.1 integrate AD with winbind

I have joined an AIX 7.1 into a 2012 AD domain sucesfully. I can get ouput from wbinfo -u but when I try to access a share I get the following error : check_ntlm_password: Authentication for user -> FAILED with error NT_STATUS_NO_SUCH_USER I have found that I'm missing... (0 Replies)
Discussion started by: laxtnog
0 Replies

3. Windows & DOS: Issues & Discussions

Integrate RHEL with Active Directory

Hi All, I have been given the task of integrating Linux (RedHat, Ubuntu, CentOS and Mac OSX) with a Windows Server 2012 A.D. if anyone has done this before help would be very much appreciated, I have been looking at using either Samba with Win-bind or SSSD, if anyone has tested this please... (9 Replies)
Discussion started by: stuffer1984
9 Replies

4. Shell Programming and Scripting

ssh foo.com sudo command - Prompts for sudo password as visible text. Help?

I am writing a BASH script to update a webserver and then restart Apache. It looks basically like this: #!/bin/bash rsync /path/on/local/machine/ foo.com:path/on/remote/machine/ ssh foo.com sudo /etc/init.d/apache2 reloadrsync and ssh don't prompt for a password, because I have DSA encryption... (9 Replies)
Discussion started by: fluoborate
9 Replies

5. Shell Programming and Scripting

Validating that the NIS and NIS+ services are disabled

I'm creating a scrip for auditing our AIX box's to ensure that they are built according to our system standards. I'm not sure on the logic for checking to see if the NIS and NIS+ services are disabled. any idea's? (2 Replies)
Discussion started by: sport
2 Replies

6. AIX

Integrate ML with AIX Installation CDs

In windows, there is a software that can help integrate some fixes or files into installtion media ( I think the software is called nLight or something). For example, if you want to include some SATA drivers into the installation CD of Windows XP you would: 1)get the Windows XP installation CDs. 2)... (1 Reply)
Discussion started by: Dardeer
1 Replies

7. Solaris

How to configure a NIS client bound to the NIS server in another subnet?

Hi, all. I have a Solaris client here needs to bind to NIS server in another subnet. Following is the configuration i made on the client, 1) edit /etc/inet/hosts to add an entry of the NIS server -- nserver01 2) execute `domainname` to set local NIS domain to the domain of the NIS server.... (1 Reply)
Discussion started by: sn_wukong
1 Replies

8. UNIX for Advanced & Expert Users

SUSE 9 and 10 NIS clients with RedHat 8.0 NIS server not working

We have a RedHat 8.0 NIS master, with a RedHat 8.0 NIS Slave. We also have a small number of SUSE 9.1 and SUSE 10 machines here for evaluation. However, no matter what i do, the SUSE machines will not talk to the NIS Servers. If i broadcast for NIS Servers for the specified NIS domain, it... (1 Reply)
Discussion started by: fishsponge
1 Replies

9. UNIX for Dummies Questions & Answers

NIS map mail.aliases specified, but NIS not running

Hi all, I just took over the admin role from someone and I wanna setup sendmail (just to send mail from the host) however, after I config all the resolv.conf, nssitch.conf, hosts file and when I try to send a mail out, after I punched ctl-D, it returned he following, "NIS map mail.aliases... (2 Replies)
Discussion started by: stancwong
2 Replies

10. UNIX for Advanced & Expert Users

Solaris NIS+ and RedHat NIS+

Hello all, I'm not sure if this is the right forum, but I would like to know if Redhat running NIS ( not NIS +) would have conflict with Solaris running NIS+. Currently I am running NIS+ on Solaris but will be adding RedHat to the network. I seem to be unable to find and information regarding... (2 Replies)
Discussion started by: larry
2 Replies
Login or Register to Ask a Question