1846853 Members
2855 Online
110256 Solutions
New Discussion

Re: Creating user.

 
Vikas Dokhe
Advisor

Creating user.

Hi!

Can we create username in unix more than eight character?
7 REPLIES 7
Paul_481
Respected Contributor

Re: Creating user.

Hi Vikas,

Yes you can create username with more than 8 characters, however only the first 8 is significant.

Regards,
Paul
Vikas Dokhe
Advisor

Re: Creating user.

Hi Paul,

But sam will not accept more than eight charcter.
Peter Nikitka
Honored Contributor

Re: Creating user.

Hi,

try 'vipw' - it will check for entry 'errors' as well, but not so hard as SAM.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Fabio Ettore
Honored Contributor

Re: Creating user.

Hi Vikas,

that is a security problem. Set usernames with more than 8 characters bypass any PAM security checks.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=67473

Anyway there are patches to use usernames with more than 8 characters. For HP-UX 11.00 is PHCO_21833, for 11.11 there isn't specific patch, you should search for the libpam patch.

Hope this helps you.

Best regards,
Fabio
WISH? IMPROVEMENT!
Marc Ahrendt
Super Advisor

Re: Creating user.

here is what i had seen on my 11.11 v1 OS

passwd reportgui
Invalid login name.
vipw
reportgui:evPYkwbGgmnLM:...
Logname too long/short

so just made it < 8 characters
hola
Vikas Dokhe
Advisor

Re: Creating user.

Hi Marc,

We can create thr. vipw but can't login.

reg,
Vikas
Vikas Dokhe
Advisor

Re: Creating user.

Hi!

Thanks a lot of all of you for timely help i will follow the Fabio procedure.

Regards,
Vikas