It's because SHELL is /bin/zsh which doesn't exist in the chroot.  And
the -p option tells login to keep the environment, so it fails...

sh-3.1# /bin/su root -p -c 'ls -la'
sh-3.1# unset SHELL
sh-3.1# /bin/su root -p -c 'ls -la'
total 88
drwxr-xr-x 22 root root   4096 Jul 15 00:59 .
drwxr-xr-x 22 root root   4096 Jul 15 00:59 ..
...

-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to