windows和centos的目录互访

#centos访问win目录
vi mount.sh
umount /var/local/input/
mount -t cifs //192.168.2.3/input /var/local/input -o username=admin,password=new


#win访问centos目录
yum install samba
chkconfig smb on
/etc/init.d/smb start
vim /etc/samba/smb.conf
#============================ Share Definitions ==============================
[test]
        path = /var/local/output
        valid users = test
        writable = yes
        public = no
        create mask = 0775
        printable = no

useradd test -m -G users
passwd test
smbpasswd -a test
/etc/init.d/smb restart


\\192.168.2.3
username:test
password: test
阅读更多
文章标签: centos windows path
个人分类: linux
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