PDA

View Full Version : FC4 Perfect Setup - chroot


Ice
2nd December 2005, 22:25
I'm setting up a new server and I have followed the guide perfectly that I can see. I have trouble when I get to the the chroot part, when i do
ln -s ../.. chroot
I get ther error
ln: `chroot/..': cannot overwrite directory

Any suggestions?

falko
3rd December 2005, 01:24
Did you run this?
cd /var/named/chroot/var/named/
ln -s ../../ chroot

If yes, then there's a directory called chroot in /var/named/chroot/var/named/.

Please post the output of ls -l /var/named/chroot/var/named/

Ice
3rd December 2005, 22:16
total 72
lrwxrwxrwx 1 root root 6 Dec 2 18:51 chroot -> ../../
drwxrwx--- 2 named named 4096 Aug 25 2004 data
-rw-r--r-- 1 named named 198 Aug 25 2004 localdomain.zone
-rw-r--r-- 1 named named 195 Aug 25 2004 localhost.zone
-rw-r--r-- 1 named named 415 Aug 25 2004 named.broadcast
-rw-r--r-- 1 named named 2518 Aug 25 2004 named.ca
-rw-r--r-- 1 named named 432 Aug 25 2004 named.ip6.local
-rw-r--r-- 1 named named 433 Aug 25 2004 named.local
-rw-r--r-- 1 named named 416 Aug 25 2004 named.zero
drwxrwx--- 2 named named 4096 Jul 27 2004 slaves

falko
3rd December 2005, 23:33
There's already a symlink from chroot to ../../! This means everything is ok, you can forget about the error. :)

Ice
3rd December 2005, 23:38
Heh, I'm a linux noob, forgive me. Thanks for the help.