samba
yum install samba samba-common samba-client
vim /etc/samba/smb.conf
setsebool -P samba_export_all_ro on
setsebool -P samba_export_all_rw on
workgroup = linux
server string = Samba Server Version
security = user
[public]
comment = Public Stuff
path = /share
public = yes
writable = yes
printable = no
write list = users,@group
guest ok = yes
browseable = no
valid users = @group,users
chmod 777 /share
useradd user1 -s /sbin/nologin
smbpasswd -a user1
smbpasswd -x user1
smbpasswd user1
mount //192.168.0.102/test /mnt -o username=user1,password=user1
vim /etc/fstab
add
//192.168.0.102/test /mnt cifs defaults,username=user1,password=user1,ro 0 0
阅读(965) | 评论(0) | 转发(0) |