Operating System - HP-UX
1825759 Members
2241 Online
109687 Solutions
New Discussion

Enabling and Disabling for a specific user on HP-UX 11.11

 
SOLVED
Go to solution
KPS
Super Advisor

Enabling and Disabling for a specific user on HP-UX 11.11

Hi,

I was curious how you can prevent and enable direct logins using ssh and telnet. Is it the same method for both?

Example:) I have an Application user that i do not want people logging on directly to a system as this user...

Thanks,
KPS
6 REPLIES 6
Simon Hargrave
Honored Contributor
Solution

Re: Enabling and Disabling for a specific user on HP-UX 11.11

The easiest way is to set the users shell to /usr/bin/false.

Change this in /etc/passwd (carefully).
Pete Randall
Outstanding Contributor

Re: Enabling and Disabling for a specific user on HP-UX 11.11

You can also replace the password field in /etc/passwd with an asterisk.


Pete

Pete
Pedro Cirne
Esteemed Contributor

Re: Enabling and Disabling for a specific user on HP-UX 11.11

Hi,

You may:

#passwd -l

This will lock the user account.

Check:

#man passwd

for details.

Enjoy :)

Pedro
Alan Meyer_4
Respected Contributor

Re: Enabling and Disabling for a specific user on HP-UX 11.11

There is also a deactivate user function within SAM.
" I may not be certified, but I am certifiable... "
Matthew Ghofrani
Regular Advisor

Re: Enabling and Disabling for a specific user on HP-UX 11.11

If you wanted to check the passwd first (to see if it was legit or not) you could set up a fake .profile. That also enables you to send particular message to the users and then log them out.
The above keeps the user in passwd file without * or /usr/bin/false

Matthew Ghofrani
From Boston
Life is full of bugs
KPS
Super Advisor

Re: Enabling and Disabling for a specific user on HP-UX 11.11

.