Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-06-2013, 01:13 PM   #1
Registered: Dec 2010
Posts: 36

Rep: Reputation: 0
Talking [Iron cannot be run as root] but [You can run iron as root]

[Iron cannot be run as root] but [You can run iron as root]

Dear novice friends,

On Debian-6: In the case you like "iron" browser, but found it refuse to start up if you are playing as root user. You can do a little hack with "hexedit". Debian-6 does not install "hexedit" by default so you need to download and install it using "synaptic package manager". I cannot remember where I found this hack but I can remember how to do it.

Go into directory where the "iron" binary file is on a root console, and:

1) hexedit ./iron (press Enter....This load the iron on hexedit.)
2) Then press: Tab (....This shall send cursor to ascii column on the right side.)
3) Then press: Ctrl + s (....This to start search function.)
4) Then type in a search parameter: "euid" ((without the quote) and press Enter. This shall get the cursor to the highlighted "euid".)
5) Then you just type: "ppid" ((without the quote). This shall over write euid to ppid.)
6) Then press: F2 (This shall save the edit you just have made.)
7) Then press: Ctrl + c (To exit hexedit)

Now you should be able to start "iron" as root user. This could work on "other program" that refuse to start like iron. You only replace ./"iron" bit with the "program name". Try it out. You guessed it, that "euid" bit is the prohibition, and "ppid" un-prohibit it?

You should also visit: Ultimate Logic [Tenpage] by Otomakas who says "You do not have to die".
This short massage is the only real essential reading since the beginning of this Earth generation for everyone on Earth.

Happy messing about,
Old 04-06-2013, 07:25 PM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Running a browser as root is idiotic. You've gone through a lot of trouble to do something so dumb.
Old 04-06-2013, 10:35 PM   #3
John VV
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,239

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
about the only time is if you are on a rescue disk ( single user only ) to try to fix something
but then it is a live dvd disk so .... it really dos not matter then .
Old 04-07-2013, 10:05 PM   #4
Registered: Mar 2008
Posts: 17,188

Rep: Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562
"Running a browser as root is idiotic." While not the most polite statement I have read, the point should be more like. "It is not a best practice to run any program as root." A better solution would be to run browsers as the lowest level required.

Your hack is a backwards step for security but I commend you for your work and effort. You seem to have figured out how the writers of the program tried to protect it.

Last edited by jefro; 04-07-2013 at 10:06 PM.


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
[SOLVED] How to allow access to some commands having root privleges to be run bu non root user suryashikha Linux - Newbie 8 10-31-2009 02:05 PM
how can i run a java program with root privilages from a non-root account? joyjjs Linux - Software 1 08-04-2009 01:14 AM
How can I have a script owned as root and run as root by a user: setuid? stickey bit? abefroman Linux - Newbie 9 04-19-2008 06:15 PM
why lftp command run failed when user isn't root, but ok when logining as root steven_yu Linux - Software 0 06-06-2007 09:36 PM
Is a script, run at boot time from init.d, run with root authority? tmbrwolf53 Linux - Server 2 03-31-2007 09:15 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:56 PM.

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