Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to disable root login 1

Status
Not open for further replies.

paulng180

MIS
Mar 3, 2003
5
HK
Hi All,

I would like to disable the root direct login thru telnet. If user would like to use the root account, I would like to force them using "su" command. How can I achieve this goal?

Thanks,

Paul
 
It's probably not the same, but in Solaris, enabling the line CONSOLE=/dev/console (ie uncommenting it) in the file /etc/default/login disables root access from anywhere but the console.
 
Hi,

I found that "/etc/securetty" does not existed on my system; my os version is 11.0 (HP-UX).

Cheers,

Paul
 
Apparently you cann create /etc/securetty if it doesn't exist. There are other threads about this if you do a keyword search on securetty. Good luck.
 
Hi,

No such things existed. like: man -k securetty; do you mixed up with Linux?

Thanks,

Paul
 
securetty is correct

Mike

"Deliver me from the bane of civilised life; teddy bear envy."

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top