On Mon 13 Nov 2017 03:36:14 PM CST, jdd wrote:
Le 13/11/2017 à 15:16, malcolmlewis a écrit :
>
> jdd;2844799 Wrote:
>> Le 13/11/2017 à 13:46, swerdna a écrit :
>>
>>> Oh I see this thread is still threading along. I must say with all
>>> the ups and downs I’m not sure exactly what you want. Do you want
>>> this: if you push a usb stick into your openSUSE (or Leap) computer
>>> you would like it to mount the stick and present itself to you with
>>> immediately writeable access for yourself (yourself being
>>> name:users).
>>
>> exactly, like for any other file system than ext4 mounted by fuse
> This is normal for filesystems that use security… if the device is
> the likes of exfat, vfat then it will let you write at the root of the
> device.
it let me also write on ntfs, that use also security (even if it’s
questionable)
>
> Remember lost+found needs to be owned by root:root, what about the
> journal and?
I only ask for same ownership than /home/<user>, nothing fancy
>
> Create a directory owned by your user/group and move on…
yes, I did, but not that friendly when using many usb disks
switch to
> exfat?
>
>
not possible for large files and linux file names…
I don’t ask for a default behavior, but the ownership is for sure
defined somewhere.
I worked a bit and see there is a solution through bindfs.
https://superuser.com/questions/519824/mounting-ext4-drive-with-specified-user-permission
But still, if there is a “manual” solution, it should be possible to
automate it
thanks
Note:
Hi
OK, unix/linux filesystem security
exfat is 255 utf-16 characters,
file size shouldn’t be an issue unless you have a terra byte sized
one …
It is/can all be done via udev rules…
As root user run udevadm monitor and plug in a device, you can then
build up a rule for the device. You could label the disks and use
that format eg my_usb_disk_1 and then use a udev rule for a usb device
with a label my_usb_disk_* and set this. Else you need to change
manually the permissions…
But if you plug into another machine and it’s not the same user/group
then it won’t work… so your between a rock and a hard place…
–
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE Leap 42.2|GNOME 3.20.2|4.4.92-18.36-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!