开启共享服务ubuntu
添加共享目录windows
AFP 是 apple 的文件共享协议,若是多台mac能够选择
若是共享到 windows 等非 apple 的机子,选择 smb 的 win 共享协议。
smb 协议须要在选项中添加用户,能够到帐户那新建一个用户,设其角色为共享角色。app
确保你能够挂载 CIFS (SMB) 共享. 在 CentOS/RHEL 下,执行下面的代码spa
sudo yum install cifs-utils
建立挂载点unix
sudo mkdir -p /mnt/YourMountPointName
将要共享的目录挂载到挂载点上,在标准的 mount -t cifs
命令后面添加 nounix,sec=ntlmssp
code
mount -t cifs //ServerName/ShareName /mnt/YourMountPointName -o username=ServerUsername,password=YourPassword,nounix,sec=ntlmssp