can't use chown with exfat!

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

can't use chown with exfat!

#1 Post by bester69 »

can't use chown with exfat!, do you know whats wrong with exfat?...

I mounted filesystem and tried to give user permissons with chown, but wasnt possible.. It was pretty weird to me, so had to re-format to btrfs

thanks
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
sunrat
Administrator
Administrator
Posts: 7200
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 126 times
Been thanked: 621 times

Re: can't use chown with exfat!

#2 Post by sunrat »

exfat does not support user permissions.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: can't use chown with exfat!

#3 Post by bester69 »

sunrat wrote: 2021-09-08 23:32 exfat does not support user permissions.
Cant write within mounted point if not being the root :?

sudo mount -t exfat /dev/nvme0n1p8 aa
myuser@hall:~/aa$ sudo touch ss
myuser@hall:~/aa$ sudo chown myuser: ss
chown: changing ownership of 'ss': Operation not permitted

myuser@hall:~$ sudo chown myuser: aa
chown: changing ownership of 'aa': Operation not permitted
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 133 times

Re: can't use chown with exfat!

#4 Post by p.H »

Permissions on exFAT, FAT or NTFS are defined at mount time with mount options.
if using the exfat-fuse driver :

Code: Select all

man mount.exfat-fuse
if using the exfat kernel driver, I cannot find any man page, hopefully options are the same.

[Edit] : command corrected
Last edited by p.H on 2021-09-10 09:02, edited 1 time in total.

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: can't use chown with exfat!

#5 Post by bester69 »

p.H wrote: 2021-09-09 10:46 Permissions on exFAT, FAT or NTFS are defined at mount time with mount options.
if using the exfat-fuse driver :

Code: Select all

man mkfs.exfat-fuse
if using the exfat kernel driver, I cannot find any man page, hopefully options are the same.
Thanks p.H

I dont need being root user to write in ntfs or vfat partitions (exfat is working different)..I dont know how to mount it with user permisson :?
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
bw123
Posts: 4020
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 30 times

Re: can't use chown with exfat!

#6 Post by bw123 »

Haven't used it might be a good answer here?
https://www.google.com/search?&q=write+ ... being+root
resigned by AI ChatGPT

reinob
Posts: 1216
Joined: 2014-06-30 11:42
Has thanked: 112 times
Been thanked: 52 times

Re: can't use chown with exfat!

#7 Post by reinob »

bester69 wrote: 2021-09-09 12:15 I dont need being root user to write in ntfs or vfat partitions (exfat is working different)..I dont know how to mount it with user permisson :?
Normally only root can mount partitions. The only exception (that I know of) is if the mount point is defined (by root) in /etc/fstab, including the option "user" (or "users").

This is BTW explained in mount(8).

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 133 times

Re: can't use chown with exfat!

#8 Post by p.H »

Mount permission has nothing to do with write permission.

Code: Select all

mount -t exfat -o uid=xxx,gid=xxx,umask=xxx /dev/xxx /xxx

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: can't use chown with exfat!

#9 Post by bester69 »

...
Last edited by bester69 on 2021-09-09 22:44, edited 1 time in total.
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: can't use chown with exfat!

#10 Post by bester69 »

p.H wrote: 2021-09-09 10:46 Permissions on exFAT, FAT or NTFS are defined at mount time with mount options.
if using the exfat-fuse driver :

Code: Select all

man mkfs.exfat-fuse
if using the exfat kernel driver, I cannot find any man page, hopefully options are the same.
That worked
sudo mount -o rw,users,uid=1000,dmask=007,fmask=117 /dev/nve8 aa

Code: Select all

myuser@hall:~/aa$ mount| grep aa
/dev/nvme0n1p8 on /home/myuser/aa type exfat (rw,nosuid,nodev,noexec,relatime,uid=1000,fmask=0117,dmask=0007,allow_utime=0020,iocharset=utf8,errors=remount-ro)

seem Im unable to remount it to get same result, here the default mount:
sudo mount -o remount,uid=1000,fmask=0117,dmask=0007 aa >>> Not doing anything

Code: Select all

myuser@hall:~$ mount|grep aa
/dev/nvme0n1p8 on /home/myuser/aa type exfat (rw,nosuid,nodev,noexec,relatime,fmask=0022,dmask=0022,iocharset=utf8,errors=remount-ro)

Clearly exfat is working different , with vfat or ntfs you dont have these issues..I will have to use a environment param y bashrc to remember.:

export EXFAT="uid=1000,fmask=0117,dmask=0007"
sudo mount -o $EXFAT /dev/nvme0n1p8 aa

Thanks to all
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 133 times

Re: can't use chown with exfat!

#11 Post by p.H »

bester69 wrote: 2021-09-09 22:43 Clearly exfat is working different , with vfat or ntfs you dont have these issues
It depends how you mount the volume.
ntfs has a different default value for umask/fmask/dmask (0000 - cf. man ntfs-3g) but fat has the same default value as exfat (current process umask - cf. man mount). Default umask in Debian is 0022.

Post Reply