CentOS Yum installs FTP and resolves vsftp error oops:cannot change directory:/home/**

Source: Internet
Author: User

CentOS Yum installing FTP and resolving vsftp errors Oops:cannot changedirectory:/home/**  

1. See if the server has an FTP package installed

Rpm-qa |grep vsftp

2.yum installation

Yum-y Install VSFTPD

3. start the VSFTP service

Service VSFTPD Start

4. Turn off the firewall

Service Iptables Stop

5. Test Anonymous access

Modifying a configuration file vsftpd.conf

[[email protected] vsftpd]# ls

Ftpusers user_list vsftpd.conf vsftpd_conf_migrate.sh

[[email protected] vsftpd] #vi vsftpd.conf

Put the configuration file inside the

# Uncomment the anonymous FTP user to Uploadfiles. This only

# has a effect if the above global write enable is activated. Also, you'll

# obviously need to create a directory writable by the FTP user.

#anon_upload_enable =yes

#

# Uncomment this if you want the anonymous FTP user to be Ableto create

# New directories.

#anon_mkdir_write_enable =yes

# number is given out

Then save the Restart service

6. Adding user tests

Useradd-m-d/home/test-s/bin/sh-g Root Test

passwd Test 123456

Useradd [-u uid |-G Group] |-D dir |-S Shell |-C Comment |-m [-skel_dir]] Login
Description:
USpecify userIDnumber
GSet up your group
DSpecify user Directory
SDevelop usersSHELL
CUser's comments
MCreate a user directory
LoginUser's login name 

Useradd parameters It is necessary to take a look

Restart Service Test Login error

Oops:cannot Change Directory:/home/test

Modify /home/ Permissions   

CHOMD 777/home/ This is still the error

View Data modification SELinux

[Email protected] ~]# Cat/etc/selinux/config

# This file controls the state of SELinux on Thesystem.

# selinux= can take one of these three values:

# Enforcing-selinux security policy is enforced.

# Permissive-selinux Prints warnings instead of enforcing.

# disabled-no SELinux policy is loaded.

Selinux=enforcing

# Selinuxtype=can Take one of these the values:

# targeted-targeted processes is protected,

# Mls-multi level Security protection.

selinuxtype=targeted

[Email protected] ~]#

Selinxu=enforcing changed into selinux=disabled

The server must then be restarted

Test

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/8B/EC/wKioL1hcyfWR0PSQAABYdKn7QWM248.png-wh_500x0-wm_3 -wmp_4-s_472912766.png "title=" Image001.png "alt=" Wkiol1hcyfwr0psqaabydkn7qwm248.png-wh_50 "/>



The login user has a test password of 123456

Test success!


This article is from the "Tigase Installation and testing" blog, so be sure to keep this source http://jiazuzhao.blog.51cto.com/1123655/1885492

CentOS Yum installs FTP and resolves vsftp error oops:cannot change directory:/home/**

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.