LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-11-2006, 01:30 AM   #1
anibis
Member
 
Registered: Apr 2005
Distribution: FC5 & Slack 10.2
Posts: 50

Rep: Reputation: 15
change default directory proftpd


I was just wondering if there is a way to change the default /home/username directory to a different one in proftpd, and if there is a way to hide the hidden dirs (the dirs starting with .)

Thanks in advance.
 
Old 08-11-2006, 08:13 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I believe you just change the DefaultRoot ~ (the ~ means /home/username, so you could do ~/directory instead) to DefaultRoot /some/directory.

As for hiding directories, this is from the proftpd FAQ
Quote:
8. I want to prevent users from accessing a hidden directory

You can either change the permissions on the directory to prevent the anonymous FTP user from accessing it, or if you want to make it appear completely invisible (as though there is no such directory), use the IgnoreHidden directive inside a <Limit> block for one or more commands that you want to completely ignore the hidden directory entries (ignore = act as if the directory entry does not exist).
 
Old 08-11-2006, 08:16 PM   #3
exman
LQ Newbie
 
Registered: May 2006
Location: Germany, BS
Distribution: Debian Kernel 2.6.15, Kubuntu Dapper
Posts: 24

Rep: Reputation: 15
Hi,
you can change the starting directory for a user with:
DefaultChdir <path> <usersgroup>
Chroot the user with:
DefaultRoot <path> <usersgroup> (this Ive tested)

Hide hidden files with:
<Directory home>
HideFiles (\.*)$
<Limit DIRS>
IgnoreHidden on
</Limit>
</Directory>

This one is not tested, Ive already installed/configured my homeserver about 4 hours now and so Im fed up
Further information: http://www.proftpd.org/docs/directiv...tion_full.html

EDIT: forget that thing with tzhe hidden files, it didnt work. The regexp must be wrong.

exman

Last edited by exman; 08-12-2006 at 05:30 AM.
 
Old 12-17-2013, 03:35 PM   #4
imcool
LQ Newbie
 
Registered: Dec 2013
Posts: 11

Rep: Reputation: Disabled
Quote:
Originally Posted by exman View Post
Hi,
you can change the starting directory for a user with:
DefaultChdir <path> <usersgroup>
Chroot the user with:
DefaultRoot <path> <usersgroup> (this Ive tested)

Hide hidden files with:
<Directory home>
HideFiles (\.*)$
<Limit DIRS>
IgnoreHidden on
</Limit>
</Directory>

This one is not tested, Ive already installed/configured my homeserver about 4 hours now and so Im fed up
Further information: http://www.proftpd.org/docs/directiv...tion_full.html

EDIT: forget that thing with tzhe hidden files, it didnt work. The regexp must be wrong.

exman
Thanks a Lot dear.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
acidrip, change default output directory shanenin Linux - Software 3 11-16-2010 12:42 AM
Change default directory in Apache2 walterbyrd Linux - Software 2 07-19-2006 12:47 PM
How Do I Change The Default Directory For Apache? Tear Syden Linux - Newbie 4 03-21-2006 11:16 PM
proftp default directory how to change??? bgriesi Mandriva 3 12-29-2004 01:13 PM
change default save directory canyon289 Linux - Software 1 10-24-2004 01:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:19 AM.

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