Gparted format usb root permissions

If none of the more specific forums is the right place to ask

Gparted format usb root permissions

Postby Martus » 2017-04-01 08:17

Hi there,

I'm on Debian 8.1, with gnome.
I'm actually seeing strange things when I’m formatting an usb stick.
on my usb disk I've tried different file system, ext2 to 4, Fat32 & NTFS.
Partition made in ext are created with root permissions, so I can't use it as normal user.
Partition made with Fat32 & NTFS are created with current user permissions.

Why is that? and what to do to make it back to normal, gparted "making" partition with current user permissions?

thanks a lot for your time.
Martus
 
Posts: 2
Joined: 2017-04-01 08:04

Re: Gparted format usb root permissions

Postby pylkko » 2017-04-01 08:57

Why are you still on 8.1?

You could search for information on Linux permissions. What they are and how they work. Fat32 and ntfs dont support them. Ext does, and given that you are using the root user to create the partitions it is no at all strange that these partitions are owned by that user.
Last edited by pylkko on 2017-04-02 08:55, edited 1 time in total.
User avatar
pylkko
 
Posts: 908
Joined: 2014-11-06 19:02

Re: Gparted format usb root permissions

Postby GarryRicketson » 2017-04-01 12:35

As far as I know that is normal, when I have used Gparted, it required me to be root
or use sudo, since I do not use "sudo", I run gparted as root.
After I am done with the partitioning work,... as root I set or change the permisions as needed, ..hope that makes sense.
I use "chmod" and 'chown" to do that,
Code: Select all
man chmod

Code: Select all
man chown
User avatar
GarryRicketson
 
Posts: 3981
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Gparted format usb root permissions

Postby Martus » 2017-04-02 07:17

pylkko you are right, I'm not on Debian 8.1, I'm on 8.7. :P
I'didn't know about permissions for ntfs and fat, it does make a bit more sense.

GarryRicketson, I know about chown and chmod, and I usually use chown to change usb permissions for current user.

I know that "to use /dev" you need to be root, but I'm sure that before it wasn't needed to change permissions after formatting with gparted. And gparted always needed to be start as super user.

maaaah... I'll do some command line to change the permissions.

But still,...when you launch gparted (or any other app) from activities, I don't think it is "normal" that you should go to command line to finish whatever has been done.

Anyway thanks guys
Martus
 
Posts: 2
Joined: 2017-04-01 08:04

Re: Gparted format usb root permissions

Postby phenest » 2017-04-02 08:30

Martus wrote:But still,...when you launch gparted (or any other app) from activities, I don't think it is "normal" that you should go to command line to finish whatever has been done.

You're not "finishing" anything. Gparted is a root application, and all formats are created to be root because of that. However, there is no such thing as a root FAT or NTFS.
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: Gparted format usb root permissions

Postby debiman » 2017-04-03 18:23

interesting question.
i think one reason why such a feature is not included in gparted could be this:
you'd have to mount the partition before you chown it, but you can't automate that because you only just created it and it's not in fstab or anything.
User avatar
debiman
 
Posts: 1017
Joined: 2013-03-12 07:18


Return to General Questions

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable