$ grep sdc1 /etc/fstab UUID=BE5F-383B /sdc1 exfat noauto,rw,user,uid=508,gid=508 1 1
# cat /etc/fuse.conf # mount_max = 1000 user_allow_other
$ mount /sdc1 FUSE exfat 1.0.1 fusermount: option blkdev is privileged
So I tried as root, and it mounted OK: mount | grep sdc1 /dev/sdc1 on /sdc1 type fuseblk (rw,nosuid,nodev,noexec,relatime,user_id=508,group_id=508,allow_other,blksize=4096)
then as root I tried to copy a file to /sdc1:
# cp rpms.list /sdc1/ cp: cannot create regular file ‘/sdc1/rpms.list’: No such file or directory
So, what else need I do so that regular users can mount and write to usb sticks that are formatted as exfat FS?
These are the relevant rpms installed: fuse-exfat-1.0.1-1.fc20.x86_64 exfat-utils-1.0.1-1.fc20.x86_64
On 07/30/15 20:16, jd1008 wrote: <>
So I tried as root, and it mounted OK: mount | grep sdc1 /dev/sdc1 on /sdc1 type fuseblk (rw,nosuid,nodev,noexec,relatime,user_id=508,group_id=508,allow_other,blksize=4096)
then as root I tried to copy a file to /sdc1:
# cp rpms.list /sdc1/ cp: cannot create regular file ‘/sdc1/rpms.list’: No such file or directory
So, what else need I do so that regular users can mount and write to usb sticks that are formatted as exfat FS?
do not have an answer for your question, but i do have a question about what you show above.
you show "/sdc1/" in command, while your 'mount"grep' shows "/dev/sdc1". are you working in "/dev" directory?
with command "# cp rpms.list /sdc1/", is "rpms.list" in current directory?
comment: when showing command lines, is best to 'drag and paste' than just write a command line. sometimes it helps to show full command line prompt.
just asking and trying to understand. :-)
On 07/30/2015 08:38 PM, g wrote:
On 07/30/15 20:16, jd1008 wrote: <>
So I tried as root, and it mounted OK: mount | grep sdc1 /dev/sdc1 on /sdc1 type fuseblk (rw,nosuid,nodev,noexec,relatime,user_id=508,group_id=508,allow_other,blksize=4096)
then as root I tried to copy a file to /sdc1:
# cp rpms.list /sdc1/ cp: cannot create regular file ‘/sdc1/rpms.list’: No such file or directory
So, what else need I do so that regular users can mount and write to usb sticks that are formatted as exfat FS?
do not have an answer for your question, but i do have a question about what you show above.
you show "/sdc1/" in command, while your 'mount"grep' shows "/dev/sdc1". are you working in "/dev" directory?
No!! I mount /dev/sdc1 on the directory /sdc1
with command "# cp rpms.list /sdc1/", is "rpms.list" in current directory?
Current directory (of the shell) happens to be other than /sdc1.
comment: when showing command lines, is best to 'drag and paste' than just write a command line. sometimes it helps to show full command line prompt.
just asking and trying to understand. :-)
No problem.
I think that there are quirks about the implementation of exfat as a user land driver (filesystem), instead of a kernel driver like ext[n].
On 07/31/15 09:16, jd1008 wrote:
$ grep sdc1 /etc/fstab UUID=BE5F-383B /sdc1 exfat noauto,rw,user,uid=508,gid=508 1 1
# cat /etc/fuse.conf # mount_max = 1000 user_allow_other
$ mount /sdc1 FUSE exfat 1.0.1 fusermount: option blkdev is privileged
So I tried as root, and it mounted OK: mount | grep sdc1 /dev/sdc1 on /sdc1 type fuseblk (rw,nosuid,nodev,noexec,relatime,user_id=508,group_id=508,allow_other,blksize=4096)
then as root I tried to copy a file to /sdc1:
# cp rpms.list /sdc1/ cp: cannot create regular file ‘/sdc1/rpms.list’: No such file or directory
So, what else need I do so that regular users can mount and write to usb sticks that are formatted as exfat FS?
These are the relevant rpms installed: fuse-exfat-1.0.1-1.fc20.x86_64 exfat-utils-1.0.1-1.fc20.x86_64
Tried to recreate your issue. I didn't have a exfat formatted USB so I used mkfs.exfat to create. Then I labeled it....
I didn't do things "exactly" as you did but....
[root@f22k ~]# exfatlabel /dev/sdb1 myexfat [root@f22k ~]# exfatlabel /dev/sdb1 myexfat
[root@f22k ~]# exfatfsck /dev/sdb1 xfatfsck 1.1.1 WARN: volume was not unmounted cleanly. Checking file system on /dev/sdb1. File system version 1.0 Sector size 512 bytes Cluster size 32 KB Volume size 1928 MB Used space 4 MB Available space 1924 MB Totally 0 directories and 0 files. File system checking finished. No errors found.
[root@f22k ~]# grep mnt /etc/fstab LABEL=myexfat /mnt exfat noauto,rw,user,uid=1029,gid=65539 1 1
[root@f22k ~]# cat /etc/fuse.conf # mount_max = 1000 # user_allow_other
[root@f22k etc]# mount /mnt FUSE exfat 1.1.0
[root@f22k etc]# mount | grep sdb1 /dev/sdb1 on /mnt type fuseblk (rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,allow_other,blksize=4096,user)
As me...
[egreshko@f22k /]$ cd mnt [egreshko@f22k mnt]$ ls [egreshko@f22k mnt]$ touch x
Then as root....
[root@f22k etc]# cd /mnt [root@f22k mnt]# ls x [root@f22k mnt]# touch y [root@f22k mnt]# ll total 0 -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:44 x -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:44 y
Then as another user...
[root@f22k mnt]# su - maria [maria@f22k ~]$ cd /mnt [maria@f22k mnt]$ ls x y [maria@f22k mnt]$ touch z [maria@f22k mnt]$ ll total 0 -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:44 x -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:44 y -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:45 z
And again as root....
[root@f22k mnt]# ls x y z [root@f22k mnt]# cd [root@f22k ~]# pwd /root [root@f22k ~]# cp avail.txt /mnt [root@f22k ~]# ll /mnt total 3584 -rwxr-xr-x. 1 egreshko egreshko 3655878 Jul 31 11:46 avail.txt -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:44 x -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:44 y -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:45 z
On 07/30/15 22:20, jd1008 wrote:
On 07/30/2015 08:38 PM, g wrote:
On 07/30/15 20:16, jd1008 wrote: <>
So I tried as root, and it mounted OK: mount | grep sdc1 /dev/sdc1 on /sdc1 type fuseblk (rw,nosuid,nodev,noexec,relatime,user_id=508,group_id=508,allow_other,blksize=4096)
then as root I tried to copy a file to /sdc1:
# cp rpms.list /sdc1/ cp: cannot create regular file ‘/sdc1/rpms.list’: No such file or directory
So, what else need I do so that regular users can mount and write to usb sticks that are formatted as exfat FS?
do not have an answer for your question, but i do have a question about what you show above.
you show "/sdc1/" in command, while your 'mount"grep' shows "/dev/sdc1". are you working in "/dev" directory?
No!! I mount /dev/sdc1 on the directory /sdc1
ok. what users/permissions does /sdc1 have set?
as i learned, i have in / path for mounting drives, via fstab or manually, /hdd is owned by root with "drwxr-xr-x.
below /hdd, i have owned by user with "drwxrwxrwx";
/hdd /sda /sdb /sdc /sdd /sde /sdf
below those 6, in each i have: 01, 02, 03, -> 10 ["0x" to keep order] to give all "user"s full read/write/exec permission and no / access.
i still have /media and /mnt available, so program "disk utility" still has access of /media.
with your directory of /sdc1, are permissions correct to allow a user write permission?
as i was taught, giving a user ownership with write and execute permissions to a / directory should not be.
with command "# cp rpms.list /sdc1/", is "rpms.list" in current directory?
Current directory (of the shell) happens to be other than /sdc1.
then err is indicating that ‘rpms.list’ is either not in current directory or user does not have permissions to access file or permissions of target directory are incorrect.
comment: when showing command lines, is best to 'drag and paste' than just write a command line. sometimes it helps to show full command line prompt.
just asking and trying to understand. :-)
No problem.
I think that there are quirks about the implementation of exfat as a user land driver (filesystem), instead of a kernel driver like ext[n].
possibly. to verify, maybe changing usb format to 'fat32' and repeating procedure to see if you still get err. if repeats, it is permissions or locations.
On 07/31/15 09:16, jd1008 wrote:
$ mount /sdc1 FUSE exfat 1.0.1 fusermount: option blkdev is privileged
Oh, FWIW, if you want to allow non-root users to mount exfat devices you can do one potentially dangerous thing and ...
chmod u+s /usr/sbin/mount.exfat-fuse
On 07/30/2015 10:03 PM, Ed Greshko wrote:
On 07/31/15 09:16, jd1008 wrote:
$ grep sdc1 /etc/fstab UUID=BE5F-383B /sdc1 exfat noauto,rw,user,uid=508,gid=508 1 1
# cat /etc/fuse.conf # mount_max = 1000 user_allow_other
$ mount /sdc1 FUSE exfat 1.0.1 fusermount: option blkdev is privileged
So I tried as root, and it mounted OK: mount | grep sdc1 /dev/sdc1 on /sdc1 type fuseblk (rw,nosuid,nodev,noexec,relatime,user_id=508,group_id=508,allow_other,blksize=4096)
then as root I tried to copy a file to /sdc1:
# cp rpms.list /sdc1/ cp: cannot create regular file ‘/sdc1/rpms.list’: No such file or directory
So, what else need I do so that regular users can mount and write to usb sticks that are formatted as exfat FS?
These are the relevant rpms installed: fuse-exfat-1.0.1-1.fc20.x86_64 exfat-utils-1.0.1-1.fc20.x86_64
Tried to recreate your issue. I didn't have a exfat formatted USB so I used mkfs.exfat to create. Then I labeled it....
I didn't do things "exactly" as you did but....
[root@f22k ~]# exfatlabel /dev/sdb1 myexfat [root@f22k ~]# exfatlabel /dev/sdb1 myexfat
[root@f22k ~]# exfatfsck /dev/sdb1 xfatfsck 1.1.1 WARN: volume was not unmounted cleanly. Checking file system on /dev/sdb1. File system version 1.0 Sector size 512 bytes Cluster size 32 KB Volume size 1928 MB Used space 4 MB Available space 1924 MB Totally 0 directories and 0 files. File system checking finished. No errors found.
[root@f22k ~]# grep mnt /etc/fstab LABEL=myexfat /mnt exfat noauto,rw,user,uid=1029,gid=65539 1 1
[root@f22k ~]# cat /etc/fuse.conf # mount_max = 1000 # user_allow_other
[root@f22k etc]# mount /mnt FUSE exfat 1.1.0
[root@f22k etc]# mount | grep sdb1 /dev/sdb1 on /mnt type fuseblk (rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,allow_other,blksize=4096,user)
As me...
[egreshko@f22k /]$ cd mnt [egreshko@f22k mnt]$ ls [egreshko@f22k mnt]$ touch x
Then as root....
[root@f22k etc]# cd /mnt [root@f22k mnt]# ls x [root@f22k mnt]# touch y [root@f22k mnt]# ll total 0 -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:44 x -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:44 y
Then as another user...
[root@f22k mnt]# su - maria [maria@f22k ~]$ cd /mnt [maria@f22k mnt]$ ls x y [maria@f22k mnt]$ touch z [maria@f22k mnt]$ ll total 0 -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:44 x -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:44 y -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:45 z
And again as root....
[root@f22k mnt]# ls x y z [root@f22k mnt]# cd [root@f22k ~]# pwd /root [root@f22k ~]# cp avail.txt /mnt [root@f22k ~]# ll /mnt total 3584 -rwxr-xr-x. 1 egreshko egreshko 3655878 Jul 31 11:46 avail.txt -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:44 x -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:44 y -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:45 z
I will get back to you after I I retry your steps.
On 07/31/2015 01:21 AM, Ed Greshko wrote:
On 07/31/15 09:16, jd1008 wrote:
$ mount /sdc1 FUSE exfat 1.0.1 fusermount: option blkdev is privileged
Oh, FWIW, if you want to allow non-root users to mount exfat devices you can do one potentially dangerous thing and ...
chmod u+s /usr/sbin/mount.exfat-fuse
I do not think that is necessary. It has worked before in previous releases. Just not sure why it does not work now.
On 07/30/2015 10:03 PM, Ed Greshko wrote:
On 07/31/15 09:16, jd1008 wrote:
$ grep sdc1 /etc/fstab UUID=BE5F-383B /sdc1 exfat noauto,rw,user,uid=508,gid=508 1 1
# cat /etc/fuse.conf # mount_max = 1000 user_allow_other
$ mount /sdc1 FUSE exfat 1.0.1 fusermount: option blkdev is privileged
So I tried as root, and it mounted OK: mount | grep sdc1 /dev/sdc1 on /sdc1 type fuseblk (rw,nosuid,nodev,noexec,relatime,user_id=508,group_id=508,allow_other,blksize=4096)
then as root I tried to copy a file to /sdc1:
# cp rpms.list /sdc1/ cp: cannot create regular file ‘/sdc1/rpms.list’: No such file or directory
So, what else need I do so that regular users can mount and write to usb sticks that are formatted as exfat FS?
These are the relevant rpms installed: fuse-exfat-1.0.1-1.fc20.x86_64 exfat-utils-1.0.1-1.fc20.x86_64
Tried to recreate your issue. I didn't have a exfat formatted USB so I used mkfs.exfat to create. Then I labeled it....
I didn't do things "exactly" as you did but....
[root@f22k ~]# exfatlabel /dev/sdb1 myexfat [root@f22k ~]# exfatlabel /dev/sdb1 myexfat
[root@f22k ~]# exfatfsck /dev/sdb1 xfatfsck 1.1.1 WARN: volume was not unmounted cleanly. Checking file system on /dev/sdb1. File system version 1.0 Sector size 512 bytes Cluster size 32 KB Volume size 1928 MB Used space 4 MB Available space 1924 MB Totally 0 directories and 0 files. File system checking finished. No errors found.
[root@f22k ~]# grep mnt /etc/fstab LABEL=myexfat /mnt exfat noauto,rw,user,uid=1029,gid=65539 1 1
[root@f22k ~]# cat /etc/fuse.conf # mount_max = 1000 # user_allow_other
[root@f22k etc]# mount /mnt FUSE exfat 1.1.0
[root@f22k etc]# mount | grep sdb1 /dev/sdb1 on /mnt type fuseblk (rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,allow_other,blksize=4096,user)
As me...
[egreshko@f22k /]$ cd mnt [egreshko@f22k mnt]$ ls [egreshko@f22k mnt]$ touch x
Then as root....
[root@f22k etc]# cd /mnt [root@f22k mnt]# ls x [root@f22k mnt]# touch y [root@f22k mnt]# ll total 0 -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:44 x -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:44 y
Then as another user...
[root@f22k mnt]# su - maria [maria@f22k ~]$ cd /mnt [maria@f22k mnt]$ ls x y [maria@f22k mnt]$ touch z [maria@f22k mnt]$ ll total 0 -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:44 x -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:44 y -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:45 z
And again as root....
[root@f22k mnt]# ls x y z [root@f22k mnt]# cd [root@f22k ~]# pwd /root [root@f22k ~]# cp avail.txt /mnt [root@f22k ~]# ll /mnt total 3584 -rwxr-xr-x. 1 egreshko egreshko 3655878 Jul 31 11:46 avail.txt -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:44 x -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:44 y -rwxr-xr-x. 1 egreshko egreshko 0 Jul 31 11:45 z
$ exfatlabel /dev/sdc1 "32GBflash" $ exfatfsck /dev/sdc1 exfatfsck 1.0.1 Checking file system on /dev/sdc1. File system version 1.0 Sector size 512 bytes Cluster size 32 KB Volume size 31 GB Used space 4321 KB Available space 31 GB Totally 0 directories and 0 files. File system checking finished. No errors found. $ grep mnt /etc/fstab LABEL=32GBflash /mnt/32GBflash exfat noauto,rw,user,uid=508,gid=508 1 1 # cat /etc/fuse.conf # mount_max = 1000 # user_allow_other
In your reply, you are using root to mount. Since this is a fuse FS, why not allow the user to mount??
/mnt is root owned , mode 755 /mnt/32GBflash is jd owned and is mode 700 $ cd /mnt/32GBflash/ $ ls -la . total 8K drwx------. 2 jd jd 4096 Jul 31 10:58 ./ drwxr-xr-x. 3 root root 4096 Jul 31 10:30 ../ $ mount /mnt/32GBflash FUSE exfat 1.0.1 fusermount: option allow_other only allowed if 'user_allow_other' is set in /etc/fuse.conf
On 08/01/15 00:15, jd1008 wrote:
On 07/31/2015 01:21 AM, Ed Greshko wrote:
On 07/31/15 09:16, jd1008 wrote:
$ mount /sdc1 FUSE exfat 1.0.1 fusermount: option blkdev is privileged
Oh, FWIW, if you want to allow non-root users to mount exfat devices you can do one potentially dangerous thing and ...
chmod u+s /usr/sbin/mount.exfat-fuse
I do not think that is necessary. It has worked before in previous releases. Just not sure why it does not work now.
I don't know about previous releases as I can only test F22 at the moment.
I would have thought the bigger issue is being able to read/write from the drive for all users which I've been able to do. Are you having any problems now in that area? You seem to have indicated that you did.
If you don't want/can't set the sticky bit, then another option may be install autofs and have the device automounted.
FWIW, if one did some google searching about exfat on linux they'd see that others have asked questions about the ability of non-root users to mount devices in the same manner.