Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hi,
i've had a look, but cannot find a clear answer. Is ssh X11 forwarding disabled for root or just not possible? In the second occasion would the only solution be the creation of an account with administrative rights?
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697
Rep:
In /etc/ssh/sshd_config is where root is define as not a user that can login. It is just a default setting to add more security to ssh. If root is allowed to login and you have a easy password that a brute force password cracker can do then someone would have full control of your machine. If they are not nice then you may have nothing or they may even use yours to attack others and it will be your machine attacking others. What do you need to run as root from X11. There should be a way to do it.
Thanks Brian1,
I have enabled the option "PermitRootLogin" and i can login as root. However, X11 applications -when i have logged in as root- gets me with errors, which do not appear when i login as a regular user. I suspect that X11 forwarding for root is not possible. I want to login as root and be able to get X forwarding, in order to use fwbuilder. Your security remarks are right, but which are the alternatives?
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697
Rep:
This is the way I run an X app that needs to be run as root. Login using the -Y option.
ssh -Y username@192.168.2.1
Enter password or passphrase
Type su and enters root password of remote machine
Then one can type ' fwbuilder ' and the fwbuilder from the remote machine should come up on local desktop.
If it works go back and disable root login.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.