-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, Nov 07, 2016 at 08:18:28AM -0600, Richard Owlett wrote: > On 11/7/2016 7:25 AM, Richard Owlett wrote: > >On 11/7/2016 6:47 AM, to...@tuxteam.de wrote: > >>-----BEGIN PGP SIGNED MESSAGE----- > >>Hash: SHA1 > >> > >>On Mon, Nov 07, 2016 at 06:11:50AM -0600, Richard Owlett wrote: > >>>I need to identify file system on all partitions of my hard drive > >>>whether mounted or not. > >>> parted /dev/sda print | grep ext | grep -v exte > >>>reports the desired information [partitions formatted ext?] in a > >>>convenient format. > >>>*HOWEVER* parted requires root privileges. That is not > >>>acceptable. > >>>Suggestions? > >> > >>It's not parted. It's the partitions themselves (or more > >>accurately, > >>the devices via which your operating system makes the partitions > >>available to user space). By default (and there are some reasons > >>for it) they're not readable by everyone. They are writable by > >>even less. On my box, for example: > >> > >> tomas@rasputin:~$ ls -al /dev/sd* > >> brw-rw---- 1 root disk 8, 0 Nov 7 09:06 /dev/sda > >> brw-rw---- 1 root disk 8, 1 Nov 7 09:06 /dev/sda1 > >> brw-rw---- 1 root disk 8, 2 Nov 7 09:06 /dev/sda2 > >> brw-rw---- 1 root disk 8, 5 Nov 7 09:06 /dev/sda5 > >> > >>So you'd have to be associated to the "disk" group to read those > >>things and you'd have to *be* root to write. > > > >*THAT* sentence may be key to solving multiple problems. All of > >my installs have implicitly accepted default groups for user(s). > > Evidently not a solution. Added myself to both "disk" and "root" > groups.
Two things: - check that your disk devices are actually readable (and probably writable, I botched that, cf. David's mail) by group disk - your being added to disk is effective *after* logging in after you'd made the change; if you want to bypass it, there is the command 'newgrp'; you can check which groups you are "in" by issuing the command 'groups': 'disk' should be in there. > Had no effect when attempting to run either lsblk or parted. How does "no effect" look like? Regards - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlggj0AACgkQBcgs9XrR2kbk/QCaAkM8EhnABt49GQ1g4Kwj7Lbg 4NgAniIeHOs+yyk2L5G8Au3Le+prZM7J =pUD3 -----END PGP SIGNATURE-----