Samba用户权限怎么设置
1、需求1:有一个共享目录为rule,里面放公司的规章制度,所有用户都可以查看,但是不能修改解决方法:在smb.conf里配置read only = yes,具体示例如下:[rule]path = /var/samba/ruleread only = yespublic = novaild users = theworld

3、需求3:只有user1组里的人对f坡纠课柩ile1这个目录有权限,并且user1组中用户a有读写权限,而用户b只有读权限解决菱诎逭幂方法:1、首先建立两个samba用户a和b,这两个用户要保证是在linux系统中存在的用户,并且在同一个用户组user1中,创建方法同上2、然后对目录file1设置访问权限,让用户组user1可以访问file1,命令如下:#chown user1.user1 /var/samba/file1#chmod 770 /var/samba/file13、在smb.conf中配置file1的访问权限,示例如下:[file1]path = /var/samba/file1public = novaild users = @user1write list = aread list = b

5、在smb.conf中配置file1的访问权限,示例如下:[file1]path = /var/samba/file1read only = nopublic = nocreate mode = 0770directory mode = 0770vaild users = @user1write list = @theworld

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。