Skip to contentSkip to conversation

blkid tells different informations to user or root

DISCUSSION Karel Zak 1 participant 1 message Jan 7, 2013 1 message not in the archive Util-Linux package

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Karel Zak

author maintainer
#1 lore raw
Quoted 2 lines · Helmut Hullen

Running "blkid" as an underprivileged user apparently shows data (for sdb) which don't fit for the actually configuration.

Sure, if you have no permissions to revalidate the data...

Quoted 1 line

a) where's the bug for this different output?

It's expected behavior, this is reason why programs like mount(8) have suid permissions.

Please, use lsblk(1) if you want see more reliable overview about system block devices. It reads data from /sys and some details from udevd DB.

Quoted 1 line

b) how can I create an actual "/run/blkid/blkid.tab"? Only via "rm"?

It should be unnecessary for privileged users.

Karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com