Only root can mount usb media

On 2012-12-08 18:26, Ecky wrote:
>
> As to who set it to Network Server in Yast I’m baffled, couldn’t have
> been anyone other than me and I don’t recall doing it, could something
> have set it during installation or updates maybe?

Dunno.

Although if it is opened somehow to the outside, it makes sense.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

I doubt it is done by something else then you. Could be you tried out a few things long ago and forgot.
In any case it is OK now and you know about it.

Have also come across this problem. Used YAST Partitioner to format a USB flash drive to ext4, since needed to put files > 4 GB so existing FAT32 filesystem wouldn’t work. Unplugged & re-plugged USB flash drive, clicked to mount in Dolphin and filesystem was read only, as mounted to directory owned by root. Have a machine with 12.2 and a machine with 12.3, both have this problem (though it seems the mountpoints assigned have changed between these versions), had to chown the mounpoint to local user to work around this. Am unclear why a FAT32 drive will mount writeable, but an ext4 drive won’t.

Maybe because FAT32 has no notion of users. All files are accessible by all users in the same way.
On ext4 (or every other linux filesystem) there are different permissions for the owner and other users. Likely the filesystem was owned by root, so you had to chown the filesystem to be able to write to it as normal user. (You also can’t write to / f.e. as normal user…)

On 2013-05-10 22:06, rjwilmsi wrote:
>
> Have also come across this problem. Used YAST Partitioner to format a
> USB flash drive to ext4, since needed to put files > 4 GB so existing
> FAT32 filesystem wouldn’t work. Unplugged & re-plugged USB flash drive,
> clicked to mount in Dolphin and filesystem was read only, as mounted to
> directory owned by root. Have a machine with 12.2 and a machine with
> 12.3, both have this problem (though it seems the mountpoints assigned
> have changed between these versions), had to chown the mounpoint to
> local user to work around this. Am unclear why a FAT32 drive will mount
> writeable, but an ext4 drive won’t.

No, this is not the same “problem”. In fact, it is not a problem at all,
it is the documented and expected behaviour in any Unix/Linux system :slight_smile:

An ext4 filesystem has Unix type permissions.

A FAT filesystem in Linux has emulated permissions (because its own
permissions are used only by MsDos or Windows), defined as options to
the command that mounts it. The desktop you use mounts external FAT
media in a manner that is useful to the desktop user by default.

For an ext4 filesystem, you chown it instead, once mounted. Or create a
directory inside owned by the user you want and with the permissions you
want, and write files inside that directory.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)