LinuxQuestions.org
Visit Jeremy's Blog.
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, 01:52 AM   #1
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

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, 01:58 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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, 02:10 AM   #3
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

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

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:24 AM.

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