分类: LINUX
2010-09-17 16:19:37
Samba includes a utility called SWAT, the Samba Web Administration Tool. This tool makes setting up Samba very easy. The main Samba configuration file is /etc/smb.conf. SWAT enables you to use a Web browser as the interface to /etc/smb.conf and makes the necessary modifications to this file. While you are using SWAT to make the configuration changes, you will learn more about the smb.conf file. A sample smb.conf file was created during the installation that can be used for reference. You should rename this file because you will create a new smb.conf using SWAT and it will overwrite the original file. # Samba config file created using SWAT In the above file naveen and ravi are users who can have access to /oldwin from the windows client. Start the services now to make file sharing on windows. sambashare is the share name. service smb restart You can test whether the smb process is running with the pgrep command: # pgrep smb Now create samba user and password for naveen and ravi. # useradd naveen Now give the following command to mount the samba server: # smbmount // Now at windows client side : start – run- \\ipaddress\share name Then you will get the remote desktop of the shared folders in linux. This way samba can acess from windows. Edit by Frank |