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
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org