(Ubuntu Server 11.04)Proftpd权限被USB HDD拒绝

我的服务器上安装了外置硬盘。 它在/ dev / sdb1(或/ media / usb0)上。 我有一个proftpd用户,主目录设置为/ media / usb0。

问题是/ media / usb0的所有权是根,我不能改变这一点。 试图上传文件时,我总是得到权限的拒绝。

我已经尝试设置chmod -R 777 / media / usb0 /但它不工作。

proftpd linux用户是proftpd。

我如何设置正确的权限的USB硬盘?

谢谢

我猜你的USB设备使用FAT作为文件系统? FAT不支持* nix样式的权限。 没有所有权或权限的概念,因此不允许在文件夹上使用chmod / chmod。

在Linux下挂载FAT文件系统时,可以通过几个选项设置UID / GID / Dmask和Fmask。

看见人登上

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.