OpenVZ Forum


Home » General » Support » Ubuntu 9.04 wrong permissions on /dev/null after restart
Ubuntu 9.04 wrong permissions on /dev/null after restart [message #39008] Wed, 03 March 2010 22:03 Go to next message
grayrace is currently offline  grayrace
Messages: 3
Registered: March 2010
Location: San Francisco
Junior Member
Greetings,

Big fan of VZ and till this point has caused few issues but I got one I can't pin down. My appolgize if this has been reported elsewhere but I build a guest on the Ubuntu-9-04-x86 template and every time I issue shutdown -r now from within the guest when it comes back online /dev/null has the wrong permissions...

/dev# ls -lsah null
0 crw------- 1 root root 1, 3 Feb 2 14:45 null

I've taken a look at /var/log/boot but do not see a command that is causing the issue and not sure how else to approach it.

It appears to be fixed from a simple chmod 666 /dev/null but I'm more concerned about what is causing this and any long term fixes? Most of my VZs are actually running 8.04 and they do not have this problem. It appears isolated to the 9.04 template.

Re: Ubuntu 9.04 wrong permissions on /dev/null after restart [message #39010 is a reply to message #39008] Wed, 03 March 2010 23:12 Go to previous messageGo to next message
grayrace is currently offline  grayrace
Messages: 3
Registered: March 2010
Location: San Francisco
Junior Member
I've narrowed it a bit further down...

Steps to reproduce:

sudo vzctl create 58212 --ostemplate ubuntu-9.04-x86 --config 10split --ipadd 10.0.0.0 --hostname somedomain

Upon inital login if you do a restart there isn't a problem. However after running:

apt-get update
apt-get upgrade

Then preform a restart the permissions on /dev/null change.

Here is the packages modified after the upgrade:

The following packages have been kept back:
bind9 bind9-host bind9utils libbind9-40 libdns45 libisc45 libisccc40
libisccfg40 liblwres40
The following packages will be upgraded:
apache2 apache2-doc apache2-mpm-prefork apache2-utils apache2.2-common cron
dhcp3-client dhcp3-common expat fetchmail file gzip libapr1 libaprutil1 libc6
libcups2 libcupsys2 libcurl3-gnutls libdbus-1-3 libexpat1 libglib2.0-0
libgnutls26 libkrb53 libmagic1 libmysqlclient15off libnewt0.52 libpam-modules
libpam-runtime libpam0g libperl5.10 libpq5 libsasl2-2 libsasl2-modules
libsnmp-base libsnmp15 libsqlite3-0 libssl0.9.8 libvolume-id1 libwbclient0
libxml2 lsb-base lsb-release mysql-common openssl perl perl-base perl-modules
samba samba-common sasl2-bin smbfs snmp sudo tzdata udev wget whiptail
57 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
Re: Ubuntu 9.04 wrong permissions on /dev/null after restart [message #39012 is a reply to message #39010] Thu, 04 March 2010 01:44 Go to previous messageGo to next message
efball is currently offline  efball
Messages: 41
Registered: September 2006
Location: Santa Rosa, California
Member
I have some ubuntu containers on a debian host and I had a lot of problems with /dev files until I removed udev from the ubunutu containers. It's a kernel/udev compatibility issue. Once udev is gone create any missing /dev files with MAKEDEV and fix any permissions problems and then they should stick

E Frank Ball efball@efball.com
Re: Ubuntu 9.04 wrong permissions on /dev/null after restart [message #39032 is a reply to message #39012] Thu, 04 March 2010 22:37 Go to previous message
grayrace is currently offline  grayrace
Messages: 3
Registered: March 2010
Location: San Francisco
Junior Member
Hi upgrade to the newest template solved my problem it appears the problem was caused by the patch to UDEV issued when I ran the upgrade.
Previous Topic: Execute Script on HN after VM Start
Next Topic: iptables/firewall script for openvz
Goto Forum:
  


Current Time: Sun Apr 28 05:07:16 GMT 2024

Total time taken to generate the page: 0.02770 seconds