I have a external drive mounted to /media/usbhdd, the owner is: debian-transmission and the group is gebruikers.
In the group gebruikers i have added the person debian-transmission and pi. But when i want to change or delete something as user pi it doesn't work (i get an permission error).
my /etc/fstab looks like this:
/dev/sda1 /media/usbhdd vfat uid=debian-transmission,gid=gebruikers 0 0
With the command id pi i get this:
uid=1000(pi) gid=1000(pi) groups=1000(pi),4(adm),20(dialout),24(cdrom),27(sudo),29(audio),44(video),46(plugdev),60(games),100(users),101(input),108(netdev),999(spi),998(i2c),997(gpio),115(debian-transmission),1002(gebruikers)
And with the command ls -l /media/usbhdd: total 192
drwxr-xr-x 2 debian-transmission gebruikers 32768 Aug 30 2014 disk1
drwxr-xr-x 3 debian-transmission gebruikers 32768 Oct 14 11:42 Network Trash Folder
drwxr-xr-x 2 debian-transmission gebruikers 32768 Aug 31 2014 shares
drwxr-xr-x 3 debian-transmission gebruikers 32768 Oct 14 11:42 Temporary Items
drwxr-xr-x 4 debian-transmission gebruikers 32768 Oct 14 12:26 series
drwxr-xr-x 3 debian-transmission gebruikers 32768 Oct 14 12:26 movies
How can i write/change/delete with user pi without changing uid in the fstab file?
EDIT This was the trick:
/dev/sda1 /media/usbhdd vfat uid=debian-transmission,gid=gebruikers,umask=0000 0 0
id pi
prints? also anls -l
from some file or directory in/media/usbhdd
would be useful to see what the driver sets as default rights. Anyway, plainfat
file system maybe does not support everything (?) about unix-like permissions. I knowvfat
has no problems.