LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can't change directory in ftp service (http://www.linuxquestions.org/questions/linux-newbie-8/cant-change-directory-in-ftp-service-933414/)

AKB48 03-08-2012 07:34 AM

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

devUnix 03-08-2012 08:25 AM

You might not have sufficient permission to cd to that directory.

jefro 03-08-2012 04:08 PM

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.

AKB48 03-09-2012 12:06 AM

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

devilboy09 03-09-2012 02:21 AM

Quote:

Originally Posted by AKB48 (Post 4622454)
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.


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