Network neighbor under Linux

xiaoxiao2021-03-06  45

One. I have access to others' machines to install SMBClient. After installing SMBClient -L 192.168.0.10, you can see the shared resources on that machine, and use SMBCLIENT 192.168.0.0.10/Music, you can access shared resources like FTP clients. Music directory, you can also perform upload downloads. Alternatively, install SMBFS, after installing the SMBMount 192.168.0.10//music / mnt / smB command to load Windows shared resources into the file system.

two. Others visited my machine 1. Install the Samba service with root permission to perform APT-GET Install Samba or RPM-IVH Samba_ *. Rpm. 2. Set Samba Server DPKG-RECONFIGURE SAMBA. Note that the first option is the start-up mode, the recommended selection of daemon; the last option is very concerned: In order to compatibility with the most versions of Windows, Samba must be configured to use the encrypted password, and save it in the / etc / passwd file, finally ask "CREATE SAMBA Password Database /var/lib/samba/passdb.tdb?", The selection is; general choice is default. 3. Samba Tip To manually create a password file such as Touch / etc / samba / smbpasswd 4. Next, you must establish a shared user for Samba. This user must be a user existing in the system, such as SMBPASSWD -A User, and then enter a password according to the prompt. 5. Add the following to the /etc/samba/smb.conf file [mysharename] # Other machines View this machine's directory name comment = some words # Some comments path = / temp # 本 共 共 共 共 = yes public = YES 6. Restart Samba /etc/init.d/samba restart

转载请注明原文地址:https://www.9cbs.com/read-51229.html

New Post(0)