Operating System - HP-UX
1823415 Members
2781 Online
109655 Solutions
New Discussion юеВ

HP-UX Restrcting Login Access , from Multiuser?

 
SOLVED
Go to solution
Raj D.
Honored Contributor

HP-UX Restrcting Login Access , from Multiuser?

Hi Guys , gurus ,

How i can restrict , the users , not to login to the system , without going to single user mode.

like solaris /etc/nologin

I have HP-UX B.11.00 , and /etc/nologin dont works.

can any one give some idea ,

Regards,

Raj. D
---------
" If u think u can , If u think u cannot , - You are always Right . "
6 REPLIES 6
Cheryl Griffin
Honored Contributor

Re: HP-UX Restrcting Login Access , from Multiuser?

/etc/nologin is a feature of HP Secure Shell
T1471AA
http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA
"Downtime is a Crime."
BONNAFOUS Jean Marc
Trusted Contributor

Re: HP-UX Restrcting Login Access , from Multiuser?

Hi,

To use nologin file change value in /etc/default/security: replace NOLOGIN=0 by NOLOGIN=1. See also if you have all patches concerning NOLOIN are installed.

Other method for restrict login: change login shell script in /etc/passwd. Use /bin/false instead of sh or ksh.(use specialy for ftp users).

Rgds
JMB
Si vous ne faites jamais de b├йtises, c'est que vous ne faites rien de difficile. Et ├зa c'est une grosse b├йtise.
Uday_S_Ankolekar
Honored Contributor

Re: HP-UX Restrcting Login Access , from Multiuser?

Create a file security in /etc/default and Put NOLOGIN=1 File owner will be root with 644 permissions. Also create a file in /etc/nologin and Put the message in there so that users gets it.

-USA..
Good Luck..
BONNAFOUS Jean Marc
Trusted Contributor

Re: HP-UX Restrcting Login Access , from Multiuser?

for more info concerning security file in /etc/default and security patches:

http://www.interex.org/pubcontent/enterprise/jul01/09uxqa.html

JMB
Si vous ne faites jamais de b├йtises, c'est que vous ne faites rien de difficile. Et ├зa c'est une grosse b├йtise.
Muthukumar_5
Honored Contributor
Solution

Re: HP-UX Restrcting Login Access , from Multiuser?

There is more ways to do that,

Create /etc/nologin file and setting variable NOLOGIN to 1 in file /etc/default/security ,it will work fine.

And more ways over here,

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

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

Regards
Muthu
Easy to suggest when don't know about the problem!
Rick Garland
Honored Contributor

Re: HP-UX Restrcting Login Access , from Multiuser?

For older versions of HPUX, you can add this bit of logic to the /etc/profile. Then "touch /etc/nologin"



for the /etc/profile to prevent user logins during system maintenance while
in multiple mode:

if [ -f /etc/nologin ]
then
if [ $LOGNAME != "root" ]
then
echo "System maintenance is be performed and users are being"
echo "prevented from accessing the system."
sleep 5
exit
fi
fi