Install Samba in Ubuntu and add an account: 1. Update source list: sudo apt-get update2. Installing samba:sudo apt-get Install Samba Samba-common3. Create a new shared directory and set permissions 3.1 Create a shared directory in the home directory share the sudo mkdir in the terminal/home/share3.2 Setting permissions for the shared directory (read and Write permissions) enter sudo chmod 777 in the terminal/home/share4. Modify configuration file smb.conf4.1 Open profile smb.conf, enter sudo gedit/etc/samba/smb.conf4.2 in terminal to modify configuration file 1) Security = user2) Add the share at the end of the smb.conf file:(samba_share is the directory name for external display ) [samba_share] comment = Samba server mashare spacePath = /home/share browseable = yeswritable = yesGuest OK = yesPublic = yes3) Save file5. Create a new user to access the resource and set a password5.1 Creating the user sudo useradd smbuser5.2 Set the user's login password sudo smbpasswd-a smbuser5.3 Restart Samba service SMBD restart6. View the IP address of the current server and access the shared directory under Windows6.1 View server IP use Ifconfig to view current server IP6.2 access to shared directory under Windows samba_share: Enter ip/samba_share at the folder
Ubuntu installs Samba and adds accounts