Oops:cannot Change Directory:/root problem linux__linux

Source: Internet
Author: User
Tags root access

System: Red Hat Enterprise Linux 5


Today, the online method is configured with a vsftp that can be accessed anonymously, but with root access to the Times 500 error as follows:
Connecting to 192.168.0.16, Dec 2009 09:35:27
< (VSFTPD 2.0.5)
> USER Test
< 331 please specify the password.
> Pass (Hidden)
< Oops:cannot change Directory:/root
< Oops:child died
Connection closed
Oops:child died
But on the internet to find some way to solve:

Solve:

1, view the status of SELinux: Sestatus-b | grep ftp exactly, just view the status of the FTP.

2, in the results of the show can be seen ftp_home_dir off

Tftpd_disable_trans off

Like Now we just have to set one of them to on.

3, Setsebool-p Ftpd_disable_trans on or setsebool-p ftp_home_dir on

4, restart Vsftpd:service vsftpd restart

Follow the above method: when the input setsebool-p ftpd_disable_trans on times wrong, the error is as follows:

Usage:setsebool [-P] Boolean value | Bool1=val1 Bool2=val2 ...

I use the man method to look at the Setsebool document:

NAME
Setsebool-set SELinux Boolean value
Synopsis
Setsebool [-P] Boolean value | Bool1=val1 Bool2=val2 ...

Enter Setsebool Ftpd_disable_trans on to complete the change.

If the selinux is not very familiar or the problem can not be solved, close the selinux, also can let vsftp normal use.

Close method: Modify the Selinux= "" in the/etc/selinux/config file as disabled, and then reboot

Original Address http://reason2003.blog.163.com/blog/static/11649946920091115103017836/

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.