In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Today's operating system market is almost separated from Unix and Windows. One invades the absolute server market, while the other almost engulfs the entire desktop market. People often complain that the heterogeneity of today's file systems and networks make it difficult to access different systems, so it is necessary to introduce a general "language" to explain the communication between heterogeneous systems. The last time we configured the NFS sharing service together was to implement file sharing in Unix-like systems. Today, let's take a look at the use of Samba for Solaris, which realizes file sharing and print sharing between UNIX and windows. You can access files on Solaris, print sharing, and even map network drives on your local windows system, which is as convenient as using a local disk. And with Unix's powerful access control, you can set permissions for different shared directories without having to worry that someone will delete your documents, while you are free to operate. First, a brief introduction. First, let's introduce what Samba is. Let's take a look at the goal of the Samba organization-- Opening Windows To A Wider World. Users who are familiar with Linux may often install Samba services on Linux to achieve file sharing and printer sharing with Windows systems. The data transmission between them uses the SMB (Service Message Block) protocol. This is a protocol above the transport layer, so it can support the network interconnection of many different heterogeneous systems (for example, Linux,Solaris,Windows, etc.). Samba works because the SMB protocol mimics the file and print sharing protocols of the Windows kernel. Microsoft has renamed SMB to the Public Internet File system (CIFS,Common Internet File System) and plans to design it as a standard protocol for Internet. This is partly because it wants to distance itself from the original NetBIOS-based SMB. NetBIOS is a great tool for Windows network. Microsoft uses NetBIOS to implement a network file / print service system, but it is designed for LAN that cannot be routed. Samba implements a version of SMB/CIFS that is largely compatible with most Windows versions. However, whether connecting from Windows to Linux or from Linux to a Windows machine, Samba systems are always stable for implementing file and print services. We can easily access the Samba-installed UNIX/LINUX server through Windows's network neighbors. (for more documents, see [url] www.samba.org [/ url], [url] http://baike.baidu.com[/url]) II. Installation and configuration of Samba on solaris. 1. Install the system with smb, omitting the installation steps. 2. Configure related files. The Samba configuration file under Solaris is smb.conf. But we need a copy from smb.conf-example. Third, sharing method: ⑴ does not need a password command: cp / etc/sfw/smb.conf-example / etc/sfw/smb.conf command: vi / etc/sfw/smb.conf
Modification: security=share share does not need to enter user user. No is the initial value, and then write [smb1]-- Custom coment = software-- Note path = / smb-- shared directory public= yes yes does not need to enter a password for access. No requires a password. View service svcs-a | grep samba
Open the service svcadm enable-rst samba test: access the test with windows. Run\\ 192.168.0.246 to confirm that a window appears, just like sharing between Windows. And do not prompt for a user name and password. -OK- if there is no password, anyone can connect to the Samba service and upload files at will. So we should use encryption in practical application! ⑵ needs password (add password authentication) change in vi / etc/sfw/smb.conf: security=user at the end: public = no create user: useradd-d / A1-m / A1 change user to samba user. Edit password: / usr/sfw/bin/smbpasswd-an A1 restart service svcadm restart samba test: access the unix address (IP) with windows and a pop-up panel prompts for a user name and password. This is the parameter of the / usr/sfw/bin/smbpasswd command:-aadd user add samba user-ddisable user disable a samba user-eenable user enable a samba user-iinterdomain trust account interdomain trust user-mmachine trust account native trust user-nset no password clear password-Wuse stdin ldap admin password uses stdin ldap administrator password-wldap admin password sets ldap administrator password-xdelete user deletes a samba user-Rname resolve order name resolution these are the parameters of the smbpasswd command. The translation has been given, interested friends can study it with Xiao Duan. Read and write permissions: sometimes we will encounter this situation, the information in a directory can not be easily modified by the user, other directories need to allow the user to upload files. At this point, we will use the read and write access of samba. Edit the samba configuration file. Command: vi / etc/sfw/smb.conf create a new shared directory smb2. See? Here is set to read-only to yes, default to no. Visit it in Windows: go to the readable and writable smb1 directory and test it: Oh, you can! It's just garbled. Let's take a look at smb2 again. -done-this makes practical sense and facilitates the management of the server. There are three ways to upload and download files: 1. FTP in cmd. 2. File upload tool. Such as FlashFXP, etc. 3. Samba mode. The netbios protocol under Windows is used to transfer files.
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.