blkid shouldn't need root privileges
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
e2fsprogs (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: e2fsprogs
When I execute blkid without root privileges I get an empty result. Only when i add a sudo to the command i get an output:
$ blkid
$ sudo blkid
/dev/mapper/
/dev/mapper/
/dev/sda5: UUID="cdb51a1e-
/dev/sda1: UUID="2d6fdebf-
/dev/mapper/
This is quite strange since blkid reads /etc/blkid.tab and reformats the file. /etc/blkid.tab is readable for all users:
$ ls -al /etc/blkid.tab
-rw-r--r-- 1 root root 663 2008-04-21 17:13 /etc/blkid.tab
$ cat /etc/blkid.tab
<device DEVNO="0xfe01" TIME="1208790785" UUID="505a1f5d-
<device DEVNO="0xfe02" TIME="1208790785" TYPE="swap" UUID="0cf47458-
<device DEVNO="0x0805" TIME="1208790785" UUID="cdb51a1e-
<device DEVNO="0x0801" TIME="1208790785" UUID="2d6fdebf-
<device DEVNO="0xfe00" TIME="1208790785" UUID="nmmiO3-
I can reproduce the problem on several installations with Ubuntu Hardy and inside a clean VM with Ubuntu Hardy RC1 booted from the Live-CD.
ProblemType: Bug
Architecture: i386
Date: Mon Apr 21 17:14:37 2008
DistroRelease: Ubuntu 8.04
Package: e2fsprogs 1.40.8-2ubuntu2
PackageArchitec
ProcEnviron:
SHELL=/bin/bash
PATH=/
LANG=de_DE.UTF-8
SourcePackage: e2fsprogs
Uname: Linux 2.6.24-16-generic i686
Can you send me the output of "ls -dl /dev /dev/mapper"? That is, I want to see the ownership and permissions of the /dev and /dev/mapper directories. I suspect they might not be world-readable, and causing blkid to fail in a way that causes it not to print. I can replicate the problem on my system if I chmod /dev/mapper to mode 700. I agree that blkid should not fail in such a way, and I'll look into trying to fix it, but I'd like some confirmation that this is the same root cause for the problem you are seeing on your system.
Thanks, regards,
--- Ted