Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #174342

Re: parted is ALMOST suitable

From Richard Owlett <rowlett@cloud85.net>
Newsgroups linux.debian.user
Subject Re: parted is ALMOST suitable
Date 2016-11-08 12:20 +0100
Message-ID <sBcBA-bB-15@gated-at.bofh.it> (permalink)
References (1 earlier) <sARx8-3aL-43@gated-at.bofh.it> <sAS9Q-3GK-29@gated-at.bofh.it> <sASWd-4ht-13@gated-at.bofh.it> <sAYoV-7Xw-5@gated-at.bofh.it> <sB1Zw-1Es-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 11/7/2016 5:54 PM, Brian wrote:
> On Mon 07 Nov 2016 at 21:07:45 +0100, Pascal Hambourg wrote:
>
>> Le 07/11/2016 à 15:18, Richard Owlett a écrit :
>>>>>
>>>>>    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.
>>>
>>> Evidently not a solution. Added myself to both "disk" and "root" groups.
>>> Had no effect when attempting to run either lsblk or parted.
>>
>> Did you start a new session after adding yourself to the group ?
>> New groups are only taken into account when opening a session.
>> FWIW, adding myself to the "disk" group and starting a new session worked
>> with lsblk -f. Didn't try parted.
>
> Is the suggestion to give a user raw access to disks a serious one?
>
>>> Off-list it was suggested I try /sbin/blkid /dev/sda. Although the man
>>> page has a caution when not used as root, it seems to currently work on
>>> my immediately available Debian machine.
>>
>> Indeed blkid uses a cache file which is readable by everyone and is updated
>> by udev.
>
> A very useful observation. When blkid is run as root it creates the file
> /run/blkid/blkid.tab. A user running blkid only gets to see the contents
> of blkid.tab. There is no change to blkid.tab unless the command is run
> by root again. This makes /sbin/blkid useless as a user command for the
> purposes discussed in this thread.
>

I can confirm that on a fresh install /sbin/blkid does NOT return 
the desired information. However I do not recall running it as 
root before running it as user on the machine I had been using, 
so the may be other programs which create blkid.tab .

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

