Download and install:
Official Deb Pack Download: http://packages.ubuntu.com/
command to install Dpkg–i xxxx.deb (installation is not successful note Log installation dependency package)
Apt-get Install Samba
To test whether the installation was successful:
Direct directory access to Linux Ip:\\192.168.xxx.xxx
If you have access will show an empty directory stating that the installation was successful. The installation failed while the access failed.
To access the configuration:
Modifying a configuration file vi/etc/samba/smb.conf
[Global]
This section is generally not modified for global configuration, if it is configured as all users do not need password access to Security = User Configuration Security = Share
[Printers]
Configure the printer, you can not modify
Add the configuration as needed:
[XXXX]-Set the name of the folder to be displayed when accessed under Windows, optionally set
Comment = xxxx ' s file directory--current configuration instructions, arbitrarily set
Path =/home/xxxx--The actual Linux directory that is displayed after access (must be configured)
browseable = yes--can be browsed
public = no-open, yes no account password required
Valid users = @xxxx-allows access to the user (user added using Smbpasswd–a, Root does not need the @ symbol)
writable = yes-writable (not configured by default is not writable)
Create mode = 0664--Creating file permissions
Directory mode = 0775--Catalog permissions
Specific chestnuts:
1. All users can access a common directory without a password
2. User can access the exclusive directory via account
[Public]
Comment = everybody can visit
Path =/home/public
Public = yes
Read Only = yes
[Bing]
Comment = Bing ' s home directory
Path =/home/bing
browseable = No
public = No
Valid users = @bing
writable = yes
Create mode = 0664
Directory mode = 0775
Restart SAMBA:/ETC/INIT.D/SMBD restart
Direct access, enter the public directory, access to the Bing directory, need authentication.
Samba-building and configuration of a file-sharing server