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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

securetty

Status
Not open for further replies.

tyagineeraj

IS-IT--Management
Mar 27, 2001
16
0
0
IN
Hi,

On HP-UX 10.20
I did created securetty and putted console entry in it to allow root access only from console. It blocks root access through telnet. But using exeed xdmcp i can login as root from anywhere. how can i stop it.

Thanks
Neeraj
 
Hi Neeraj,

As well as creating /etc/securetty, you need to edit the following file, (/usr/dt/config/Xstartup ) adding code such as the following


if [ -f /etc/securetty ] &&
# pwget is an HP command which checks also for Yellow Pages.
pwget -n "$USER" | awk -F: '{ exit !($3 == 0) }'; then
exit 1
fi
if [ -f /etc/nologin ]; then
exit 1
fi
exit 0

If you can, test it on a development server

Regards

Queenie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top