parted is ALMOST suitable Richard Owlett <rowlett@cloud85.net> - 2016-11-07 13:20 +0100
  Re: parted is ALMOST suitable Felipe Salvador <felipe.salvador@gmail.com> - 2016-11-07 13:30 +0100
    Re: parted is ALMOST suitable Richard Owlett <rowlett@cloud85.net> - 2016-11-07 13:40 +0100
      Re: parted is ALMOST suitable <tomas@tuxteam.de> - 2016-11-07 14:00 +0100
        Re: parted is ALMOST suitable Richard Owlett <rowlett@cloud85.net> - 2016-11-07 14:20 +0100
          Re: parted is ALMOST suitable <tomas@tuxteam.de> - 2016-11-07 15:00 +0100
            Re: parted is ALMOST suitable Richard Owlett <rowlett@cloud85.net> - 2016-11-07 15:50 +0100
              Re: parted is ALMOST suitable <tomas@tuxteam.de> - 2016-11-07 16:10 +0100
              Re: parted is ALMOST suitable Lisi Reisz <lisi.reisz@gmail.com> - 2016-11-07 17:30 +0100
      Re: parted is ALMOST suitable Felipe Salvador <felipe.salvador@gmail.com> - 2016-11-07 15:30 +0100
        Re: parted is ALMOST suitable Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2016-11-07 16:20 +0100
          Re: parted is ALMOST suitable Aldo Maggi <aldomaggi@katamail.com> - 2016-11-07 18:20 +0100
          Re: parted is ALMOST suitable Felipe Salvador <felipe.salvador@gmail.com> - 2016-11-07 19:00 +0100
          Re: parted is ALMOST suitable Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2016-11-08 19:10 +0100
            Re: parted is ALMOST suitable Glenn English <ghe2001@gmail.com> - 2016-11-08 19:40 +0100
              Re: parted is ALMOST suitable Stefan Monnier <monnier@iro.umontreal.ca> - 2016-11-08 21:10 +0100
                Re: parted is ALMOST suitable Brian <ad44@cityscape.co.uk> - 2016-11-08 21:50 +0100
                Re: parted is ALMOST suitable Stefan Monnier <monnier@iro.umontreal.ca> - 2016-11-09 00:20 +0100
                Re: parted is ALMOST suitable Brian <ad44@cityscape.co.uk> - 2016-11-09 18:40 +0100
                Re: parted is ALMOST suitable <tomas@tuxteam.de> - 2016-11-09 21:40 +0100
                Re: parted is ALMOST suitable Brian <ad44@cityscape.co.uk> - 2016-11-09 21:50 +0100
                Re: parted is ALMOST suitable <tomas@tuxteam.de> - 2016-11-09 22:20 +0100
                Re: parted is ALMOST suitable <tomas@tuxteam.de> - 2016-11-09 09:50 +0100
                Re: parted is ALMOST suitable Brian <ad44@cityscape.co.uk> - 2016-11-09 11:20 +0100
                Re: parted is ALMOST suitable <tomas@tuxteam.de> - 2016-11-09 11:30 +0100
                Re: parted is ALMOST suitable Brian <ad44@cityscape.co.uk> - 2016-11-09 11:50 +0100
                Re: parted is ALMOST suitable <tomas@tuxteam.de> - 2016-11-09 12:10 +0100
                Re: parted is ALMOST suitable Brian <ad44@cityscape.co.uk> - 2016-11-09 17:10 +0100
                Re: parted is ALMOST suitable Richard Owlett <rowlett@cloud85.net> - 2016-11-09 15:20 +0100
                Re: parted is ALMOST suitable Brian <ad44@cityscape.co.uk> - 2016-11-09 20:50 +0100
                Re: parted is ALMOST suitable Richard Owlett <rowlett@cloud85.net> - 2016-11-09 21:40 +0100
                Re: parted is ALMOST suitable Brian <ad44@cityscape.co.uk> - 2016-11-09 21:10 +0100
                Re: parted is ALMOST suitable Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2016-11-10 01:20 +0100
                Re: parted is ALMOST suitable <tomas@tuxteam.de> - 2016-11-10 10:10 +0100
                Re: parted is ALMOST suitable Brian <ad44@cityscape.co.uk> - 2016-11-09 19:30 +0100
                Re: parted is ALMOST suitable <tomas@tuxteam.de> - 2016-11-09 21:40 +0100
                Re: parted is ALMOST suitable Stefan Monnier <monnier@iro.umontreal.ca> - 2016-11-08 22:10 +0100
                Re: parted is ALMOST suitable Lisi Reisz <lisi.reisz@gmail.com> - 2016-11-09 16:00 +0100
                Re: parted is ALMOST suitable <tomas@tuxteam.de> - 2016-11-09 09:40 +0100
        Re: parted is ALMOST suitable Richard Owlett <rowlett@cloud85.net> - 2016-11-07 16:30 +0100
          Re: parted is ALMOST suitable Brian <ad44@cityscape.co.uk> - 2016-11-07 17:10 +0100
            Re: parted is ALMOST suitable Felipe Salvador <felipe.salvador@gmail.com> - 2016-11-07 18:50 +0100
              Re: parted is ALMOST suitable Brian <ad44@cityscape.co.uk> - 2016-11-07 20:20 +0100
                Re: parted is ALMOST suitable Lisi Reisz <lisi.reisz@gmail.com> - 2016-11-08 00:50 +0100
                Re: parted is ALMOST suitable Brian <ad44@cityscape.co.uk> - 2016-11-08 01:40 +0100
                Re: parted is ALMOST suitable Michael Lange <klappnase@freenet.de> - 2016-11-08 03:50 +0100
                Re: parted is ALMOST suitable Richard Owlett <rowlett@cloud85.net> - 2016-11-08 12:00 +0100
                Correction - Re: parted is ALMOST suitable Richard Owlett <rowlett@cloud85.net> - 2016-11-08 12:20 +0100
                Re: Correction - Re: parted is ALMOST suitable Brian <ad44@cityscape.co.uk> - 2016-11-08 20:30 +0100
                Re: parted is ALMOST suitable David Wright <deblis@lionunicorn.co.uk> - 2016-11-08 13:50 +0100
                Re: parted is ALMOST suitable Brian <ad44@cityscape.co.uk> - 2016-11-08 20:10 +0100
  Re: parted is ALMOST suitable Frank <zuiderduin@gmx.com> - 2016-11-07 13:30 +0100
  Re: parted is ALMOST suitable Darac Marjal <mailinglist@darac.org.uk> - 2016-11-07 13:40 +0100
  Re: parted is ALMOST suitable <tomas@tuxteam.de> - 2016-11-07 13:50 +0100
    Re: parted is ALMOST suitable Richard Owlett <rowlett@cloud85.net> - 2016-11-07 14:30 +0100
      Re: parted is ALMOST suitable <tomas@tuxteam.de> - 2016-11-07 15:10 +0100
      Re: parted is ALMOST suitable Richard Owlett <rowlett@cloud85.net> - 2016-11-07 15:20 +0100
        Re: parted is ALMOST suitable Greg Wooledge <wooledg@eeg.ccf.org> - 2016-11-07 15:30 +0100
          Re: parted is ALMOST suitable <tomas@tuxteam.de> - 2016-11-07 15:40 +0100
          Re: parted is ALMOST suitable Richard Owlett <rowlett@cloud85.net> - 2016-11-07 17:00 +0100
            Re: parted is ALMOST suitable Greg Wooledge <wooledg@eeg.ccf.org> - 2016-11-07 17:10 +0100
              Re: parted is ALMOST suitable Nicolas George <george@nsup.org> - 2016-11-07 17:20 +0100
        Re: parted is ALMOST suitable <tomas@tuxteam.de> - 2016-11-07 15:30 +0100
          Re: parted is ALMOST suitable Greg Wooledge <wooledg@eeg.ccf.org> - 2016-11-07 15:40 +0100
            Re: parted is ALMOST suitable <tomas@tuxteam.de> - 2016-11-07 16:10 +0100
              Re: parted is ALMOST suitable Reco <recoverym4n@gmail.com> - 2016-11-07 18:00 +0100
                Re: parted is ALMOST suitable <tomas@tuxteam.de> - 2016-11-08 10:20 +0100
        Re: parted is ALMOST suitable Pascal Hambourg <pascal@plouf.fr.eu.org> - 2016-11-07 21:10 +0100
          Re: parted is ALMOST suitable Brian <ad44@cityscape.co.uk> - 2016-11-08 01:00 +0100
            Re: parted is ALMOST suitable Richard Owlett <rowlett@cloud85.net> - 2016-11-08 12:20 +0100
            Re: parted is ALMOST suitable Pascal Hambourg <pascal@plouf.fr.eu.org> - 2016-11-11 15:40 +0100
              Re: parted is ALMOST suitable Brian <ad44@cityscape.co.uk> - 2016-11-11 17:30 +0100
                Re: parted is ALMOST suitable Pascal Hambourg <pascal@plouf.fr.eu.org> - 2016-11-11 18:10 +0100
                Re: parted is ALMOST suitable Brian <ad44@cityscape.co.uk> - 2016-11-11 18:40 +0100
    Re: parted is ALMOST suitable David Wright <deblis@lionunicorn.co.uk> - 2016-11-07 15:10 +0100
      Re: parted is ALMOST suitable <tomas@tuxteam.de> - 2016-11-07 15:10 +0100
  Re: parted is ALMOST suitable rhkramer@gmail.com - 2016-11-07 15:00 +0100

csiph-web