Solaris 10 auth issue


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Solaris 10 auth issue
# 1  
Old 09-08-2006
Solaris 10 auth issue

Very strange one, we've got a recently build server (Sol10 via JET flash).

Bascially you can ssh to it fine, but telnet will allow entry of username, but will then feed in a carriage return on the passwd field, this also happens on any auth type command, ie passwd on a user account will also feed in CR's!! I've seen this ages ago but cannot remember what caused it, any info appreciated Smilie

A snippet of truss on passwd command:

sigaction(SIGINT, 0xFFBFB7B8, 0xFFBFB858) = 0
ioctl(3, TCGETA, 0xFFBFB8FC) Err#6 ENXIO
ioctl(3, TCSETAF, 0xFFBFB8FC) Err#6 ENXIO
New Password: write(2, " N e w P a s s w o r d".., 14) = 14
read(3, 0xFF1EC27C, 1) = 0
ioctl(3, TCSETAW, 0xFFBFB8FC) Err#6 ENXIO

write(2, "\n", 1) = 1
sigaction(SIGINT, 0xFFBFB7B8, 0xFFBFB858) = 0
close(3) = 0
getuid() = 0 [0]
open("/dev/tty", O_RDONLY) = 3
fstat64(3, 0xFFBFB740) = 0
sigaction(SIGINT, 0xFFBFB7B8, 0xFFBFB858) = 0
ioctl(3, TCGETA, 0xFFBFB8FC) Err#6 ENXIO
ioctl(3, TCSETAF, 0xFFBFB8FC) Err#6 ENXIO
Re-enter new Password: write(2, " R e - e n t e r n e w".., 23) = 23
read(3, 0xFF1EC27C, 1) = 0
ioctl(3, TCSETAW, 0xFFBFB8FC) Err#6 ENXIO

write(2, "\n", 1) = 1


Notice the \n writes!! where the hell do these come from !!!.

Ta...
# 2  
Old 09-08-2006
It looks like a terminal settings problem. I sometimes see that on system controllers for 4900/6900. Try substituting ^M for return when entering the username.
# 3  
Old 09-08-2006
Reborg,

Thanks for reply, actually just sussed....

It ended up comparing 'truss's from another box on the passwd command and found a number of Err#6 ENXIO in various places, basically it seemed unable to properly access the TTY, so a quick check of /dev/tty showed:

lrwxrwxrwx 1 root root 9 Sep 6 14:41 tty -> /dev/null

Which isnt normal, changed to :

lrwxrwxrwx 1 root other 26 Jul 31 14:09 tty -> ../devices/pseudo/sy@0:tty

and bingo Smilie
# 4  
Old 09-08-2006
This link is not normal (obviously). Has anyone been accessing your box with authorization? Check your logs.
# 5  
Old 09-08-2006
Hunting down access/histories now its fixed...sneaky move though Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

SUDO error in Solaris: auth.error] fork

I cannot solve the following error bellow. Can someone help me on this please? Mar 31 07:08:45 serverx sudo: fork Mar 31 07:18:50 serverx sudo: fork Mar 31 07:28:45 serverx sudo: fork Mar 31 07:38:47 serverx sudo: fork Mar 31 07:48:45 serverx sudo: fork Mar 31 07:58:45 serverx... (1 Reply)
Discussion started by: pangarano
1 Replies

2. Solaris

Solaris 11 iscsi chap auth

hi to all i've done that steps, but i was not completely successful: sudo pkg install group/feature/storage-server sudo svcadm enable stmf sudo zfs create -V 1g rpool/LUN1 sudo stmfadm create-lu /dev/zvol/rdsk/rpool/LUN1 sudo stmfadm list-lu ... (4 Replies)
Discussion started by: jm83
4 Replies

3. UNIX for Dummies Questions & Answers

Problems with Sendmail AUTH and TLS

Greetings. I desperately need help to get my sendmail configuration working again. I followed this guide: Unmemorable Memories » Blog Archive » Enabling SMTP-AUTH for Sendmail on Debian Linux 3.1 to enable TLS and AUTH in sendmail and now I get an error I just cannot find any information... (1 Reply)
Discussion started by: Mr.Glaurung
1 Replies

4. AIX

Auth module debug log

How can I log the auth and security module messages in AIX syslog ? I need to see all authentication requests coming (when users login) and the calls made for authenticating these users. Target system is AIX 6.1 (1 Reply)
Discussion started by: vs1
1 Replies

5. Solaris

Sol10 - OpenLDAP Auth

Hi, im new to Solaris (10) and need some help please. Situation: Actually is there a Linux (SLES11) OpenLDAP-Server and authentification of Linux-Maschines works pretty sweet. Now i want to put the SOL10 (Sparc) boxes in.... Problem: User Authentification via OpenLDAP on Sol10 doesn´t work... (3 Replies)
Discussion started by: Panzerkampfwagn
3 Replies

6. AIX

Auth against AD (kerberos) does not work

@kah00na and all others, i have done al steps of the HowTo "Authenticate AIX users from MSActive Directory", found in this forum, but it still does not work. The test with kinit USERNAME works fine. But if i try to login i get the "UNKNOWN_USER" error in the debug.log.All steps to change... (11 Replies)
Discussion started by: tomys
11 Replies

7. Red Hat

sendmail client with AUTH

HI, I use redhat 5.7 . I configure sendmail as client and deliver the email to the external SMTP server(10.1.1.176) . The smtp server need SMTP AUTH in order to send email with SMTP. I configure and follow this link . Sendmail as SMTP Authentication | Free Linux Tutorials I try to send... (1 Reply)
Discussion started by: chuikingman
1 Replies

8. AIX

Kerberos and LDAP Auth

Good day I am trying to configure Kerberos and LDAP authentication on AIX 5.3 with Windows 2003 R2 but something is not quite right. When I ran kinit username I get a ticket and I can display it using klist. When the user login I can see the ticket request on Windows 2003, but the user... (1 Reply)
Discussion started by: mariusb
1 Replies

9. UNIX for Dummies Questions & Answers

sendmail auth/ident checking issue

Hi All, I have a problem sending mail to a host which seems to have sendmail configured to use Ident port (113) to check back on the mail sender. My problem is that this port is not enabled on the firewalls between sender and receiver so the ident checking and hence the mail is failing and... (0 Replies)
Discussion started by: Jublio
0 Replies

10. UNIX for Advanced & Expert Users

Apache auth question

While not technically a unix question, I was hoping for some help from you all- I've got an Apache 1.3.x server, and I am using basic auth from the pam_auth module and winbind on the back of that. What I get is a relaly sleek authentication for my Windos domain users, however, as they are wont... (1 Reply)
Discussion started by: loadc
1 Replies
Login or Register to Ask a Question