Installation and deployment of samba service in Ubuntu I. Environment: 1. Server OS: Ubuntu 12.04 Server (VMware Virtual Machine) IP Address: 192.168.1.1662. test connection machine windows7 IP Address: 192.168.1.100 II. installation and deployment: 1. software Installation Java code sudo apt-get install samba 2. create a shared folder (or select a folder as needed) Java code sudo mkdir-p/srv/samba/share sudo chown nobody. nogroup/srv/samba/share/3. modify the configuration file vi/etc/samba/smb. conf 3.1 modify the following two items in [global]: Java code # Change this to the workgroup/NT-domain name your Samba server will p Art of workgroup = WORKGROUP # "security = user" is always a good idea. this will require a Unix account # in this server for every user accessing the server. see #/usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html # in the samba-doc package for details. # security = user security = share. If security = user is configured, the user/password must be provided during access (Server system pre-created ), security = share indicates that no password is required for access. 3.2 the following code is appended to the end of the file: Java code [Share] comment = Ubuntu File Server Share path =/srv/samba/share browsable = yes guest OK = yes read only = no create mask = 0755 configuration item meaning: [share]: shared File Name comment: Shared description. You can freely modify path: Shared Folder path browsable: whether shared browsing can be performed through Windows Explorer. If no, the shared folder guest is not displayed during windows Access sharing. OK: whether the shared read only can be accessed without a password: whether it is read-only. no indicates that you have the write permission. create mask: Permission for creating new files. If there are multiple shared folders, add multiple [share] configuration clips. 3.3 restart related service Java code sudo restart smbd sudo restart nmbd III. Test function 1. Run \ 192.168.1.166 in window7, shared Folders can be viewed and used by share2, and shared folders can also be found in "network ".