12/23/2010

Create Fully accessed directory

Create a shared directory that anybody can read and write, and authentication is not required.
[1] Install Samba
[root@master ~]#yum -y install samba
 
[2] Configure Samba 

[root@master ~]#mkdir /home/share

[root@master ~]#chmod 777 /home/share

[root@master ~]#vi /etc/samba/smb.conf

# line 58: add the lines

unix charset = UTF-8
dos charset = CP932

# line 75: change
workgroup =WORKGROUP

# line 81: uncomment and add IP address you allow

hosts allow = 127.10.0.0.

# line 102: change

security =share

# add at the bottom
[Share]            # any name you like
path = /home/share # shared directory
 writable = yes # OK to write

guest ok = yes # guest OK

guest only = yes # guest only

create mode = 0777 # fully accessed

directory mode = 0777 # fully accessed

share modes = yes # warn if some people access to a file

[root@master ~]# /etc/rc.d/init.d/smb start

Starting SMB services:[  OK  ]

Starting NMB services:[  OK  ]

[root@master ~]#chkconfig smb on

 [3] Configure on Windows client. Open [My Computer] - [Map Network Drive] . 





[4] Input shared folder's place in Folder section and Click 'Finish' button to enter. 


[5] Done to access. 






From (server-world)

1 comment: