Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #174414
| From | Brian <ad44@cityscape.co.uk> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: parted is ALMOST suitable |
| Date | 2016-11-09 11:50 +0100 |
| Message-ID | <sByC6-69v-35@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <sBkSt-5IO-17@gated-at.bofh.it> <sBlvb-5XM-1@gated-at.bofh.it> <sBwJX-4WR-1@gated-at.bofh.it> <sBy94-5YV-9@gated-at.bofh.it> <sByiK-62n-29@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed 09 Nov 2016 at 11:27:11 +0100, tomas@tuxteam.de wrote: > On Wed, Nov 09, 2016 at 10:12:13AM +0000, Brian wrote: > > On Wed 09 Nov 2016 at 09:48:01 +0100, tomas@tuxteam.de wrote: > > > > > On Tue, Nov 08, 2016 at 08:39:51PM +0000, Brian wrote: > > > > On Tue 08 Nov 2016 at 14:41:45 -0500, Stefan Monnier wrote: > > > > > > > > > >>>>>>> *HOWEVER* parted requires root privileges. That is not acceptable. > > > > > >>>>>>> Suggestions? > > > > > >>>>>>> TIA > > > > > > Futzing with partitions is the admin's job. > > > > > > > > > > Could be, but it's not (g)parted's job to enforce these kinds of rules: > > > > > that's what Unix permissions (and Linux's capabilities) are for. > > > > > > > > > > It's OK to add a warning and prompt the user to make sure he really > > > > > means to do that, but there's no point *preventing* the user from > > > > > shooting his own foot with this tool if he can do it with other > > > > > tools anyway. > > > > > > > > Users here get no opportunity to shoot themselves or anyone else in the > > > > foot. Access to raw disks is over my dead body. So I do not understand > > > > your point. > > > > > > C'mon. Cut the drama. Dead bodies and that. > > > > It's a turn of phrase. Sometimes used with a touch of humour. > > > > > As if "raw disk" were some kind of sacred stuff. In my case they are > > > simple files on disk (disk images). Shall I have to become root every > > > time I have to write a partition table to that? No. I just use fdisk. > > > > > > It's the job of file (device) permissions to ensure that. Or are you > > > going to patch around bash's redirection operator too, to keep "users" > > > from shooting themselves in the foot by issuing > > > > > > echo "mumble" > /dev/sda2 > > > > > > Not really. > > > > That gives "-bash: /dev/sda2: Permission denied" for me with a fixed > > disk. It's the same for a removable disk. The system came like that. > > Hopefully. But that's not because bash checks that (as parted is). > It's because the permissions on the device file are set right! > > IOW, it's not the application's job (bash or parted), it's the OS's > job (with the sysadmin's help) to check access permissions. > > BTW it's very easy to fool the application itself (and this migh be > a perverse "solution" to Richard's problem). Just run gparted under > fakeroot. It won't convey you read/write permissions you don't have, > but it will fool gparted to think it's running as root: 'fakeroot lsblk -f' gives the same output on Jessie as 'lsblk -f". > tomas@rasputin:~$ whoami > tomas > tomas@rasputin:~$ fakeroot whoami > root > tomas@rasputin:~$ > > So try running "fakeroot gparted" -- that might help. No need for > elevated permissions :-) > > Fakeroot is in the like-named package. I hope cfdisk is an acceptable alternative to gparted, which is not on my system. 'fakeroot /sbin/cfdisk' gives "cfdisk: cannot open /dev/sda: Permission denied". -- Brian.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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