Solved

Proftpd configuration question

Posted on 2006-11-06
3
320 Views
Last Modified: 2013-12-16
Hello all,

I have setup Proftpd following the instructions provided in the following thread:

http://www.experts-exchange.com/Manager/Operating_Systems/Linux/Q_20643880.html

This works great, but being a newbie to Linux, I was wondering how I would accomplish a couple of things using the configuration given:

1. I would like users to be able to create subdirectories in their home folders, but the config given doesn't seem to let them do that. How would I grant permissions to do so?

2. Given that the permissions are not managed within Linux, how would I setup another user so that they could access and existing proftpd user's home folder in read only mode?

If someone could help me out with this, I'd appreciate it!!

Thanks,
Kang
0
Comment
Question by:kangsoh
3 Comments
 
LVL 8

Accepted Solution

by:
PatG042800 earned 350 total points
ID: 17918329
1.  In the .htaccess file for the given folder you should have something along the following

<Limit CWD STOR RETR MKD RNFR RNTO>
 AllowAll
</Limit>
<Limit  DELE RMD>
  DenyAll
</Limit>

The details of each of the limit directives can be found here:

http://www.xdata.org/doc/proftpd.html#Limit

Note that the .htaccess file is normally hidden so you will have to do  #> ls -la to see it in a terminal or have "Show Hidden Files" option enabled in an x windows file manager.

Also from the link given be aware of the following:

"While limits can be used to restrict a command on a certain directory, they cannot be used to override the file permissions inherent to the base operating/file system."

2. To allow only certain users access to certain limits you need to use the AllowUser limit directive. For example the following would allow access to the folder for everyone but limit the other directives to "User1".

<Limit CWD RETR>
 AllowAll
</Limit>
<Limit STOR  MKD DELE RMD>
   AllowUser User1
   DenyAll
</Limit>
<Limit RNFR RNTO>
  DenyAll
</Limit>

more here

http://www.proftpd.org/localsite/Userguide/linked/userguide.html
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now