about /etc/fstab and chown



我已启动/dev/sdb2至/base in/etc/fstab,诸如此类:

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

然后/基础这样:

-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/

有问题吗?

由于NTFS格式引起的问题,NTF没有Genneic许可,因此我们应该使用Mask来定义此问题,for Exm:

/dev/sda1      /base    ntfs defaults,utf8,uid=1000,gid=1000,dmask=022,fmask=133     0       0

相关内容

  • 没有找到相关文章

最新更新