1. First install samba on Ubuntu. The specific steps are as follows: Install samba: sudoapt-getinstallsamba to install smbclient: sudoapt-getinstall to install smbfs: sudoapt-getsmbfs2, modify configuration file sudogedit/etc/samba/smb. conf edit smb. the conf file will be repaired by securityuser.
1. First install samba on Ubuntu. The specific steps are as follows:
Install samba: sudo apt-get install samba
Install smbclient: sudo apt-get install
Install smbfs: sudo apt-get smbfs
2. modify the configuration file
Sudo gedit/etc/samba/smb. conf edit the smb. conf file
Modify security user to security user, and then add
[Program files]
Comment = Shared Folder require password
Path =/home/magic/share
Public = yes
Writable = yes
Valid users = magic
Create mask = 0777
Directory mask = 0777
Force user = nobody
Force group = nogroup
Available = yes
Browseable = yes
Save and restart samba, sudo/etc/init. d/samba restart
3. Set the user and password
Sudo smbpasswd-a magic then prompts you to enter the password.
4. In the end, select "Network Neighbor" under windows-> right-click and select "ing network drive ".
Enter the Folder \ IP address \ Program Files, and enter the user name and password as prompted.