ftp hiding files and folders
Following the instructions in FAQ I setup and ftp server on a machine running openbsd4.7.
Luckly it works, but I wonder about some files and folders like: .Xdefaults, .cshrc, .login, .mailrc, .profile and .ssh. My problem is that those files apear when browsing the server, is that normal to have those files shown? I checked this on some online ftp servers and I didn't see those files. The ls -al command in the /home/ftp shows: Quote:
|
try:
man ls and see what -a and -l options are |
Quote:
My question was about those files which appear when I browse the ftp server since I didn't see them on other online ftp servers. I want to know if is something wrong that those files are shown when somebody browse the server and if so, how can I remove them since they should be hidden since their names starts with . |
man chmod.
Set R&W to you only. Place the ftp access in another folder, not home. Create the folder. Code:
mkdir /ftp "Ftp is a service not a user." Emise Ria. |
Quote:
2. How can I place fto access in another folder, not home? Short comments: All those access rights and owners are set according to latest OpenBSD FAQ. The only difference is that in my situation appear those config files (the one starting with .) and I don't know if that is normal or not. All tutorials I've found use the same method: chroot ftp user to his home directory and allow access to that folder. A slighty tunning was to add another directory from the outside of the home directory, but even then, the root of the ftp server was the home directory of the ftp user. |
All times are GMT -5. The time now is 01:35 AM. |