LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 07-16-2010, 01:36 AM   #1
sasser
Member
 
Registered: Apr 2010
Location: Bucharest
Distribution: Slackware13.37, OpenBSD5.1, FreeBSD9.0
Posts: 40

Rep: Reputation: 0
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:
$ ls -al
total 36
dr-xr-xr-x 4 root ftp 512 Jul 16 09:34 .
drwxr-xr-x 5 root wheel 512 Jul 15 22:50 ..
-rw-r--r-- 1 ftp ftp 22 Jul 15 22:50 .Xdefaults
-rw-r--r-- 1 ftp ftp 773 Jul 15 22:50 .cshrc
-rw-r--r-- 1 ftp ftp 398 Jul 15 22:50 .login
-rw-r--r-- 1 ftp ftp 113 Jul 15 22:50 .mailrc
-rw-r--r-- 1 ftp ftp 218 Jul 15 22:50 .profile
drwx------ 2 ftp ftp 512 Jul 15 22:50 .ssh
dr-xr-xr-x 4 root ftp 512 Jul 15 23:03 pub
 
Old 07-16-2010, 06:21 AM   #2
rastafadud
LQ Newbie
 
Registered: Jan 2009
Distribution: slackware, knoppix, freebsd
Posts: 16

Rep: Reputation: 1
try:
man ls
and see what -a and -l options are
 
Old 07-16-2010, 09:25 AM   #3
sasser
Member
 
Registered: Apr 2010
Location: Bucharest
Distribution: Slackware13.37, OpenBSD5.1, FreeBSD9.0
Posts: 40

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rastafadud View Post
try:
man ls
and see what -a and -l options are
I know what those options means, I posted that result to see the files and their permissions.

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 .
 
Old 07-16-2010, 09:22 PM   #4
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
man chmod.
Set R&W to you only.
Place the ftp access in another folder, not home. Create the folder.
Code:
mkdir /ftp
chmod /ftp RO
fill in the values.

"Ftp is a service not a user." Emise Ria.
 
Old 07-19-2010, 02:11 AM   #5
sasser
Member
 
Registered: Apr 2010
Location: Bucharest
Distribution: Slackware13.37, OpenBSD5.1, FreeBSD9.0
Posts: 40

Original Poster
Rep: Reputation: 0
Quote:
Set R&W to you only.
Place the ftp access in another folder, not home.
1. "To you", means which user? Myself, root, ftp users?
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.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed to transfer list of files to FTP server, to different folders amazon Programming 1 06-26-2009 01:12 AM
FTP Server -- Hiding files after upload dnoy Linux - Newbie 3 05-05-2009 05:41 PM
Alternative to such good Flashfxp that can move the files/folders into the ftp ? frenchn00b Linux - Software 2 06-08-2008 10:45 PM
VSFTPD hiding folders crazy8 Linux - Software 1 09-20-2007 06:29 AM
How to add an FTP user who can just read and download the files and folders? yuzuohong Linux - General 1 02-15-2003 12:29 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration