Package: coreutils
Version: 7.5-6
Severity: normal

Hi,

non-root user is not permitted to do df -l /dev/sda1.

% df -l /dev/sda1
df: `/dev/sda1': Permission denied
df: no file systems processed

# df -l /dev/sda1
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1            117655516 114341496   3314020  98% /disk/subdisk1

if no arguements are given, non-root user is permitted.

% df -l
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sdb1            478695704 153229360 325466344  33% /
tmpfs                  1030440         0   1030440   0% /lib/init/rw
udev                     10240       300      9940   3% /dev
tmpfs                  1030440         0   1030440   0% /dev/shm
/dev/sdc1            306644056 270748456  35895600  89% /disk/subdisk0
/dev/sda1            117655516 114341496   3314020  98% /disk/subdisk1

# df -l          
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sdb1            478695704 153229360 325466344  33% /
tmpfs                  1030440         0   1030440   0% /lib/init/rw
udev                     10240       300      9940   3% /dev
tmpfs                  1030440         0   1030440   0% /dev/shm
/dev/sdc1            306644056 270748488  35895568  89% /disk/subdisk0
/dev/sda1            117655516 114341496   3314020  98% /disk/subdisk1

related links:

df -l <device> as regular user cause "Permission denied"
https://bugzilla.redhat.com/show_bug.cgi?id=520630

df: don't fail due to an unreadable argument
http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=e0e8429c2433bd9820f42250236badc585bd9dd7

Regards,
        dai

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to ja_JP.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages coreutils depends on:
ii  libacl1                       2.2.48-1   Access control list shared library
ii  libattr1                      1:2.4.44-1 Extended attribute shared library
ii  libc6                         2.10.1-1   GNU C Library: Shared libraries
ii  libselinux1                   2.0.87-1   SELinux runtime shared libraries

coreutils recommends no packages.

coreutils suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to