Operating System - HP-UX
1833787 Members
2274 Online
110063 Solutions
New Discussion

Setup Non-Logon User Account

 
MJ West
New Member

Setup Non-Logon User Account

Does HP-UX have facilities like Solaris 9/10 to setup/configure a user ID so that it can run processes like cron and allow other authorized users to sudo su to it but does not allow a user to interactively logon with that ID (via ssh, telnet, ftp, etc.)? In solaris this is accomplished by the "passwd -N [userid]" command option.
4 REPLIES 4
Victor Fridyev
Honored Contributor

Re: Setup Non-Logon User Account

Lock the user's password, put * into password field in /etc/passwd.

HTH
Entities are not to be multiplied beyond necessity - RTFM
Suraj K Sankari
Honored Contributor

Re: Setup Non-Logon User Account

Hi,
To Lock or Deactivate user account use this below command

passwd -l

Suraj
Heiner E. Lennackers
Respected Contributor

Re: Setup Non-Logon User Account

Hi,

another method is to set the users default shell in /etc/passwd to /bin/false.
if this makes any sense to you, you have a BIG problem
Victor Fridyev
Honored Contributor

Re: Setup Non-Logon User Account

If the user's shell is defined as /bin/false or /bin/nologin, this user will not be able to run cron jobs and "su username" commands
Entities are not to be multiplied beyond necessity - RTFM