Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Can log in remotely but not locally (Using NIS)? Post 302443949 by GrRt on Tuesday 10th of August 2010 02:35:10 PM
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.
 

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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

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

10. 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
nislog(1M)                                                System Administration Commands                                                nislog(1M)

NAME
nislog - display the contents of the NIS+ transaction log SYNOPSIS
/usr/sbin/nislog [-h num | -t num] [-v] [directory...] DESCRIPTION
nislog displays the contents of the NIS+ server transaction log on the standard output. This command can be used to track changes in the namespace. The /var/nis/trans.log file contains the transaction log maintained by the NIS+ server. When updates occur, they are logged to this file and then propagated to replicas as log transactions. When the log is checkpointed, updates that have been propagated to the replicas are removed. The nislog command can only be run on an NIS+ server by superuser. It displays the log entries for that server only. If directory is not specified, the entire log is searched. Otherwise, only those logs entries that correspond to the specified directories are displayed. OPTIONS
-h num Display num transactions from the ``head'' of the log. If the numeric parameter is 0, only the log header is displayed. -t num Display num transactions from the ``tail'' of the log. If the numeric parameter is 0, only the log header is displayed. -v Verbose mode. FILES
/var/nis/trans.log transaction log ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWnisu | +-----------------------------+-----------------------------+ SEE ALSO
nis+(1), rpc.nisd(1M), nisfiles(4), attributes(5) NOTES
NIS+ might not be supported in future releases of the SolarisTM Operating Environment. Tools to aid the migration from NIS+ to LDAP are available in the Solaris 9 operating environment. For more information, visit http://www.sun.com/directory/nisplus/transition.html. SunOS 5.10 12 Dec 2001 nislog(1M)
All times are GMT -4. The time now is 06:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy