Need Help ON NIS

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Need Help ON NIS
# 1  
Old 12-30-2011
Need Help ON NIS

Hi,

I am new to NIS, In my company need to create a user with admin rights and the user was created but he is unable to login. below are the difference i am getting for me and him.
Code:
root@ abc]# getent passwd cric
cric:x:60215:20059:a:/home/cric:/bin/csh

[root@abc]# ypcat passwd | grep sam
sam:xxxxx:60220:20059: sam:/home/sam:/bin/cs

[root@abc]# getent passwd sam
sam:x:60220:20059:sam:/home/sam:/etc/refuse_login

[root@abc]# su - sam
You cant log in abc

The user is already added but not able to login. I tried changing the /etc/password for refuse_login to /bin/sh but still no use.

Any help would be great

Thanks,
Phani


Moderator's Comments:
Mod Comment Please use code tags!

Last edited by phanidhar6039; 01-15-2012 at 06:19 PM.. Reason: more info; zaxxon: code tags, see PM
# 2  
Old 12-30-2011
Hey,
Have you looked at the /etc/nsswitch.conf
Example of what you should see.
Code:
passwd:    files nis
group:       files nis

You may want to consider using sudo. That is what we use at my job. It is installed by default on RHEL. It will give select users admin/root power. This what you wanted right?

You might also want to switch to LDAP. We are making a move from NIS to LDAP.LDAP has more features and is more secure.

I hope this helps.
# 3  
Old 12-30-2011
To add to what bitlord said, you can actually use a "NIS" implementation in LDAP.
# 4  
Old 01-08-2012
Quote:
Originally Posted by bitlord
Hey,
Have you looked at the /etc/nsswitch.conf
Example of what you should see.
Code:
passwd:    files nis
group:       files nis

You may want to consider using sudo. That is what we use at my job. It is installed by default on RHEL. It will give select users admin/root power. This what you wanted right?

You might also want to switch to LDAP. We are making a move from NIS to LDAP.LDAP has more features and is more secure.

I hope this helps.

Thanks for quick reply
But i have checked the files you specified and it specifies

passwd: compat nis
shadow: compat nis

The user is already in sudoers file in the NIS master server. Still havent got any luck.
Any help will be great
# 5  
Old 01-09-2012
How about this

If your using Sudo then you should have access to root. The fact that a superuser/root/admin account can't login to the server is a good thing as long as you can su to or become that user. Where I work we disable root remote login. You can only su to root or login at a console. This is also helpful for logging what the user actions.

Maybe what you need is to put the user in an admin group. For example the wheel group gives you sudo on a RHEL default build. Is your aim not to give all the admins sudo this could do it for you. For example the DBAs at work don't have sudo but they can do anything on the server in there area. There just in a privlaed group.

You can also look into RBAC. If you create a role that could be a superuser. This is used a lot in Solaris but you may be able to install this on RHEL. You don't usually use RBAC and sudo on the same box.

Your /etc/nsswitch.conf. If you are using compact you need more lines. So post your file so I can see it. I will look it up. I'm on a training trip right now so I don't have access to my server with NIS on it to compare to. The internet at this hotel sucks.

I hope this helps you
# 6  
Old 01-15-2012
Quote:
Originally Posted by bitlord
If your using Sudo then you should have access to root. The fact that a superuser/root/admin account can't login to the server is a good thing as long as you can su to or become that user. Where I work we disable root remote login. You can only su to root or login at a console. This is also helpful for logging what the user actions.

Maybe what you need is to put the user in an admin group. For example the wheel group gives you sudo on a RHEL default build. Is your aim not to give all the admins sudo this could do it for you. For example the DBAs at work don't have sudo but they can do anything on the server in there area. There just in a privlaed group.

You can also look into RBAC. If you create a role that could be a superuser. This is used a lot in Solaris but you may be able to install this on RHEL. You don't usually use RBAC and sudo on the same box.

Your /etc/nsswitch.conf. If you are using compact you need more lines. So post your file so I can see it. I will look it up. I'm on a training trip right now so I don't have access to my server with NIS on it to compare to. The internet at this hotel sucks.

I hope this helps you
Thanks for all the inputs, i got my issuse fixed. i added the user in the netgroup and now he got the access.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. Solaris

nis

hai any body send me the replay please. is it necessary to configure NFS , before configuring NIS on solaris9 or solaris10. (1 Reply)
Discussion started by: nag.mi2000
1 Replies

4. Solaris

nis

i want to dedicate my nis client system to some perticler group users. how can it possible on solaris. (0 Replies)
Discussion started by: nag.mi2000
0 Replies

5. Solaris

Help regarding NIS+

Hi Guys, I have lots of doubts regarding NIS+.I also think by basics could be wrong......I am trying to pick up stuff from documents which are a bit murky. I am working on production environment so I am afraid of trial and error! Please help. 1) What is the difference between root domain master... (1 Reply)
Discussion started by: nitinkgoud
1 Replies

6. 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

7. 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

8. IP Networking

differences nis nis+

Hello together. Is there someone who is able to explain me the differences between NIS and NIS+. thanks in advance joerg (2 Replies)
Discussion started by: joerg
2 Replies

9. 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

10. UNIX for Dummies Questions & Answers

NIS

Hello anyone... I am new to UNIX and I recently bought a Sparc 10 to play around with. Well, last night I executed something called EasyInstall in my /usr/etc/install directory and I selected to "Use NIS". Now when my system boots up it is looking for a NIS server to connect to and keep trying(... (5 Replies)
Discussion started by: jskillet
5 Replies
Login or Register to Ask a Question