Operating System - HP-UX
1832235 Members
2551 Online
110041 Solutions
New Discussion

User login problem-special char in the user id

 
SOLVED
Go to solution
vas_3
Advisor

User login problem-special char in the user id

Hi all,

We have created one NIS account(user id: pt_submit).I m not able to login to HPUX box by using this account as it has special char(_) and more than 8 chars.getting the below error
*************
login: pt_submit
Login incorrect
login:
**********

How to slove this problem?.

FYI: i m able to telnet to linux machine with this account(pt_submit);
Regards,
Srinu.

7 REPLIES 7
Dennis Handly
Acclaimed Contributor

Re: User login problem-special char in the user id

What OS version are you using? You may want to try limiting it to 8 chars.
Frank de Vries
Respected Contributor

Re: User login problem-special char in the user id

I did a test (not using NIS)
but just an non-interactive script, and to my
surprise it said: login incorrect.

so it appears login prompt thing with none-interactiveness
Or you rewrite the login executable to allow it.

Or ensure your account names are compliant with non-interactive behaviour.


function logon
{
sleep 3
print pt_submit
sleep 4
print password
sleep 3
print TTY=$(eval tty | awk -F "/dev/" {' print $2'})
print DISPLAY=$(who -u | grep $TTY | awk {' print $8 '}):0.0
print print $DISPLAY
print ps
print sleep 2
}

logon | telnet $1

...

Look before you leap
vas_3
Advisor

Re: User login problem-special char in the user id

HI,
I m using 11.11i OS.
NO.. I want to use more than 8 chars.

Regards srinu.
Frank de Vries
Respected Contributor

Re: User login problem-special char in the user id

Indeed I change my script

print pt_submit

with

print pt_submt

and that worked,

so it seems the 8 char is a limit



Look before you leap
Dennis Handly
Acclaimed Contributor

Re: User login problem-special char in the user id

>I want to use more than 8 chars.

This isn't available unless you have support of long user and group names on 11.31.
smatador
Honored Contributor

Re: User login problem-special char in the user id

Hi,
I'm afraid that is not possible on 11.11
see man 4 passwd.
If you were on 11.31, you could do it first to enable by lugadmin -e, but in this release it's not possible.
smatador
Honored Contributor
Solution

Re: User login problem-special char in the user id