Sharing Ubuntu and windows files

Source: Internet
Author: User
Tags password protection

Ubuntu and windows File Sharing ):
The simplest method is to open a folder, press Ctrl + L, and then press smb: // xxx in the address bar. xxx. xxx. xxx (windows Host IP address. if it is XP, it should be okay. If it is Win7, enable advanced sharing settings. Make sure you have enabled public network sharing. Disable password protection. Do not select 128-bit encryption protection (select 40 56) of course, it is important that you do not share files with families in your team. I used it most when I worked with my colleagues for development.
Install samba: www.2cto.com sudo apt-get install sambasudo apt-get install smbfs. Let's share the readable and writable folders of the group. Suppose the folder you want to share is: /home/tufu/share/first create this folder mkdir/home/ray/mongochmod 777/home/ray/share backup and edit smb. conf allows network users to access sudo cp/etc/samba/smb. conf/etc/samba/smb. conf_backup // backup configuration file sudo gedit/etc/samba/smb. conf // open the configuration file and search for this line of text # security = user replace security = userusername map =/etc/samba/smbusers with the following lines. If you want to use this line, you can access it anonymously, replace the following line : Security = share: Add the following lines to the end of the file. Assume that the user allowed to access the file is youuser. The Shared Folder name is Share [Share] comment = Shared Folder with username and passwordpath =/home/tufu/sharepublic = yes www.2cto.com writable = yesvalid users = tufucreate mask = 0700 directory mask = 0700 force user = nobodyforce group = nogroupavailable = yesbrowseable = yes
And change it here by the way, find the [global] and change workgroup = MSHOME to workgroup = WORKGROUPdisplay charset = UTF-8unix charset = UTF-8dos charset = cp936 followed by the three lines to prevent Chinese directory garbled. Depending on your local, the UTF-8 may need to be changed to cp936. Do it yourself. Now you need to add the youuser network access account. If this account does not exist in the system, you must note that the user youuser is added, but the user logon password is not granted to the user. Therefore, this user can only be remotely accessed and cannot log on from the local machine. In addition, the samba logon password can be different from the local logon password. Now you want to add a network user account: www.2cto.com sudo smbpasswd-a youusersudo gedit/etc/samba/smbusers Add the following line to the new file and save youuser = "network username" if you need to change the youuser's network access password in the future, also, use this command to change the command of sudo smbpasswd-a youuser to delete the account of the network user and change-a to-xsudo testparmsudo/etc/init. d/samba restart the samba service. In windows, enter your ip address and enter your username and password to access the service. Author t80t90s

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.