Search results
4 lut 2013 · run the id cmd and use the mount options of your id and group thus allowing your $USER account to read/write the drive. use -o uid=[UID],gid=[GID] the UID and GID can be gathered from the running the id cmd.
13 lip 2018 · The best way is: chown -R user /mnt/point. where user represents your user name (or user ID), and, obviously, /mnt/point represents the mount point of your file system. If the root group has write permission as well and you want another group to have it then you can use: chown -R user: group /mnt/point.
To mount a device with certain rights, you can use the -o Option directive while mounting the device. To mount the device you described, run: mount -t deviceFileFormat -o umask=filePermissions,gid=ownerGroupID,uid=ownerID /device /mountpoint.
17 gru 2014 · Automatically mount a drive using /etc/fstab, and limiting access to all users of a specific group
12 lis 2023 · sudo mount /dev/sdX /media/usb -o uid=user,gid=group Or change the global permissions in /etc/fstab so this device always mounts with certain ownership. By explicitly defining uid and gid , you can mount a USB drive with exactly the permissions you need.
The various desktop environments have actually already built solutions to this, to allow users to mount removable media. They work by mounting in a subdirectory of /media only and by turning off set-user/group-id support via kernel options.
16 maj 2015 · Specify the option user in the corresponding fstab entry, so that a normal user can mount the usb drive: /dev/sdb1 /media/usb vfat rw,user 0 0. Then use. (u)mount /media/usb. to (un)mount the media as myname. Use the mount options uid, gid to specify to whom the whole mounted filesystem should belong: