Samba用户权限怎么设置

 时间:2024-10-26 23:34:25

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

Samba用户权限怎么设置

3、需求3:只有user1组里的人对file1这个目录有权限,并且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

Samba用户权限怎么设置

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

Samba用户权限怎么设置
  • 如何拍摄慢门的照片
  • c#中||的用法
  • GIMP如何创建图像上的圆角
  • CR文字识别软件如何操作?
  • win11蓝牙怎么打开
  • 热门搜索
    印度尼西亚旅游 虎跳峡旅游 东南亚旅游推荐 去香港旅游注意事项 十月一旅游 延庆旅游景点 西安旅游路线 呼伦贝尔草原旅游攻略 贵州旅游线路 烟台旅游景点大全