Can log in remotely but not locally (Using NIS)?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Can log in remotely but not locally (Using NIS)?
# 1  
Old 08-10-2010
Tools Can log in remotely but not locally (Using NIS)?

Hello,

Before I go typing a lot of stuff that may be useless. Here is the summary of my problem:
==================================================================================================== ====
I cannot log in locally on my Solaris 10/09 x64 system. When I try to log in using my NIS account credentials, the system shows the X Window system trying to load (i.e. "Starting Desktop Login on display :0....." in the console-looking thing (pre-gui)), then it kicks me right back out to the login screen. I am using the Java desktop but the CDE Desktop does the same thing.

I can log in successfully as root. but I cannot remote console into other systems from my local/trouble box using my NIS credentials; but I can remote into other systems using my NIS credentials using other systems (if that makes any sense). In short, it seems like my NIS credentials seem to work or are valid but that my profile has become corrupt for local logins... ?
==================================================================================================== ====
It all started when....

I was messing around the other day trying to change my default shell from the bourne/basic shell to something else (i.e. ksh or zsh). I read some forums that suggested running the passwd -e (username) command etc... I couldn't get these to work....
Solaris UNIX: Change Default Shell

It may just be coincidence (most likely) but after doing that and looking at the passwd and shadow files (not saving, just using "view passwd" and "view shadow" and immediately quitting (Shift + q -> q), I cannot log in on the system using my NIS credentials. It may have been something else dumb that I did along the way but I can't think of anything else other than that that may have affected my account.

Just because it was my test box, I re-built it thinking that it was something local, and when I still had the problem, I went to the NIS server (in the SMC) and changed my password, reset my password, etc... and it all seemed to work fine from the server-side (i.e. I set my password as something, and was able to get the server to recognize the change in the Remote Console on another system, and I set my password properties where it had to be set "... at next logon...". On my problem/local box, it recognized that I needed to change my password on the first logon, let me change it, and then when the X Window system tries to load, it kicks me back out to the login screen.

I am fairly new to Unix/Linux, so any assistance on where I may start looking is greatly appreciatedSmilie.

Thanks.

---------- Post updated at 01:35 PM ---------- Previous update was at 12:32 PM ----------

I created another user account (through SMC in NIS), and it suffers from the same thing on the same computer. I have the same symptoms with the new account on the problem computer.
# 2  
Old 08-10-2010
can you set for nis user local home in /etc/auto_home and /etc/auto_master ?

(comment out #+auto_master and #+auto_home for nis users )
and add to /etc/auto_home like this if there isnt
Code:
user1 myniscl:/export/home/user1


and be sure rpc.nisd daemon working..
# 3  
Old 08-11-2010
Reply to: ygemici

Hello ygemici,
Thank you for your reply. I am not sure that I understand all of what you said. I have rights to change the /etc/auto_home and /etc/auto_master. The current local home is set similar to what you recommend (e.g.):

Example entry from the auto_home:
---------------------------------------------------
user1 nisserver:/Ldisk/accounts/user1.
---------------------------------------------------
The auto_master has the following:
---------------------------------------------------
# Master map for automounter
#
+auto_master
/home auto_home
/apps auto_apps -nosuid
#/user/local auto_local
---------------------------------------------------

I checked for the rpc.nisd deamon but did not see it running (did a "ps -ef | grep rpc") or that it is present. I saw rpcypbind deamon was running.

I am fairly new to the Unix environment so I do not know as much as I should (yet...).

The other thing is that my account (which does not work on the system now) worked previously. There was an issue when my predecessor created the account and he mentioned something about the shadow password being a problem. I am not sure if this is the same thing again...?Smilie
# 4  
Old 08-11-2010
passwd -r [nis[plus] or ldap] -e

updates files other than /etc/passwd,
Code:
passwd -e -r nis

is what I would expect, but I don't know for sure how your system is configured.

This might fix your current problem, but it will prevent it in the future.
This User Gave Thanks to jim mcnamara For This Post:
# 5  
Old 08-11-2010
I suspect your editor adding some alien characters to the files you viewed...
It is a good practice and saves a lot of trouble to ONLY use vi when editing anything system... So even if it were not the case, try to avoid using anything else when looking at sensible system text files...
This User Gave Thanks to vbe For This Post:
# 6  
Old 08-11-2010
Thanks jim mcnamara for the info.

I tried the passwd -r nis -e myusername and it seemed to do some things (i.e. it asked me what my password for my account was and then it asked me if I wanted to change my shell). I think this is what I wanted to do originally (just change my shell). At first I changed it to the zsh after figuring out where the files were doing a which zsh. Then when I still couldn't log in, I switch it back to the default again...

However, it did not fix the problem. I still get kicked out right after I try to log in. I am going to create a test user account now to see if it suffers from the same thing. I tried re-building a system and naming it something else just to rule out a blocking thing on the computername/id but the different system still has the problem with my account, so it defineately seems to be a problem with the account itself and the /home directory and/or settings.

It could very well be from when I was looking at the files as vbe said. I thought that the "view" command was a non-volatile thing. I may have viewed the files while doing a su and that could have goofed my passd file or my shadow file....

I appreciate your help in this. I am new to Unix and have not run into this before.

---------- Post updated at 12:02 PM ---------- Previous update was at 11:51 AM ----------

New Update:
I just created a new user account. Afterwards I was told to do a /var/yp ./make command to push out the settings etc.. for the new user account. I have the same problem with the new user account. I can Remote Login to another system but I cannot log in on the local machine.

Not sure if this helps...
# 7  
Old 08-11-2010
Have you tried the password and group file checker programs? They don't change anything, they just check.

Code:
pwck
grpck

Also check /etc/passwd against /etc/shadow to make sure that they are in the same order and match on username.
This User Gave Thanks to methyl For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

User authentication failed while log in Solaris 8 client on Linux NIS server.

Based on the NIS migration tests I did and another question I posted earlier on. https://www.unix.com/solaris/272021-solaris-8-md5-encryption-support.html I tried to downgrade NIS linux encryption to DES to support solaris connection. So I modified /etc/pam.d/system-auth as below, password... (0 Replies)
Discussion started by: bestard
0 Replies

2. Shell Programming and Scripting

How to execute command remotely as sudo and save the output locally?

Hello , I am trying to run a NetBackup command in remote server. Also this command can only be run by root so I am using sudo . Also I want the output of the command locally in a file. The below command asked for password , ran successfully and showed Output on my local server screen ... (2 Replies)
Discussion started by: rahul2662
2 Replies

3. Shell Programming and Scripting

Difference between running a script locally and remotely

Hello, Please, what is the difference between running a script remotely: ssh -t root@$machine -x "sshpass -p 'ubuntu' ssh -t ubuntu@$address -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/nul -x './c-launch.sh'" and running a script directly on the host: ... (1 Reply)
Discussion started by: chercheur111
1 Replies

4. Programming

Locally Declared Labels

Hi guys. in the Locally Declared Labels section in "The Definitive Guide to GCC" book there is block of code: #define SEARCH(array, target) ({ __label__ found; typeof (target) _SEARCH_target = (target); typeof (*(array)) *_SEARCH_array = (array); int i, j; int value;... (1 Reply)
Discussion started by: majid.merkava
1 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. 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

7. Solaris

Unable to Log In to Sun NIS server

Greetings, I have recently inherited 3 sun servers from a shop that my parent company closed. One of these servers is an old Ultra 1 running SunOS 5.6 that acts as a NIS server for the other two servers. This NIS server seems to boot OK and function properly as a NIS server. However, I can't... (6 Replies)
Discussion started by: SevenFortyOne
6 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