1832505 Members
4597 Online
110043 Solutions
New Discussion

Single User Login

 
Serge Uranie
Occasional Contributor

Single User Login

Can anyone please tell me how I can start the server in such a way that only one user (say ROOT) can log on the server.

The OS is HPUX 11.00

Thanks
Feel the tropical climate
2 REPLIES 2
Madanagopalan S
Frequent Advisor

Re: Single User Login

boot the server.
interrupt the boot from hd
say yes to interact with IsL
enter hpux -is.

This will bring the single user mode.

more info read man hpux.
let Start to create peaceful and happy world
Sandip Samanta_1
Occasional Contributor

Re: Single User Login

Hi,
You can start your server with hpux -is from ISL prompt. Which will start your server in Single User Mode.

If you don't want to let in anybody in Multiuser mode then you have to follow the following steps.
1) touch /etc/nologin
2) Edit /etc/profile & add the following line.
uid=`id -u`
if [ -f /etc/nologin -a $uid -ne 0 ]
then
echo "Sorry no login allowed now, try later"
sleep 5
exit 0
fi

Hope above two steps would help you.

US-SUPPORT HP-UX