Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-11-2006, 01:30 AM
|
#1
|
Member
Registered: Apr 2005
Distribution: FC5 & Slack 10.2
Posts: 50
Rep:
|
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.
|
|
|
08-11-2006, 08:13 PM
|
#2
|
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094
|
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).
|
|
|
|
08-11-2006, 08:16 PM
|
#3
|
LQ Newbie
Registered: May 2006
Location: Germany, BS
Distribution: Debian Kernel 2.6.15, Kubuntu Dapper
Posts: 24
Rep:
|
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.
|
|
|
12-17-2013, 03:35 PM
|
#4
|
LQ Newbie
Registered: Dec 2013
Posts: 11
Rep:
|
Quote:
Originally Posted by exman
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.
|
|
|
All times are GMT -5. The time now is 04:19 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|