Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
|
04-06-2006, 11:27 PM
|
#1
|
|
Member
Registered: May 2004
Posts: 74
Rep:
|
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
|
|
|
|
04-07-2006, 12:58 PM
|
#2
|
|
LQ Newbie
Registered: Dec 2005
Posts: 5
Rep:
|
Linux is a future :-)
 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 
|
|
|
|
04-07-2006, 01:28 PM
|
#3
|
|
Member
Registered: Feb 2003
Location: Poole, Dorset, England
Distribution: Fedora Core 5
Posts: 80
Rep:
|
Quote:
|
Originally Posted by X-Ray
 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.
|
|
|
|
04-26-2006, 07:36 AM
|
#4
|
|
Member
Registered: May 2005
Location: Cluj, Romania
Distribution: Fedora Core 6
Posts: 226
Rep:
|
I have the same problem here, I've googled for it but didn't find anything. Did you solve this? 
|
|
|
|
05-24-2006, 04:15 AM
|
#5
|
|
LQ Newbie
Registered: May 2006
Posts: 1
Rep:
|
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.
|
|
|
|
09-11-2006, 12:49 PM
|
#6
|
|
LQ Newbie
Registered: Sep 2006
Posts: 1
Rep:
|
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?
|
|
|
|
09-19-2006, 02:53 PM
|
#7
|
|
LQ Newbie
Registered: Sep 2006
Location: Miami, FL
Distribution: Fedora Core
Posts: 2
Rep:
|
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.
|
|
|
|
10-01-2006, 11:05 PM
|
#8
|
|
LQ Newbie
Registered: Jul 2003
Location: Boston, MA
Distribution: Fedora Core 2 and RH9
Posts: 2
Rep:
|
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 
|
|
|
|
12-22-2006, 08:55 PM
|
#9
|
|
LQ Newbie
Registered: Jan 2006
Posts: 1
Rep:
|
Just wanted to tell you thank you for you'r helpfull solusion...
FEDORA 5 WITH SELinux.
|
|
|
|
01-17-2007, 10:49 AM
|
#10
|
|
LQ Newbie
Registered: Jan 2007
Posts: 1
Rep:
|
Thx, this does work.
This got it for me also.
Thx.
Duane
|
|
|
|
02-12-2007, 10:38 PM
|
#11
|
|
LQ Newbie
Registered: Jan 2006
Posts: 2
Rep:
|
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
i have no choice just delete and receate user account to fix it.
hope this information can help you.

|
|
|
|
02-15-2007, 02:54 PM
|
#12
|
|
Member
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319
Rep:
|
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.
|
|
|
|
04-16-2007, 08:13 AM
|
#13
|
|
Member
Registered: Dec 2006
Distribution: Ubuntu 9.10
Posts: 86
Rep:
|
Yes, this helped me too.
Thanks alot. 
|
|
|
|
05-14-2007, 02:31 PM
|
#14
|
|
LQ Newbie
Registered: May 2007
Distribution: Fedora Core 6
Posts: 1
Rep:
|
Thank you so much
Fixed my problem. Really needed the server to backup my phone system, saved me from ton of work.
|
|
|
|
10-18-2007, 02:51 PM
|
#15
|
|
LQ Newbie
Registered: Feb 2007
Posts: 1
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:19 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|