Share your knowledge at the LQ Wiki.
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.


  Search this Thread
Old 05-16-2012, 11:54 AM   #1
Registered: Sep 2004
Location: Dayton, Oh
Distribution: Linux Mint 17
Posts: 150

Rep: Reputation: 18
Issue logging in via SSH

I have an issue logging into a Solaris 10 box via SSH. As a normal user, when I go to SSH into the box, I am authenticated, and it runs all of the normal startup scripts (/etc/profile, ~/.bash_profile), but after leaving the .bash_profile, the system hangs and I never get to the bash prompt.

I enabled (briefly) root login for the server, and was able to login as root. Once in as root, I could su over to my account, and it goes straight through startup scripts to the bash prompt.

As this may be relevent, I enabled root login by creating an sshd_config file that allowed root login, and a script to copy it over to /etc/ssh (after backing up the original), and resetting the SSH daemon. I then loaded it via WinSCP, and used the 'Console' within WinSCP to run the script. This may be relevant in that I had no issue connecting to the SFTP server, which uses the SSH daemon, but I don't believe that it has to attach to a pty terminal ( 'ls -lLd /dev/pty' and 'ls -lLd /dev/tty*' all show permissions of 666 except ttya which is 000. These permissions match those of another server without this issue.)

I do not believe it to be a problem with my account as I would have the same problem when I went to su into it. I actually believe it to be a permission problem within /dev where I can't get a terminal to attach to due to some permission change that my co-worker dreamt up.

Any insight would be helpful. Don't particularly care to reinstall this box if it can be helped.

Old 05-17-2012, 08:10 AM   #2
Registered: Sep 2004
Location: Dayton, Oh
Distribution: Linux Mint 17
Posts: 150

Original Poster
Rep: Reputation: 18
The problem has been corrected. At some point, most everything under /dev had been changed to 600. As a stop gap, I have gone and done a chmod to 666 on pts*, pty*, and tty*. When this still did not fix the problem, I hit up Google and found that SSH uses /dev/ptmx when connecting to the pts terminal. This was also 600. Once changed to 666, I was able to log into the system as a normal user.

Now I just need to figure out exactly how to wipe, re-populate the /dev directory so that the permissions are all proper.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
need help on SSH logging jtbinuya Linux - Newbie 1 06-06-2008 03:09 AM
[SSH] Issue logging in [SSH & Permissions] MD3 Linux - Networking 11 12-10-2006 09:25 AM
ssh logging options danimalz Linux - Security 2 02-14-2006 02:35 AM
SSH - Logging out r4merlin Linux - Networking 1 11-02-2003 12:50 PM
logging onto SSH robmainella Linux - Newbie 5 08-26-2003 02:21 PM > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 03:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration