On Sat, Mar 14, 2009 at 07:44:58PM -0700, Russ Allbery wrote: > Mate <[email protected]> writes: > > > The solution was: > > > > # chmod a+w /home/user/dev/null > > mkchroot.sh creates /dev/null with cp -a in the version that's in Debian. > Does your regular /dev/null also have the wrong permissions?
My regular /dev/null is ok, and you are right. I know what the problem was. I created one chroot environment and copied it to several homedirectories (jails) like this: debian:~# whoami root debian:~# ls -la jail ls: cannot access jail: No such file or directory debian:~# ls -la /dev/null crw-rw-rw- 1 root root 1, 3 2009-03-12 10:27 /dev/null debian:~# /usr/share/doc/rssh/examples/mkchroot.sh jail Creating root jail directory. [...] NOTE: we make no guarantee that ANY of this will work for you... if it doesn't, you're on your own. Sorry! debian:~# ls -la jail/dev/ total 8 drwxr-xr-x 2 root root 4096 2009-03-12 18:31 . drwxr-xr-x 6 root root 4096 2009-03-12 18:31 .. srw-rw-rw- 1 root root 0 2009-03-12 10:27 log crw-rw-rw- 1 root root 1, 3 2009-03-12 10:27 null debian:~# cp -r jail/ jail2 debian:~# ls -la jail2/dev/ total 8 drwxr-xr-x 2 root root 4096 2009-03-12 18:32 . drwxr-xr-x 6 root root 4096 2009-03-12 18:32 .. srw-r--r-- 1 root root 0 2009-03-12 18:32 log crw-r--r-- 1 root root 1, 3 2009-03-12 18:32 null debian:~# All the tools worked perfectly, I just misused them. And caused a hard-to-debug problem for myself... Thanks for your help again, -- M ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ rssh-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rssh-discuss
