Operating System - HP-UX
1821980 Members
3562 Online
109638 Solutions
New Discussion юеВ

How to set no password for unix users

 
san_intel3
Occasional Advisor

How to set no password for unix users

How to set up no password for any user on HP-UX server? Like bin,adm which dont have any password..(no password accounts) Is there any command for it?
4 REPLIES 4
Torsten.
Acclaimed Contributor

Re: How to set no password for unix users

Hi,

for many admins the use of telnet is a security concern even if a password is used.
They consider to use an implementation of ssh instead (also password-less, but based on keys).

What should be a reason to set up telnet access without passwords???

Or do I understand the question wrong and you want to disable telnet at all?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
marvik
Regular Advisor

Re: How to set no password for unix users

Hi,

You can use ssh for the same.I think this document should help you.Obviously u should have ssh installed

Cheers
Marvik
Jeff_Traigle
Honored Contributor

Re: How to set no password for unix users

You can use "passwd -l" to lock an account.

Saying this makes an account have no password is not really accurate. An account can have no password by having a blank password field in /etc/passwd or the TCB database. This will allow the user to login without entering a password. A very undesirable thing to do.

With a locked account, the user cannot login at all. The password field is set to *, which doesn't match any password hash. This is how the system accounts you mentioned are configured.
--
Jeff Traigle
Court Campbell
Honored Contributor

Re: How to set no password for unix users

I guess my first question would be, "Why?". Next I would be curious to know how the users connect. Are they using telnet or SSH? Are they connecting via Windows, or via a UNIX/Linux client? If the answer is ssh , you can search Google for how to use ssh with no password. Here is one site a got from a Google search:

http://blog.johnjosephbachir.org/2004/06/25/sshssh2-no-password-authentication/

Now I am somewhat biased about a pass-phrase. I think a pass-phrase should always be used. You have to look at a pass-phrase differently than a password. A pass-phrase doesn't change whereas most passwords expire due to company policy.

But all this is really informational until you let us know why you (need to/want to) do this. Making a password blank is not a smart thing to do, unless of course it is not network accessible and it does nothing of importance.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"