Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 07-14-2004, 03:33 PM   #1
Registered: May 2004
Location: Italy
Distribution: Debian Unstable 64bit
Posts: 99

Rep: Reputation: 15

how can i chroot a program, and let it run with normal user permissions?
i've set up the jail, the program is 'bitchx', i installed also the program 'id' in the jail, and when i run chroot etcetc id, i see 0 (i'm root), but if i try to run chroot as normal user it says that i don't have permissions... so how can i do this? i've to install 'su' in the jail and then do 'su normaluser -c command'? isn't having 'su' inside the jail a security risk?
Old 07-14-2004, 03:48 PM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
If your su binary depends on PAM, you may need to recompile a new su to use instead in the jail.

This chroot jail howto is not exactly what you are doing but may give some ideas.
Old 07-15-2004, 02:35 AM   #3
Registered: May 2004
Location: Italy
Distribution: Debian Unstable 64bit
Posts: 99

Original Poster
Rep: Reputation: 15
i resolved in another way i discovered a tool called chrootuid that change the root dir and change also the user uid, so you don't need to include su in the jail


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
chroot help Smokey Slackware 15 02-24-2013 11:32 PM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 10:30 AM
chRoot SpaceCadet Linux - Networking 3 08-14-2003 05:29 AM
Chroot chamkila Linux - General 1 06-13-2003 05:46 AM
Better than chroot? radnix Linux - Security 5 12-20-2002 06:55 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:25 AM.

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