LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 03-08-2012, 07:34 AM   #1
AKB48
LQ Newbie
 
Registered: Feb 2012
Posts: 9

Rep: Reputation: Disabled
Smile can't change directory in ftp service


hi,everyone.
when i connect to localhost
there is a symbol link file in ftp service
lrwxrwxrwx 1 0 0 28 Mar 08 13:31 linkDVD -> /media/RHEL_6.2 i386 Disc 1/

then i type command "cd linkDVD"
it error:
"550 Failed to change directory."
how to solve it ?
thanks
 
Old 03-08-2012, 08:25 AM   #2
devUnix
Member
 
Registered: Oct 2010
Location: Bengaluru, India
Distribution: RHEL 5.1 on My PC, & SunOS / Sun Solaris, RHEL, SuSe, Debian, FreeBSD and other Linux flavors @ Work
Posts: 533

Rep: Reputation: 46
You might not have sufficient permission to cd to that directory.
 
Old 03-08-2012, 04:08 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 10,255

Rep: Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256
For some reason I also think that you have to go one directory at at time on some ftp systems. The usual answer is what devUnix stated.
 
Old 03-09-2012, 12:06 AM   #4
AKB48
LQ Newbie
 
Registered: Feb 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
i connect to localhost with user "ftp".
and "ftp"'s home directory is /var/ftp
it seems that "ftp" can't see the file in /media/

/media can be read
drwxr-xr-x. 3 root root 4096 Mar 8 21:43 media
and sub dir also
dr-xr-xr-x. 10 kid kid 6144 Nov 17 08:48 RHEL_6.2 i386 Disc 1
 
Old 03-09-2012, 02:21 AM   #5
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 351

Rep: Reputation: 7
Quote:
Originally Posted by AKB48 View Post
i connect to localhost with user "ftp".
and "ftp"'s home directory is /var/ftp
it seems that "ftp" can't see the file in /media/

/media can be read
drwxr-xr-x. 3 root root 4096 Mar 8 21:43 media
and sub dir also
dr-xr-xr-x. 10 kid kid 6144 Nov 17 08:48 RHEL_6.2 i386 Disc 1
i don't think that is right.
/var/ftp is the default directory for anonymous user.when you login to ftp server with a legitimate user, you will be redirected to the home directory.
i assume you installed vsftpd, so there's an option named "chroot_local_user=YES|NO".if the value is YES, users can only cd to their home directory.and if it's NO user can cd to the entire file system.
 
1 members found this post helpful.
  


Reply

Tags
ftp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
change default vsftp anonymous accout directory /var/ftp to other directory? hocheetiong Linux - Newbie 2 01-24-2010 06:33 PM
cannot change directory from ftp user shipon_97 Linux - Newbie 1 08-24-2009 02:33 AM
change ftp directory?? briansaysword Linux - Software 5 10-22-2006 11:44 PM
FTP Change Directory Permissions rubbercash Linux - Networking 5 07-29-2004 04:54 PM
Can not change directory when ftp tradewind Linux - Newbie 2 06-09-2004 05:03 AM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration