1. First install samba on Ubuntu. The specific steps are as follows: install samba: sudo apt-get install samba to install smbclient: sudo apt-get install to install smbfs: sudo apt-get smbfs 2. modify the configuration file sudo gedit/etc/samba/smb. conf edit smb. the conf file is changed; the security user is changed to the security user, then add [program files] comment = Shared Folder require passwordpath =/home/magic/sharepublic = yes www.2cto.com writable = yesvalid users = magiccreate mask = 0777 directory mask = 0777 force u at the end of the configuration file. Ser = nobodyforce group = nogroupavailable = yesbrowseable = yes save and restart samba, sudo/etc/init. d/samba restart 3. Set the user and password sudo smbpasswd-a magic and enter the password as prompted. 4. In the end, right-click a windows network neighbor and choose \ IP address \ Program Files. Enter the username and password as prompted. Author duanqz