SMB共享(samba)Centos 6已装入的硬盘权限被拒绝

我为所有用户在Centos上build立了一个SMB分享。 此份额可用并正常工作。 遵循指南 – > 使用tdbsam后端的CentOS 6.4 Samba独立服务器

程序:

为了进行诊断,我已经禁用了SELINUX和iptables(在configuration文件中禁用了selinux,然后重新启动了机器)

//Disbale iptables service iptables stop //set runlevel on smb chkconfig --levels 235 smb on /etc/init.d/smb start //Create folder and set file permissions for share mkdir -p /home/shares/allusers chown -R root:users /home/shares/allusers/ chmod -R ug+rwx,o+rx-w /home/shares/allusers/ 

configuration添加到smb.conf

 [allusers] comment = All Users path = /home/shares/allusers valid users = @users force group = users create mask - 0660 directory mask = 0771 writable = yes 

重新启动桑巴

 //Restart samba service smb restart 

添加用户

 //Add user useradd <username> -m -G users //Set password for user passwd <username> //Set samba password smbpasswd -a <username> 

在这种情况下,共享是可用的,并正常工作。 但是,如果我在/ mnt / mediaHardDrive下挂载的ext4分区尝试这个确切的过程共享显示在一个smb浏览器,但不可用。 看来authentication是不正确的。

有什么build议么?

———-编辑———-

奇怪的是,如果我把ext4分区安装在/ home / shares / allusers目录中,硬盘是可以评估的。

理想情况下,我不想这样做,所以如果有人有任何build议,他们将受到感谢。