[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: parted is ALMOST suitable



Felipe Salvador <felipe.salvador@gmail.com> writes:

> On Mon, Nov 07, 2016 at 06:37:53AM -0600, Richard Owlett wrote:
>> On 11/7/2016 6:20 AM, Felipe Salvador wrote:
>> > On Mon, Nov 07, 2016 at 06:11:50AM -0600, Richard Owlett wrote:
>> > > *HOWEVER* parted requires root privileges. That is not acceptable.
>> > > Suggestions?
>> > > TIA
>> > 
>> > lsblk -fr ?
>> > 
>> 
>> Debian is perverse ;{
>> man page suggested good things.
>> However when run as other than root, there is a column heading "FSTYPE".
>
>> It is blank for all partitions.
>> They are present when run as root.
>> Thanks for trying.
>
> I don't see this behaviour
>
> ~$ lsblk -fr
> NAME FSTYPE LABEL UUID MOUNTPOINT
> sda
> sda1 ext2  ... /boot
> sda2 ext4  ... /
> sda3 ext2  ... /tmp
> etc etc etc
>
> or
>
> file -s /dev/sda{1..5} | awk '{print $5}'

I was just about to post a very similar followup when I discovered a
gaping security hole (really, about as big as it gets) on my machine:

snowball:404$ ls -l /dev/sda2
brw-rw-rw- 1 root root 8, 2 Nov  7 07:54 /dev/sda2

You might want to check your permissions as well....


Reply to: