[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ezjail] Re: Weird Permission Denied Error.

At this point, I don't have a clue what's wrong. I'm just grasping at straws, trying to think what I'd look at.

What does /etc/fstab.<YOURJAILNAME> look like? Could be the mount options blocking execution. Where are your jails mounted? Is /usr/jails a separate filesystem? If yes, is that filesystem mounted noexec?

Can you run (from the host, outside the jail):
  su -u nobody -c /usr/jails/basejail/bin/csh

Dan Rue wrote:
On Fri, Aug 10, 2007 at 05:04:58PM -0400, Patrick Wolfe wrote:
What does "type su" display?

root@lucky:/usr# jexec 25 /bin/sh
# type su
su is /usr/bin/su

What does "file /bin/csh" display?

# file /bin/csh
/bin/csh: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), stripped

Can you do the "su -m nobody -c /bin/csh" on the host system (outside the jail)?

root@lucky:/usr# su -m nobody -c /bin/csh
You have mail.

Think it's related to the basejail mount? Dan


Patrick Wolfe (patrick.wolfe AT employease DOT com)
Production Engineer, ADP Employease

office: 770-325-7724
mobile: 404-213-1453
fax:    770-325-7702