Bug#391286: df: `/dev/.static/dev': Permission denied

2006-10-06 Thread Petter Reinholdtsen
severity 391286 normal
merge 391286 391122
thanks

[Marco d'Itri]
 reassign 391286 initscripts
 thanks
 
 On Oct 05, Zlatko Calusic [EMAIL PROTECTED] wrote:
 
  df: `/dev/.static/dev': Permission denied
  ...
 
  What can be done about that?
 For a start you could blame the correct package.
 As you can see from /etc/init.d/udev-mtab, by default udev itself does
 not add /dev/.static/dev to /etc/mtab.
 I am reassigning the bug to initscripts which looks a likely candidate
 for updating mtab.

There are two options here.  One is to make /dev/.static/ readable by
all users, to avoid the permission denied error from df.  The other is
to remove /dev/.static/dev from /etc/mtab.  The latter will remove the
error message from df while creating a new error message from umount
during shutdown when all file systems are umounted.

I'm not quite sure what is best.  If I got it right, you maintain
udev.  What is your opinion on this.  Why is /dev/.static/ unaccesable
for non-root users?

Friendly,
-- 
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#391286: df: `/dev/.static/dev': Permission denied

2006-10-06 Thread Marco d'Itri
On Oct 06, Petter Reinholdtsen [EMAIL PROTECTED] wrote:

 I'm not quite sure what is best.  If I got it right, you maintain
 udev.  What is your opinion on this.  Why is /dev/.static/ unaccesable
 for non-root users?
#294968

BTW, there is already udev-mtab which adds /dev to mtab.

-- 
ciao,
Marco


signature.asc
Description: Digital signature


Bug#391286: df: `/dev/.static/dev': Permission denied

2006-10-06 Thread Zlatko Calusic
Petter Reinholdtsen [EMAIL PROTECTED] writes:

 The other is
 to remove /dev/.static/dev from /etc/mtab.  The latter will remove the
 error message from df while creating a new error message from umount
 during shutdown when all file systems are umounted.

This looks like an appropriate solution, IMHO. What error message? It
can probably be avoided with some specific code for unmounting
/dev/.static/dev

Thank you for your good work!
-- 
Zlatko


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#391286: df: `/dev/.static/dev': Permission denied

2006-10-05 Thread Zlatko Calusic
Package: udev
Version: 0.100-2
Severity: minor

chmod in this chunk of code in /etc/init.d/udev:

  if [ -z $no_static_dev ]; then
mkdir -p /dev/.static/dev
chmod 700 /dev/.static/
mount -n --move /lib/udev/devices /dev/.static/dev
  fi

produces this ugliness when typing df:

...
tmpfs   515796 4515792   1% /dev/shm
df: `/dev/.static/dev': Permission denied
tmpfs  314572824   3145704   1% /tmp
...

What can be done about that?

Thank you for your good work!

-- Package-specific info:
-- /etc/udev/rules.d/:
/etc/udev/rules.d/:
total 8
lrwxrwxrwx 1 root root   20 Sep 18  2005 020_permissions.rules - 
../permissions.rules
lrwxrwxrwx 1 root root   13 Sep 27 19:56 035_kino.rules - ../kino.rules
lrwxrwxrwx 1 root root   15 Mar  7  2006 85-pcmcia.rules - ../pcmcia.rules
lrwxrwxrwx 1 root root   13 Sep 18  2005 udev.rules - ../udev.rules
lrwxrwxrwx 1 root root   25 Mar 28  2006 z20_persistent-input.rules - 
../persistent-input.rules
lrwxrwxrwx 1 root root   19 Sep 18  2005 z20_persistent.rules - 
../persistent.rules
-rw-r--r-- 1 root root 1123 Aug 28 10:26 z25_persistent-cd.rules
-rw-r--r-- 1 root root  814 Sep 13 22:00 z25_persistent-net.rules
lrwxrwxrwx 1 root root   33 Apr 20 19:31 z45_persistent-net-generator.rules - 
../persistent-net-generator.rules
lrwxrwxrwx 1 root root   12 Sep 18  2005 z50_run.rules - ../run.rules
lrwxrwxrwx 1 root root   16 Oct  9  2005 z55_hotplug.rules - ../hotplug.rules
lrwxrwxrwx 1 root root   19 Aug 16  2005 z60_alsa-utils.rules - 
../alsa-utils.rules
lrwxrwxrwx 1 root root   15 Sep 20  2005 z60_hdparm.rules - ../hdparm.rules
lrwxrwxrwx 1 root root   29 Mar 29  2006 z75_cd-aliases-generator.rules - 
../cd-aliases-generator.rules
lrwxrwxrwx 1 root root   12 Oct  4 19:36 z99_hal.rules - ../hal.rules

-- /sys/:
/sys/block/fd0/dev
/sys/block/hda/dev
/sys/block/hda/hda1/dev
/sys/block/hda/hda10/dev
/sys/block/hda/hda11/dev
/sys/block/hda/hda12/dev
/sys/block/hda/hda2/dev
/sys/block/hda/hda3/dev
/sys/block/hda/hda5/dev
/sys/block/hda/hda6/dev
/sys/block/hda/hda7/dev
/sys/block/hda/hda8/dev
/sys/block/hda/hda9/dev
/sys/block/hdc/dev
/sys/block/hdd/dev
/sys/block/hdd/hdd1/dev
/sys/block/hdd/hdd2/dev
/sys/block/hdd/hdd3/dev
/sys/block/hdd/hdd4/dev
/sys/block/hdd/hdd5/dev
/sys/block/hdd/hdd6/dev
/sys/block/loop0/dev
/sys/block/loop1/dev
/sys/block/loop2/dev
/sys/block/loop3/dev
/sys/block/loop4/dev
/sys/block/loop5/dev
/sys/block/loop6/dev
/sys/block/loop7/dev
/sys/block/md0/dev
/sys/block/nbd0/dev
/sys/block/nbd1/dev
/sys/block/nbd10/dev
/sys/block/nbd11/dev
/sys/block/nbd12/dev
/sys/block/nbd13/dev
/sys/block/nbd14/dev
/sys/block/nbd15/dev
/sys/block/nbd2/dev
/sys/block/nbd3/dev
/sys/block/nbd4/dev
/sys/block/nbd5/dev
/sys/block/nbd6/dev
/sys/block/nbd7/dev
/sys/block/nbd8/dev
/sys/block/nbd9/dev
/sys/class/cpuid/cpu0/dev
/sys/class/cpuid/cpu1/dev
/sys/class/input/input3/mouse0/dev
/sys/class/input/mice/dev
/sys/class/misc/device-mapper/dev
/sys/class/misc/fuse/dev
/sys/class/misc/nvram/dev
/sys/class/misc/psaux/dev
/sys/class/misc/rtc/dev
/sys/class/misc/tun/dev
/sys/class/msr/msr0/dev
/sys/class/msr/msr1/dev
/sys/class/ppp/ppp/dev
/sys/class/printer/lp0/dev
/sys/class/sound/admmidi/dev
/sys/class/sound/adsp/dev
/sys/class/sound/amidi/dev
/sys/class/sound/audio/dev
/sys/class/sound/audio1/dev
/sys/class/sound/controlC0/dev
/sys/class/sound/controlC1/dev
/sys/class/sound/dmmidi/dev
/sys/class/sound/dsp/dev
/sys/class/sound/dsp1/dev
/sys/class/sound/hwC0D0/dev
/sys/class/sound/hwC0D2/dev
/sys/class/sound/midi/dev
/sys/class/sound/midiC0D0/dev
/sys/class/sound/midiC0D1/dev
/sys/class/sound/midiC0D2/dev
/sys/class/sound/mixer/dev
/sys/class/sound/mixer1/dev
/sys/class/sound/pcmC0D0c/dev
/sys/class/sound/pcmC0D0p/dev
/sys/class/sound/pcmC0D1c/dev
/sys/class/sound/pcmC0D2c/dev
/sys/class/sound/pcmC0D2p/dev
/sys/class/sound/pcmC0D3p/dev
/sys/class/sound/pcmC1D0c/dev
/sys/class/sound/seq/dev
/sys/class/sound/sequencer/dev
/sys/class/sound/sequencer2/dev
/sys/class/sound/timer/dev
/sys/class/video4linux/radio0/dev
/sys/class/video4linux/vbi0/dev
/sys/class/video4linux/video0/dev

-- Kernel configuration:
 isapnp_init not present.


-- System Information:
Debian Release: testing/unstable
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18
Locale: LANG=C, LC_CTYPE=hr_HR (charmap=ISO-8859-2)

Versions of packages udev depends on:
ii  libc62.3.6.ds1-5 GNU C Library: Shared libraries
ii  libselinux1  1.30.28-2   SELinux shared libraries
ii  libvolume-id00.100-2 libvolume_id shared library
ii  lsb-base 3.1-17  Linux Standard Base 3.1 init scrip

udev recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#391286: df: `/dev/.static/dev': Permission denied

2006-10-05 Thread Marco d'Itri
reassign 391286 initscripts
thanks

On Oct 05, Zlatko Calusic [EMAIL PROTECTED] wrote:

 df: `/dev/.static/dev': Permission denied
 ...

 What can be done about that?
For a start you could blame the correct package.
As you can see from /etc/init.d/udev-mtab, by default udev itself does
not add /dev/.static/dev to /etc/mtab.
I am reassigning the bug to initscripts which looks a likely candidate
for updating mtab.

-- 
ciao,
Marco


signature.asc
Description: Digital signature