[email protected] share]# Yum install samba-y
[email protected] share]#Cp/etc/samba/smb.conf/etc/samba/smb.conf.bak
[email protected] share]#Vi/etc/samba/smb.conf
#======================= Global Settings ===================================== [Global] workgroup = Workgroup Security = Share map to Guest = Bad user #============================ share definitions ============================== [Myshar E
#修改为自己的共享路径path =/sharebrowsable =yes writable = yes guest OK = yes Read only = no load printers = noprinting = Bsdpri Ntcap name =/dev/nulldisable SPOOLSS = yes
[email protected] share]#Chkconfig SMB on
[[email protected] share]# service SMB start
You can see the shared folder when you access \\IP under Windows
Set the file to 777 permissions when encountering an access error without access
[email protected] share]# chmod 777/share
Note: The above for the quick configuration there is a security risk, the physical machine is not recommended for use.
Folder sharing under Linux