[Bug 220275] Re: blkid shouldn't need root privileges

Jamie 220275 at bugs.launchpad.net
Sat Aug 13 20:24:47 UTC 2016


It seems that when run without root, it reads from the cached results in
/etc/blkid.tab, which are only populated if blkid was previously run as
root. That could explain why it worked for chrissss, if he had
previously run as root.

In other words, this doesn't seem to be fixed; an ordinary user can't
run blkid and expect results.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to e2fsprogs in Ubuntu.
https://bugs.launchpad.net/bugs/220275

Title:
  blkid shouldn't need root privileges

Status in e2fsprogs package in Ubuntu:
  Fix Released

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/stein-root: UUID="505a1f5d-8a14-40c7-b873-009b722d3782" SEC_TYPE="ext2" TYPE="ext3" 
  /dev/mapper/stein-swap_1: TYPE="swap" UUID="0cf47458-4a05-4b8a-aedf-238d7d047b18" 
  /dev/sda5: UUID="cdb51a1e-b277-43e3-8130-eb7b992efda2" TYPE="crypt_LUKS" 
  /dev/sda1: UUID="2d6fdebf-54bc-4987-a46e-7b3352737b14" SEC_TYPE="ext2" TYPE="ext3" 
  /dev/mapper/sda5_crypt: UUID="nmmiO3-4W3N-zaP1-DQdP-hlQT-yooV-KGSjOg" TYPE="lvm2pv" 

  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-8a14-40c7-b873-009b722d3782" SEC_TYPE="ext2" TYPE="ext3">/dev/mapper/stein-root</device>
  <device DEVNO="0xfe02" TIME="1208790785" TYPE="swap" UUID="0cf47458-4a05-4b8a-aedf-238d7d047b18">/dev/mapper/stein-swap_1</device>
  <device DEVNO="0x0805" TIME="1208790785" UUID="cdb51a1e-b277-43e3-8130-eb7b992efda2" TYPE="crypt_LUKS">/dev/sda5</device>
  <device DEVNO="0x0801" TIME="1208790785" UUID="2d6fdebf-54bc-4987-a46e-7b3352737b14" SEC_TYPE="ext2" TYPE="ext3">/dev/sda1</device>
  <device DEVNO="0xfe00" TIME="1208790785" UUID="nmmiO3-4W3N-zaP1-DQdP-hlQT-yooV-KGSjOg" TYPE="lvm2pv">/dev/mapper/sda5_crypt</device>

  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
  PackageArchitecture: i386
  ProcEnviron:
   SHELL=/bin/bash
   PATH=/home/username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
   LANG=de_DE.UTF-8
  SourcePackage: e2fsprogs
  Uname: Linux 2.6.24-16-generic i686

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/e2fsprogs/+bug/220275/+subscriptions



More information about the foundations-bugs mailing list