Okay I have a tricky problem. I want to disable root's ability to send send xterms to remote display's.
I already have the settings set correctly to disallow root except on console in /etc/default/login, and I have set in sshd to use login.
So lets say I login to a server as root, and then run:
xterm -d 100.100.100.105:0.0
If I have some sort of xwindows client like exceed, or reflections running on 100.100.100.105, I will get an xterm window with root access on that computer. This shows in logs and everywhere like someone logged in directly as root, therefore there is no audit trail.
If I look at the output from a who statement while a root xterm is open, this is what I see:
root pts/5 Apr 10 13:41 (100.100.100.105)
So I figure I should be able to FORCE root to ONLY use the console and not pts/5. This should give me the ability to still ssh as myself, and then su to root, but not push root sessions to remote displays. That way there is ALWAYS an audit trail of which user's su'ed to root and what they did.
So how do I make that or something similar work??
Any help would be great!
Thanks!
Bryan
I already have the settings set correctly to disallow root except on console in /etc/default/login, and I have set in sshd to use login.
So lets say I login to a server as root, and then run:
xterm -d 100.100.100.105:0.0
If I have some sort of xwindows client like exceed, or reflections running on 100.100.100.105, I will get an xterm window with root access on that computer. This shows in logs and everywhere like someone logged in directly as root, therefore there is no audit trail.
If I look at the output from a who statement while a root xterm is open, this is what I see:
root pts/5 Apr 10 13:41 (100.100.100.105)
So I figure I should be able to FORCE root to ONLY use the console and not pts/5. This should give me the ability to still ssh as myself, and then su to root, but not push root sessions to remote displays. That way there is ALWAYS an audit trail of which user's su'ed to root and what they did.
So how do I make that or something similar work??
Any help would be great!
Thanks!
Bryan