LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-07-2006, 06:39 AM   #1
guysoft
Member
 
Registered: Jun 2004
Location: israel
Distribution: mandrake, MEPIS and menny live-cds
Posts: 71

Rep: Reputation: 16
Debug in Eclipse as root


Hello,
I have a program that has to run as root. How do I debug it in Eclipse without running the hole IDE as root?

Thanks,
Guy

Using debian if it helps
 
Old 10-14-2006, 12:23 AM   #2
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Create a chroot jail and run the program in there. But how you do that im not sure


"I dont know you just do it!" <Q from startrek TNG>
 
Old 10-16-2006, 09:48 AM   #3
guysoft
Member
 
Registered: Jun 2004
Location: israel
Distribution: mandrake, MEPIS and menny live-cds
Posts: 71

Original Poster
Rep: Reputation: 16
How do I do a chroot jail within Eclipse then?
 
Old 10-16-2006, 07:30 PM   #4
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
If im remebering correctly you would create a duplicate of the file system in another directory and then you chroot into that directory. Once your in you can then run things as root and they will run only in the directory not affecting the rest of the system. Im probably wrong and it probably involves more steps I remember reading about it a while back ago regarding security and what not.


this link talks about setting up a chroot jail and running bind
http://www.losurs.org/docs/howto/Chroot-BIND-2.html

Last edited by exvor; 10-16-2006 at 07:39 PM.
 
  


Reply



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
Eclipse IDE - can only run as root not as user JonnyW247 Linux - Software 10 05-28-2016 07:17 PM
running tomcat with eclipse as non-root javcerty Linux - Newbie 4 04-16-2009 12:09 PM
Using Eclipse to debug from Windows To Linux flashburn Linux - Software 1 09-19-2005 06:28 AM
running tomcat with eclipse as non-root user javcerty Linux - Software 1 03-05-2005 07:36 PM
Eclipse 3.0 starts only as root netjack Linux - Software 1 03-16-2004 02:09 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration