can't use chown with exfat!
can't use chown with exfat!
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
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...
- sunrat
- Site admin
- Posts: 7451
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 134 times
- Been thanked: 665 times
Re: can't use chown with exfat!
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!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Re: can't use chown with exfat!
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...
-
- 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!
Permissions on exFAT, FAT or NTFS are defined at mount time with mount options.
if using the exfat-fuse driver :
if using the exfat kernel driver, I cannot find any man page, hopefully options are the same.
[Edit] : command corrected
if using the exfat-fuse driver :
Code: Select all
man mount.exfat-fuse
[Edit] : command corrected
Last edited by p.H on 2021-09-10 09:02, edited 1 time in total.
Re: can't use chown with exfat!
Thanks p.Hp.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 :if using the exfat kernel driver, I cannot find any man page, hopefully options are the same.Code: Select all
man mkfs.exfat-fuse
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...
Re: can't use chown with exfat!
Haven't used it might be a good answer here?
https://www.google.com/search?&q=write+ ... being+root
https://www.google.com/search?&q=write+ ... being+root
-
- Section Moderator
- Posts: 1239
- Joined: 2014-06-30 11:42
- Has thanked: 122 times
- Been thanked: 57 times
Re: can't use chown with exfat!
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").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 :?
This is BTW explained in mount(8).
-
- 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!
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
Re: can't use chown with exfat!
That workedp.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 :if using the exfat kernel driver, I cannot find any man page, hopefully options are the same.Code: Select all
man mkfs.exfat-fuse
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...
-
- 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!
It depends how you mount the volume.bester69 wrote: 2021-09-09 22:43 Clearly exfat is working different , with vfat or ntfs you dont have these issues
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.