Re: blkid tells different informations to user or root

Karel Zak
2013-01-07T12:10:41Z

On Sat, Jan 05, 2013 at 12:20:00PM +0100, Helmut Hullen wrote:
> 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...

> 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.

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

It should be unnecessary for privileged users.

Karel

--
Karel Zak <kzak@redhat.com>