LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ftp 500 OOPS: cannot change directory (https://www.linuxquestions.org/questions/linux-networking-3/ftp-500-oops-cannot-change-directory-432558/)

yhus 04-06-2006 11:27 PM

ftp 500 OOPS: cannot change directory
 
Hello,

I try to ftp from my RH9.0 to a linux device which is running vsftpd, but there was an error of "500 OOPS: cannot change directory ...". Then I have go to the device using a serial cable to change access mode from drwx---- to 777 in both /home and /home/use login directory, then it allow me to login. Appreciate any help on how to fix this problem.

Thank you.

Jim

X-Ray 04-07-2006 12:58 PM

Linux is a future :-)
 
:Pengy: my frend users home directory should be /var/www/userfolder.


you can change it in the /etc/passwd file. look!
in the /etc/passwd file there is usrname /home/username
simply edit usrname /var/www/username. then you will be able to change directory. I have redhat 9.0 too. everything works well but sendmail is a problem for me.. I will wait yor success :)

gmcmaster 04-07-2006 01:28 PM

Quote:

Originally Posted by X-Ray
:Pengy: my frend users home directory should be /var/www/userfolder.


you can change it in the /etc/passwd file. look!
in the /etc/passwd file there is usrname /home/username
simply edit usrname /var/www/username. then you will be able to change directory. I have redhat 9.0 too. everything works well but sendmail is a problem for me.. I will wait yor success :)


Erm no they shouldn't.

zahadumy 04-26-2006 07:36 AM

I have the same problem here, I've googled for it but didn't find anything. Did you solve this? :)

Dugroin 05-24-2006 04:15 AM

SELinux issue...
 
Hi Guys,

I had the same problem, and I found out that disabling SELinux solved the problem (watch out for any security issue that might bring)...
To disable SELinux, edit /etc/sysconfig/selinux and put it to 'disabled' (again, make sure you don't lower too much the security of your box)...

Now, I'll try to see how to keep SELinux enabled (enforced, that is) and still allow the FTP server to work properly ;-) !

Dugroin.

ineptual 09-11-2006 12:49 PM

Quote:

Originally Posted by Dugroin
Hi Guys,

I had the same problem, and I found out that disabling SELinux solved the problem (watch out for any security issue that might bring)...
To disable SELinux, edit /etc/sysconfig/selinux and put it to 'disabled' (again, make sure you don't lower too much the security of your box)...

Now, I'll try to see how to keep SELinux enabled (enforced, that is) and still allow the FTP server to work properly ;-) !

Dugroin.


did you ever figure out how to use ftp in this manner with having to disable SELinux?

UMTopSpinC7 09-19-2006 02:53 PM

in fedora core 5 i believe this can be fixed by going to Security Level and Firewall then the SELinux tab. Then click modify SELinux Policy, ftp and make sure "Allow ftp to read/write in the user home directories" is checked.

Or, just use

/usr/sbin/setsebool -P ftp_home_dir 1

That worked for me.

xungan 10-01-2006 11:05 PM

Thanks to all who posted in this Thread, saved me having to search down an answer from other sites and modifying the SELinux policy worked for me. Now to learn more about SELinux :)

kreamer 12-22-2006 08:55 PM

Just wanted to tell you thank you for you'r helpfull solusion...

FEDORA 5 WITH SELinux.

duanedyar 01-17-2007 10:49 AM

Thx, this does work.
 
This got it for me also.

Thx.

Duane

mark_bj 02-12-2007 10:38 PM

My case similar as you, but not exactly , bcos nothing i can found in user home directly ... meaning, NO .bash_logout, .bash_profile, .bashrc, and .zshrc :confused:

i have no choice just delete and receate user account to fix it.
hope this information can help you. ;)

:newbie:

inescapeableus 02-15-2007 02:54 PM

Hello everybody,

I am not sure if this may help you out or not, but I was experiencing the same issue with Debian. As it would turn out the issue was related to a Kernel option that was disabled. Please let me know if you have had any other successes with other methods.

Regards.

haxpor 04-16-2007 08:13 AM

Yes, this helped me too.
Thanks alot. :)

Realsigno 05-14-2007 02:31 PM

Thank you so much
 
Fixed my problem. Really needed the server to backup my phone system, saved me from ton of work.

newrad90 10-18-2007 02:51 PM

I'm using Fedora 7, problem was fixed with the suggestion of
su -
/usr/sbin/setsebool -P ftp_home_dir 1

thanks for the help:). Linux forums are a lifesaver.


All times are GMT -5. The time now is 10:57 PM.