That is the problem. The permission is set to 666 and the group is root. But it still don't work.
On Wed, Mar 17, 2010 at 11:22 PM, Wayne <linux...@gmail.com> wrote: > Knowledge Seeker wrote: > >> Hi, >> I have an old Debian Etch box, running Apache2 on chroot jail. Yesterday, >> (it sounds like joke) I turned off the machine and when I started it again >> the web server did not come to life again. >> The problem was a Permission Denied on the /dev/null. >> >> I created my device with the command: mknod -m 0666 /chroot/dev/null c 1 >> 3 >> listing the permissions: >> >> crw-rw-rw- 1 root root 1, 3 2010-03-16 18:37 null >> crw-rw-rw- 1 root root 1, 8 2010-03-16 18:39 random >> crw-rw-rw- 1 root root 1, 9 2010-03-16 18:39 urandom >> >> >> (When I change the group to sys, don't solve the problem) >> >> Even outside of the chroot when I try to echo something and redirect to >> this >> device I get the same message: >> >> -su: null: Permission Denied >> >> My kernel is the default: >> 2.6.18-6-686 #1 SMP >> >> Everything worked fine 2 days ago. >> >> I really wish to understand and solve this issue. >> When I mount all /dev with a bind option, it works fine again, but I >> > > I ran into that after an upgrade on squeeze a few months ago. As a result > a few programs would not run. The atd daemon was the only one I cared > about. Don't know, yet, what caused it but the fix was to put the following > into /root/.bash_profile. > > chmod 666 /dev/null > chgrp root /dev/null > > /etc/init.d/atd restart > > HTH > > Wayne > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a > subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > Archive: http://lists.debian.org/4ba16444.4010...@gmail.com > > -- Knoseeker