LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-29-2006, 12:07 PM   #1
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 704

Rep: Reputation: 30
root ssh X11 forwarding


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?

Thanks
 
Old 04-29-2006, 12:25 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
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,700

Rep: Reputation: 61
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.

Brian1
 
Old 04-29-2006, 12:36 PM   #3
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 704

Original Poster
Rep: Reputation: 30
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?

PS: fortunately this is not a production system
 
Old 04-29-2006, 01:59 PM   #4
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
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,700

Rep: Reputation: 61
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.

Brian1
 
Old 04-30-2006, 03:28 AM   #5
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 704

Original Poster
Rep: Reputation: 30
I face the same problems when i "su" and when i directly login as root.
 
Old 04-30-2006, 05:49 AM   #6
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 704

Original Poster
Rep: Reputation: 30
I fixed it! However, i would like, if possible, somebody to explain me what happened exactly. I just copied .Xauthority from /home/userName to /root.
 
Old 04-30-2006, 09:51 AM   #7
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
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,700

Rep: Reputation: 61
.Xauthority contains the Magic Cookie. Hard to to explain it but do a search on google for Magic Cookie mit and ssh.

Brian1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need HELP SSH X11 Forwarding wylie1001 Linux - Software 2 04-11-2006 08:12 PM
SSH/X11 Forwarding - Performance Gort32 Linux - Software 1 01-23-2006 06:04 PM
X11 forwarding over SSH SirSlappy Linux - Networking 1 10-18-2005 01:37 PM
Problems with ssh and X11 forwarding Dabria Linux - General 5 02-13-2004 10:28 AM
ssh: x11 forwarding problems Halz Linux - Software 1 06-25-2002 03:27 AM


All times are GMT -5. The time now is 11:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration