当我尝试设置虚拟主机时,我需要像这样更改根目录的权限:
sudo chown -R www-data:www-data /NAS/directory
sudo chmod 755 /NAS/directory
但每当我这样做时我总是收到如下错误:
chown:更改“/NAS/directory”的所有权:参数无效
chmod:更改“/NAS/directory”的权限:参数无效
为什么会发生这种情况?
我使用多个硬盘驱动器像这样设置了我的 nas 目录:
#External HDD's
UUID="54E1-D75E" /mount1 exfat utf8,auto,rw,nobootwait,umask=0,sec=ntlm 0 0
UUID="54F9-A540" /mount2 exfat utf8,auto,rw,nobootwait,umask=0,sec=ntlm 0 0
UUID="1B81-6E61" /mount3 exfat utf8,auto,rw,nobootwait,umask=0,sec=ntlm 0 0
UUID="54ED-E111" /mount4 exfat utf8,auto,rw,nobootwait,umask=0,sec=ntlm 0 0
#mount to NAS
mhddfs#/mount1,/mount2,/mount3,/mount4 /NAS fuse defaults,allow_other,nobootwait,nonempty 0 0