我有一个外部硬盘安装在我的服务器上。它位于/dev/sdb1 1(或/media/usb0 0)上。我有一个proftpd用户,主目录设置为/media/usb0 0。
问题是/media/usb0 0的所有权是根,我不能改变它。当我试图上传一个文件时,我总是得到拒绝的许可。
我已经尝试过设置chmod -R 777 /media/usb0 0/,但它也不起作用。
proftpd linux用户是proftpd。
如何为usb设置正确的权限?
谢谢
发布于 2011-07-07 14:08:37
我猜您的USB设备正在使用FAT作为文件系统吗?FAT不支持*nix样式权限。没有所有权或权限的概念,因此不允许在文件夹上使用chmod/chmod。
在Linux下挂载FAT文件系统时,可以传递几个选项来设置UID/GID/Dmask和F掩码。
请参阅人坐骑
uid=value and gid=value
Set the owner and group of all files. (Default: the uid and
gid of the current process.)
dmask=value
Set the umask applied to directories only. The default is the
umask of the current process. The value is given in octal.
fmask=value
Set the umask applied to regular files only. The default is
the umask of the current process. The value is given in octal.
https://serverfault.com/questions/288079
复制相似问题