In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Samba simple and fast file sharing
Samba is a software component that interoperates between linux,unix and windows.
The required software includes: samba (server-side software package), samba-client (client-side software package) and samba-common (common file package) samba is composed of two daemons, smbd and nmbd, and the default listening ports of smbd are TCP 139,445.
① Quick install and configure Samba Server
Yum-y install samba
② creates a shared directory
Mkdir / common
Chmod 777 / common
Echo "hello" > / common/smb.txt # create a test file
③ modify configuration file
The default configuration file for Samba is / etc/samba/smb.conf
Vim / etc/samba/smb.conf
[common] # share name is common
Comment = common share # sharing comments
Path = / common # specify the share path
Browseable = yes # visible to everyone
Guest ok = no # denies anonymous access
Writable = yes # supports writing data
④ creates an access account. The password of the samba share is a separate password, which is different from the system password. It is stored in / var/lib/samba/private by default.
Useeradd-s / sbin/nologin smbuser
Smbpasswd-a smbuser
Smbpasswd parameter options
-a # add account and set password
-x # Delete SMB account
-d # prohibit SMB account
-e # enable SMB account
⑤ Startup Service
Systemctl start smb
⑥ accesses samba shares
Windows can access the directory by entering\ IP in the dialog box to start running.
Linux client access
Smbclient-L / / ip # probe host sharing information
Smbclient-U username / / ip / common # accesses the shared directory
⑦ mounts a shared directory
Mkdir / com
Mount-t cifs / / ip/common / com-o username= username, password= password
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.