Linux-based Samba server application-Linux Enterprise Application-Linux server application information. For more information, see the following section. The system is fedora2 and only development tools are installed.
1. Installation
Samba server requires three software packages: samba server software package, samba-client (samba client tool), and samba-common (common tools and libraries ). Since I only installed the development tools during the installation of fedora, the dependency of the software is stored here, you must first install an rpmdb Software Package (rpmdb is a database for solving the software installation and storage relationship) to continue to install the samba software package. Insert the third disc, mount it, and cd it to the Fedora/RPMS path ls | grep rpmdb to list the rpm packages currently including rpmdb, that is, the following rpmdb-fedora-2-0.20040513.i386.rpm rpm-ivh rpmdb-fedora-2-0.20040513.i386.rpm/* this software is in the third ora/RPMS disk */rpm-ivh -- aid samba *. rpm/* install samba software package, samba *. rpm is in the first ora/RPMS disc of fedora. -- aid is used together with the previous rpmdb installation, */rpm-qa | grep samba/* is required for the initial installation of the samba software package. Use rpm to query the files currently installed with samba. q = query in-ql, a = all */rpm-ql samba-3.0.3- 5 rpm-ql samba-client-3.0.3- 5 rpm-ql samba-common-3.0.3-5/* Check the samba package content.-q = query in ql, l = list */
2. Several common samba tools
Smbtree displays all the shared hosts and directories in the LAN. smbclient displays/logs on to the shared hosts/directories in the LAN. Usage: smbclient-L-N win2000/* anonymous logon to win2000, -N indicates anonymity, -L indicates the list of shared directories */smbclient/win2000/share-U username % password/* use the username and password smb User and password to log on to one of the win2000 machines share directory, after logging on successfully with this tool, an smb: \> prompt will appear. Here, two commands in this status are provided: put and get, which are similar to ftp commands in unix/linux, note that two parameters must be followed after put, such as smb: \> put/root/install. log install. log: Specifies not only to upload a local file, but also to upload parameters to another machine. Here, install. log is the name */smbmount/win2000/share/mnt-o username = username % password/* after being uploaded to another machine to mount the remote shared directory to the local device, use umount to cancel mounting */
3. samba Server Configuration
The configuration file of the samba server is smb. conf, in/etc/samba/smb. note several frequently used parameters in conf. For details about how to set a share vi/etc/samba/smb In the samba configuration file, refer to workgroup and security in [global. conf in [gobal], modify workgroup = workgroup security = share and press shift + g (usage under vi, that is, to the end of the file) to reach smb. at the end of the conf file, create a new shared [mongodocs] comment = share documents/* annotation document type */path =/usr/share/doc/* specify the sharing path */public = yes/* to confirm release share */Save and exit (vi commands will be used here, you can use the relevant vi) and restart the samba service. Service smb restart uses smbclient-L localhost to test the samba server.
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