最簡單的狀況: 共享一個可讀可寫的目錄出來linux
修改配置文件,添加smb用戶 1.修改配置文件 /etc/smb/smb.conf [sharename]comment = Shared Folder with username and passwordpath = /home/guang/sharepublic = yeswritable = yesvalid users = smbusernamecreate mask = 0700directory mask = 0700force user = nobodyforce group = nogroupavailable = yesbrowseable = yes 2.增長smb用戶 samba登陸的用戶和系統本地的用戶密碼不一樣 smbpasswd命令:修改用戶密碼 配置完成後,驗證配置是否正確 windows下:net use \\ip\sharename linux下:mount -t smbfs -o username \\ip\sharename