Bekijk de volledige versie : Mount FAT partition with other directory and file permissions

09-04-2005, 08:48
I want to mount de USB disc with dmask=022 and fmask=133. Otherwise thttpd on FAT partitions is unusable in my opinion. For directory indexing the permissions should be 755 (rwxr-xr-x) and for datafiles 644 (rw-r--r--) I don't get errors during mount but the permissions are not set. I've used umask=133 this works but directories won't have the x bit set which is required. Does somebody has any idea's how to fix this? Or maybe an other suggestion to run a webserver with indexing and authentication on FAT.

Thanks is advance.

09-04-2005, 09:12
nvram set usb_vfat_options=dmask=022,fmask=133
nvram commit

09-04-2005, 12:31
Hello Oleg,

Thanks for your reply. I did as you told me.

[admin@wl500g bin]$ nvram show|grep fat
size: 9401 bytes (23367 left)
[admin@wl500g bin]$

but after I restarted the router and re-attached the usb disc I still get the following permissions :

[admin@wl500g harddisk]$ pwd
[admin@wl500g harddisk]$ touch arnie
[admin@wl500g harddisk]$ ls -las arnie
0 -rwxr-xr-x 1 admin root 0 Apr 9 13:29 arnie
[admin@wl500g harddisk]$ mkdir whatiswrong
[admin@wl500g harddisk]$ ls -las |grep whatiswrong
8 drwxr-xr-x 2 admin root 8192 Apr 9 13:30 whatiswrong

Did I do something wrong? :confused:

Regards, Arnold