3.Ubuntulinux system access WinXP/2003/2000 system in my testing process, achieve Ubuntulinux system access Windows system are 3, I will be the ways described below.
Note that in Windows system set up access permissions for a shared directory, this article followed by the Windows system log on a user name and password, that is, assuming that the logged on user to have access to the shared directory. If the logged-on user does not have access, please enter a Windows shared folder of authorized username and access password. For example, create groups, create user UbuntuSMB group ubuntu. > NetlocalgroupUbuntuSMB/add > netuserubuntuShareAccessPassword/add/passwordchg: no/expires: never > netlocalgroupUbuntuSMBubuntu/add > netlocalgroupUsersubuntu/delete the above command line ShareAccessPassword to want to set a password. The Windows default simple file sharing is cancelled. Will Windows shared folder is set to only UbuhtuSMB group can read and write. So the following user name and password should be changed to ubuntu and corresponding password. First: use smb access if ubuntulinux system Terminal pingwindows host's IP address can ping Tung, and windows computers with shared folders, you open the menu entry location-> network, click the interface Windows workgroup, network-> group in the workgroup can see the windows computer name, double-click will pop up a username and password dialog box, enter the Windows system settings of the login username and password can access it. Second: use the ubuntu system to connect to the server functions to access the location starts to connect to the server, select the service type "windows sharing", windows Server, enter the IP address or computer name, click on the connection, so that the system desktop displays a connect to Windows computers file volumes. We can visit the ubuntu system disk to access it, also in access time to enter the Windows logon user name and password. Third: mount mount windows shared directory on the local disk first in ubuntu system, establishing a mount point, where we established in point/mnt/wind # md/mnt/wind also in ensuring network connectivity, and a shared directory in Windows, do the following to the IP 192.168.0.1 for windows, the shared folder to share for example commands are as follows: # mount-tsmbfs-ousername = wangyh, password = 123456//192.168.0.1/share/mnt/wind there is in access time will appear garbled, so that we can perform the following command to solve this problem # mount-tsmbfs-oiocharset = uft8, codepage = cp936, clmask = 777, 777, fmask = \userneme = wangyh, password = 123456//192.168.0.1/share/mnt/wind Note: usename and password for the Windows login of the user and password, if you want to learn more about the mount command, use the Terminal to view detailed manmount usage tips: to access windows in a folder with special password, you can create a new samba and windows log on the same name are the same password, and then mount it, for example: # sudouseraddadministrator//don't let her have login privileges # sudosmbpasswd-aadministrator ubuntu and then prompt for a password: enter the password for the windows access to the site's practices: http://wiki.ubuntu.org.cn/ubuntuhelp:comprehensivesambaguide start Terminal in Ubuntu system, create groups and add users, smb USER joined group: $ sudomkdir-p/media/winsares $ sudoaddgroupsmb $ sudoadduser $ USERsmb assumes that the Windows computer name is the name DEVMACHINE, shared folders, for shares will mount the shared folder to the directory/media/winshares $ sudomount-tsmbfs-ousername = ubuntu, password = ShareAccessPassword, workgroup = Workgroup, smb, \gid = uid = $ USER, fmask = 770, dmask = 770, rw//DEVMACHINE/shares/media/winshares fourth: use smbclient command command as follows: # smbclient//192.168.0.1/share-UwangyPassword: enter the password for the smb user wangyh the carriage return is used, use the command get to download the file, put the uploaded file. Note: Introduction: smbclient command instructions or help [command] provide help or help on a command! [Shellcommand] execution of SHELL commands, or let the user enter the SHELL prompt cd [Directory] switch to specify the directory on the server side, if not specified, the smbclient returns the current local directory lcd [Directory] to switch to the directory specified by the client; dir or ls lists the files in the current directory; exit or quit quit smbclientgetfile1file2 downloaded from the server, and to file file1 file2 exists on the local machine; if you do not want to rename, you can omit the file2 mgetfile1file2file3filen from server to download multiple files; md or mkdir directory create a directory on the server or remove the rd rmdir Directory directory on the server putfile1 [file2] to server upload one file file1, transfer to the server was renamed as file2; mputfile1file2filen to upload more than one file reference document: 1.ubuntu implement Windows using samba and linux file sharing (reprint) hi.baidu.com/zdl1016/blog/item/7d1326552157a8c7b745ae10.tml2.UbuntuHelp: ComprehensiveSambaGuidewiki ubuntu.org .cn/UbuntuHelp: ComprehensiveSambaGuide
No comments:
Post a Comment