-2

我已将 /dev/sdb2 挂载到 /etc/fstab 中的 /base,如下所示:

/dev/sda1   /base   ntfs    defaults,user,errors=remount-ro 0   0

然后 /base 像这样:

-rwxrwxrwx  1 root root     29696 Oct 19 00:11 Mac-OS-Lion(Docky).tar*
drwxrwxrwx  1 root root         0 Dec  8 18:13 MySQL/

尝试 chown:

DevOps mysql # ll /base/MySQL/
total 40
drwxrwxrwx 1 root root     0 Dec  8 18:13 ./
drwxrwxrwx 1 root root 20480 Dec 16 10:40 ../
drwxrwxrwx 1 root root 20480 Dec  8 18:14 mysql_data/
drwxrwxrwx 1 root root     0 Dec  8 10:50 mysql_log/
DevOps mysql # chown -R mysql:mysql /base/MySQL/
DevOps mysql # ll /base/MySQL/
total 40
drwxrwxrwx 1 root root     0 Dec  8 18:13 ./
drwxrwxrwx 1 root root 20480 Dec 16 10:40 ../
drwxrwxrwx 1 root root 20480 Dec  8 18:14 mysql_data/
drwxrwxrwx 1 root root     0 Dec  8 10:50 mysql_log/

有什么问题吗?

4

1 回答 1

1

由于ntfs格式的问题,ntfs没有基因权限,所以我们应该使用掩码来定义它,例如:

/dev/sda1      /base    ntfs defaults,utf8,uid=1000,gid=1000,dmask=022,fmask=133     0       0
于 2016-12-16T08:38:53.310 回答