Discussion Locked

Pub Folder in on FTP server!

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

HI there,

How do I place files in the pub folder
for anonymous users? I have an anonymous user setup in the system with no password,
so the user is automatically logged on.
Also is there anyway to hide the rest of
the folders otherthan Pub?

Thanks

JamieT

7 replies

by jets

This depends on your distro, and what FTP server. My assumption is you are running redhat (who isn't anymore *sigh*) take a look in /home/ftp or /home/ftpd most likely this is where the root directory for the anonymous ftp service is located. Itsnot reccomended you hide or get rid of the bin directory, however, to hide files, just name them in a dot format .file -- however this isn't much of a biggie, its normal for all those directories to be there.

by claudewatson

The best way is to put the 'anonymous' user in a group by itself. Make the home directory for that user the 'pub' directory. Go to the parent directory for pub and remove the execute permission for others. You can leave the owner and group permissions alone. Without execute permission the user cannot see anything in the directory. Do make sure the pub directory permissions include execute for the anonymous user though.

by m.mayberry

As the other answers here point out, anonymous ftp is usually stored under /home/ftp or /home/ftpd. However, I think that it is important to say that you do not want to hide the other folders. In the case of anonymous ftp, you do not want these users to have access to your entire filesystem for security reasons. To prevent this, ftp will move the root filesystem from / to /home/ftp. The other folders (like bin, lib, etc.) are there so that anonymous ftp users can have access to commands like cd, ls, get, etc. Moving or hiding these folders *may* break these commands, as well as some other functions.

Mark

This discussion is closed to new replies.