Page 1 of 1

blkid runing for user not root

Posted: Sun Mar 27, 2022 1:31 pm
by vikozo
hello
another problem
blkid which would give the CD/DVD information is only working as root
sudo chmod +x /usr/sbin/blkid
is not working

what would be the command to have everybody to read the name of the disk?

have a nice day
vinc

Re: blkid runing for user not root

Posted: Sun Mar 27, 2022 9:52 pm
by bmillham

Code: Select all

brian@nimon:~$ ls -l /usr/sbin/blkid
-rwxr-xr-x 1 root root 121096 Feb  7 08:33 /usr/sbin/blkid

Code: Select all

brian@nimon:~$ blkid
/dev/sdb1: UUID="766E-B2AE" TYPE="vfat" PARTUUID="e78d1718-57ec-4ddf-9ef5-d50f589bf293"
/dev/sdb2: UUID="2cbf85b9-d27c-48ae-b427-8de462ef22d0" UUID_SUB="40f28c85-bfa4-4b90-b007-5a0d2170380e" TYPE="btrfs" PARTUUID="6f74f31a-6f99-4a24-8fdd-c42e1be89cf8"
/dev/sr0: UUID="b4af35244150504c" LABEL="DIAGNOSIS_MURDER_S8D1" TYPE="udf"
Works for me without changing permissions on blkid (and changing permissions on a system file is normally a bad idea!)

You are probably best to take your issues to the support forums for the linux distro that you are using. I'd guess you have far more problems than just blkid not working.

Re: blkid runing for user not root

Posted: Sun Mar 27, 2022 10:07 pm
by emrysblack
Check and make sure you've got the 755 permissions. If so, something else may be going on.