Operating System - HP-UX
1832586 Members
2873 Online
110043 Solutions
New Discussion

Re: how to disable root login for x-manager

 
M.S.GANESAN
Occasional Advisor

how to disable root login for x-manager

hi,

i want to disable the root direct login through x-manager as well as through SSH. pls help me out. and tell me how to disable for particular user also.
5 REPLIES 5
Yang Qin_1
Honored Contributor

Re: how to disable root login for x-manager

Hi, check if you have a fle called /etc/securetty and put console in the file so that root can only logon to console but not the other terminal sessions.

You need root direct logon with console for maintenance ....


Yang
M.S.GANESAN
Occasional Advisor

Re: how to disable root login for x-manager

hi,

i have already done this to disable for telnet session. but for x-manager and SSH also want to do the same(root login disable)

thanks
Yang Qin_1
Honored Contributor

Re: how to disable root login for x-manager

For CDE:

copy /usr/dt/config/Xstartup to /etc/dt/config/Xstartup and edit /etc/dt/config/Xstartup add:

if [ $USER = root ]; then
exit 5
fi

you may need to restart cde

For SSH
check you sshd#_config file and look for
"PermitRootLogin" put no there.

Yang
Ratzie
Super Advisor

Re: how to disable root login for x-manager

Will this have an issue if root logs in thru the console and lauches a cde session?
Yang Qin_1
Honored Contributor

Re: how to disable root login for x-manager

> Will this have an issue if root logs in thru the console and lauches a cde session?

root can start a x-session like xterm, dtterm, or x-application like netscape, xomni ... after log on to console by "export DISPLAY=xhost:0.0".

If cde is involved user still need to logon first.


Yang