Empty and not readable /etc/resolv.conf file

Asmo Koskinen asmo.koskinen at arkki.info
Sat Apr 11 09:48:39 BST 2009


Asmo Koskinen kirjoitti:

> There must something in some script that should change that mode in chroot?

Here is a fix.

This one is for server with one nic. This works also with two nics 
(forward & nat). I tested it, too.

1.

admin-ltsp5 at ubuntu-ltsp5:~$ cat /opt/ltsp/i386/etc/init.d/chmod-resolv.sh
#! /bin/sh
chmod 644 /etc/resolv.conf

admin-ltsp5 at ubuntu-ltsp5:~$

2.

admin-ltsp5 at ubuntu-ltsp5:~$ cat /var/lib/tftpboot/ltsp/i386/lts.conf
#
SEARCH_DOMAIN = ubuntu-ltsp5
DNS_SERVER = 192.168.1.1
#
RCFILE_01=/etc/init.d/chmod-resolv.sh

admin-ltsp5 at ubuntu-ltsp5:~$

3.

admin-ltsp5 at ubuntu-ltsp5:~$ ssh root at 192.168.1.200
root at 192.168.1.200's password:
root at ltsp200:~# ls -al /etc/resolv.conf
-rw-r--r-- 1 root root 43 2002-01-13 17:13 /etc/resolv.conf
root at ltsp200:~#

4.

ltsp-localapps works with Internet.

Best Regards Asmo Koskinen.



More information about the edubuntu-users mailing list