LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   [Iron cannot be run as root] but [You can run iron as root] (https://www.linuxquestions.org/questions/linux-newbie-8/%5Biron-cannot-be-run-as-root%5D-but-%5Byou-can-run-iron-as-root%5D-4175457143/)

godoten 04-06-2013 12:13 PM

[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".
http://tenpage.pwp.blueyonder.co.uk/en/welcome.html
This short massage is the only real essential reading since the beginning of this Earth generation for everyone on Earth.

Happy messing about,
---godoten:newbie:

MS3FGX 04-06-2013 06:25 PM

Running a browser as root is idiotic. You've gone through a lot of trouble to do something so dumb.

John VV 04-06-2013 09:35 PM

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 .

jefro 04-07-2013 09:05 PM

"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.


All times are GMT -5. The time now is 03:29 AM.