Re: [gentoo-user] Can I chroot to a folder?

2013-03-18 Thread Volker Armin Hemmann
Am 18.03.2013 19:43, schrieb João Matos:
 Do I need to create a partition just for this?

no




Re: [gentoo-user] Can I chroot to a folder?

2013-03-18 Thread Paul Hartman
On Mon, Mar 18, 2013 at 1:43 PM, João Matos jaon...@gmail.com wrote:
 Hi list,

 I want to install a samba server using Gentoo. But I decided to start the
 installation o my machine and make a stage4 at some folder. The idea is to
 spent less time at the target machine.

 But, when I try to chroot, I get the error:

 chroot: failed to run command '/bin/bash': Permission Denied

 the permitions are ok:

 ls -l /media/outro/gentoo/bin/bash
 -rwxr-xr-x 1 root root 737808 Jan 30 02:55 /media/outro/gentoo/bin/bash

Is that partition mounted with noexec option? or user option
without explicit exec option?

 Do I need to create a partition just for this?

Nope



Re: [gentoo-user] Can I chroot to a folder?

2013-03-18 Thread João Matos
2013/3/18 Paul Hartman paul.hartman+gen...@gmail.com

 On Mon, Mar 18, 2013 at 1:43 PM, João Matos jaon...@gmail.com wrote:
  Hi list,
 
  I want to install a samba server using Gentoo. But I decided to start the
  installation o my machine and make a stage4 at some folder. The idea is
 to
  spent less time at the target machine.
 
  But, when I try to chroot, I get the error:
 
  chroot: failed to run command '/bin/bash': Permission Denied
 
  the permitions are ok:
 
  ls -l /media/outro/gentoo/bin/bash
  -rwxr-xr-x 1 root root 737808 Jan 30 02:55 /media/outro/gentoo/bin/bash

 Is that partition mounted with noexec option? or user option
 without explicit exec option?


problem solved :)


  Do I need to create a partition just for this?

 Nope




-- 
João de Matos
Linux User #461527
Graduando em Engenharia de Computação 2005.1
UEFS - Universidade Estadual de Feira de Santana


Re: [Bulk] Re: [gentoo-user] Can I chroot to a folder?

2013-03-18 Thread Kevin Chadwick
  Is that partition mounted with noexec option? or user option
  without explicit exec option?
   
 
 problem solved :)

You know you can bind mount just the directories you want with exec but
as interpreters don't check this mount option, it's not as effective as
it could be ;-(

-- 
___

'Write programs that do one thing and do it well. Write programs to work
together. Write programs to handle text streams, because that is a
universal interface'

(Doug McIlroy)
___