Comprehensive application of Samba server and vsftpd server in Internet cafes

Source: Internet
Author: User
Article Title: comprehensive application of Samba server and vsftpd server in Internet cafes. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

An Internet cafe needs to build a Samba server. The specific requirements are as follows:

1. the Samba server acts as a file server for Internet cafes, which requires movies and games to be provided to all users. Private user shared directories do not exist.

2. All common users are required to view and use only files on the Samba server. Files cannot be modified or deleted.

3. The file update process on the Samba server must be performed on a vsftp server.

4. The main folder created on the Samba server is required to contain Chinese characters, such as [game world] and [music world.

5. The file directories that need to be uploaded through the FTP server, for example, [World of Warcraft] and [Running karting] are displayed as Chinese.

Tutorial steps:

I. installation and configuration of Samba Server

By default, all the software packages of the Samba server and client are installed in RHEL4. before using the software, make sure that these software packages already exist in the system. The RPM installation packages of the Samba server and client are kept in the 2nd installation discs of RHEL4. You can use the rpm command to install or reinstall the installation.

Edit the main configuration file smb. conf of Samba

Modify security = share. This option is used to determine the user authentication method used by the Samba server for the client. The default mode is user authentication, that is, the user name and password must be used for authentication to enter the corresponding directory, all users are required to access the shared resources on the Samba server without entering the user name and password. Therefore, the share parameter is used to access the Samba server without entering the user name and password.

Comment out the configuration lines under [homes] and prohibit all users from logging on to the Samba server through the Samba user account. Because the Samba server in an Internet cafe does not need to create a shared directory for each user, you only need to have a public shared directory.

To add public directories [movies] and [games], you must have the permission to access public directories and read only, path =/home/wangba/movies: Set the Linux system directory corresponding to the public directory. This directory is created when a vsftp server is created. Public = yes indicates that the shared directory is visible to all Samba users. Only guest = yes indicates that the user identity of all users in this directory is guest, that is, the Linux system user nobody. Guest OK = yes indicates that all anonymous users are allowed to log on. Writable = no indicates that the shared directory is not writable to all users.

 

[1] [2] [3] [4] [5] Next page

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.