[Pkg-sysvinit-devel] Bug#391122: initscripts: df shows `/dev/.static/dev': Permission denied

Atsuhito Kohda kohda at pm.tokushima-u.ac.jp
Thu Oct 5 08:04:43 UTC 2006


On Thu, 5 Oct 2006 08:35:35 +0200, Petter Reinholdtsen wrote:

> [Atsuhito KOHDA]
> > Hi, I'm not so sure if this is really a bug of initscripts but
> > I got the following message every time I did "df"
> > 
> > df: `/dev/.static/dev': Permission denied
> 
> This is probably the result of either of the directories being
> inaccessable for the user running df.  Can you try this:
> 
>   ls -ld /dev /dev/.static /dev/.static/dev
> 
> It should pinpoint which directory point is blocking df from accessing
> the mount point.  I suspect it is the /dev/.static directory.

As a normal user (LANG=C to avoid Japanese message);
kohda at ferio:~$ LANG=C ls -ld /dev /dev/.static /dev/.static/dev
/bin/ls: /dev/.static/dev: Permission denied
drwxr-xr-x 12 root root 3900 Oct  5 09:42 /dev/
drwx------  3 root root   60 Oct  5  2006 /dev/.static/

and as a root;
ferio:/home/kohda# LANG=C ls -ld /dev /dev/.static /dev/.static/dev
drwxr-xr-x 12 root root  3900 Oct  5 09:42 /dev
drwx------  3 root root    60 Oct  5  2006 /dev/.static
drwxr-xr-x 13 root root 28672 Oct  4 08:12 /dev/.static/dev

so, as you suspected, /dev/.static was blocking df.

However, on my another system of testing, it seems the
permissions are the same as those of unstable;

capa:/home/kohda# LANG=C ls -ld /dev /dev/.static /dev/.static/dev
drwxr-xr-x 14 root root 13560 Oct  5 09:43 /dev
drwx------  3 root root    60 Sep 25 16:49 /dev/.static
drwxr-xr-x 13 root root 28672 Oct  2 15:55 /dev/.static/dev

but df works fine!

kohda at capa:~$ LANG=C df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda3             24027656   5882900  16924220  26% /
udev                     10240        56     10184   1% /dev
devshm                  518388         0    518388   0% /dev/shm
/dev/sda4             21971976   5083284  15772580  25% /home

> I hadn't noticed this myself, but this is a good reason to avoid
> listing the mount point /dev/.static/dev in /etc/mtab.

It might be so.  If you need any other information, please
let me know.  Thanks for your rapid reply.

Regards,			 2006-10-5(Thu)

-- 
 Debian Developer & Debian JP Developer - much more I18N of Debian
 Atsuhito Kohda <kohda AT debian.org>
 Department of Math., Univ. of Tokushima




More information about the Pkg-sysvinit-devel mailing list