Click to See Complete Forum and Search --> : FTP - Cannot view files or directories


mythicwave
08-31-2002, 03:49 PM
I'm using RedHat 7.0. When I FTP to my server, I cannot see files or directories when I log on as anything other than anonymous. For example, when I log on as anonymous, I can see all files and directories in /var/ftp. When I log on as myself (brian), even though the system allows my to logon and places me in my home directory /home/brian, I can't see any directory or file listings even though I own them. I've made sure all priveleges and groups were set up correctly.

I'm running another system using RedHat 7.1 and it works fine, but I can't see any difference in configuration between this and my 7.0 server.

Thanks,

Brian

cowanrl
08-31-2002, 06:42 PM
Not sure if this will help or not. Take a look in /etc/ftpaccess and see if you have lines like this:

# Chroot all users to their home directory by default
# (comment this out if you don't want to chroot most of your users)
guestuser *
# If you wish to allow user1 and user2 to access other
# directories, use the line below:
# realuser user1,user2

Just unremark the line that starts with realuser and put your username in place of user1,user2. That will give you access to all files on the machine you have permissions to.

This is from a Red Hat 7.3 machine. Not sure if it was in 7.1 or not.

mythicwave
08-31-2002, 07:31 PM
I finally found out what it was. Somehow the permissions of the ls command file were changed so that I didn't have execute access. I changed it and it worked fine.

Brian