安装
mac和linux使用samba共享文件 1.linux安装samba sudo yum install samba 2.检查安装成功 rpm -qa | grep samba 3.创建共享文件 mkdir /home/USER_NAME/shared_directory sudo chmod 777 /home/USER_NAME/shared_directory 其中的USER_NAME,设置为baofu.cbf 4.修改配置 vim /etc/samba/smb.conf [share] path = /home/USER_NAME/shared_directory available = yes browseable = yes public = yes writable = yes [homes] comment = Home Directories path = /home/baofu.cbf/shared_directory valid users = smbuser browseable = Yes read = Yes inherit acls = Yes available = yes browseable = yes public = yes writable = yes 5.添加账户 sudo touch /etc/samba/smbpasswd sudo smbpasswd -a USER_NAME 其中的USER_NAME,设置为baofu.cbf 6.启动smb服务 service smb start 7.设置开机自启 chkconfig smb on 8.mac连接 打开finder,cmd+k,输入ip
创建用户报错Failed to add entry for
创建用户 groupadd root useradd root -g root
。