LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 07-06-2005, 12:52 AM   #1
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Distribution: RH,FC/SuSE/Debian/HPUX/OSX
Posts: 511

Rep: Reputation: 30
Question is service chrooted?


hi,
how can I see if a service is running chroot?
if a ps -eff shows a "chroot parameter" with the service?

does it depends on distro?

thx
 
Old 07-06-2005, 12:58 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,060

Rep: Reputation: 295Reputation: 295Reputation: 295
One way is to use lsof -p <pid> and see what the rtd file descriptor is set to. This is the root directory of the process.
 
Old 07-06-2005, 01:10 AM   #3
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Distribution: RH,FC/SuSE/Debian/HPUX/OSX
Posts: 511

Original Poster
Rep: Reputation: 30
ok, e.g.:
Code:
#lsof -p <pid>|grep rtd
named   <pid> named  rtd    DIR        8,6    4096 2281827 /var/named/chroot
thats all? ;-)

is the dir-name always ..../servicename/chroot ???
 
  


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
What does chrooted mean? Red Squirrel Linux - Software 6 08-21-2005 08:41 PM
cron for chrooted users metobln Linux - Software 4 04-24-2005 05:39 AM
chrooted apache on suse dominant Linux - Security 3 11-10-2004 11:08 AM
Chrooted Apache dominant Linux - Security 4 09-20-2004 02:48 AM
linking outside a chrooted dir ? 7even Linux - Newbie 1 11-15-2003 02:41 PM


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

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