System version: Ubuntu 14.04
1. Installing Samba Services
sudo apt-get install samba Samba-common
Test is started normally
/ETC/INIT.D/SMBD start
2. Create shared users and shared directories
smbpasswd - a haha
View User Details
Pdbedit-lv
Pdbedit–a Username: Create a new samba account.
Pdbedit–x Username: Delete Samba account.
Pdbedit–l: Lists the list of Samba users and reads the PASSDB.TDB database file.
PDBEDIT–LV: Lists the details of the Samba user list.
Pdbedit–c "[D]" –u Username: suspend the Samba user's account.
Pdbedit–c "[]" –u username: Restore the Samba user's account.
Create a new shared directory with read and write permissions
mkdir / var/ share
Sodu chmod 777 / var/ Share
3. Modify the configuration file/etc/samb/smb.conf
[public]
comment = Public Stuff
path =/var/share_file
public = yes
browseable = Yes
writable = yes
printable = no
guest ok = yes
Share modes = yes
available = yes
Valid users = @var
VFS object = Recycle
VFS Object = Recycle
Recycle:repository =. deleted/%u
Recycle:keeptree = Yes
Recycle:versions = Yes
Recycle:maxsixe = 0
Recycle:exclude = *.tmp|*.mp3
Recycle:noversions = *.doc
Restart Service
/ETC/INIT.D/SMBD restart
The recycle* representative configures a deleted directory, which can be selected
4. Test connection
Sometimes the first connection fails under Windows, and even if the password is correct later, it needs to be disconnected and re-accessed.
NET use \\192.168.0.198\IPC$/del
NET use */del
No related posts.
On other client access
650) this.width=650; "style=" float:left; "src=" Http://s3.51cto.com/wyfs02/M01/53/C3/wKiom1RvBjKAm8AvAAHd_ Jl5ta0733.jpg "title=" 1.png "alt=" wkiom1rvbjkam8avaahd_jl5ta0733.jpg "/>650" this.width=650; "style=" float:left; " Src= "Http://s3.51cto.com/wyfs02/M01/53/C2/wKioL1RvBl_zx3sTAAGmyEZfm0g259.jpg" title= "Sogou 20141121172945.png" alt= " Wkiol1rvbl_zx3staagmyezfm0g259.jpg "/>
This article is from the "World" blog, make sure to keep this source http://xiajie.blog.51cto.com/6044823/1580985
Open Samba in Windows share under Ubuntu