您好,登录后才能下订单哦!
密码登录
            
            
            
            
        登录注册
            
            
            
        点击 登录注册 即表示同意《亿速云用户服务条款》
        操作环境:
两台虚拟机,一台安装samba服务,一台安装samba客户端。
-
yum install samba* -y //samba服务 192.168.80.100
yum install samba-client -y //samba客户端192.168.80.101
vi /etc/samba/smb.conf
[database]
        comment = this is test file
        path = /opt/database
        public = yes
        read only = yes
        writable = yes 
        write list = jack
        create mask = 0644
        directory mask = 0777
systemctl restart smb    #重启服务smbclient -L //192.168.80.100 -U tom
yum install cifs-utils -y
[root@localhost ~]# mount -t cifs --verbose -o username=tom,password=123 //192.168.80.100/database /opt/aa
mount.cifs kernel mount options: ip=192.168.80.100,unc=\\192.168.80.100\database,user=tom,pass=********df -hT
如果在目录里面创建不了文件到80.100上面输入
chmod 777 /opt/database 因为没有权限这条命令是给这个目录权限全开
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。