LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-28-2010, 08:01 AM   #1
kevf1
LQ Newbie
 
Registered: Jul 2010
Posts: 1

Rep: Reputation: 0
proftpd and linux permissiosn


hi everyone.. my head hurts but i'm sure i'm missing something.. ok setting up a proftpd server so far it is working as an ftp server and i can upload and download as a user but.. i want to make some chnages and just can't see how i can do it...

ok here goes..

i would like an administartor account that can get into several directories

example

/ftproot/pubftp ------ admin account needs access to this and everyhting below

/ftp/root/pubftp/client1 ----- client 1 needs access to this folder as read and write admin need saccess to this folder as read and write

/ftproot/pubftp/clien2 client 2 needs access on a read only basis but admin need read and write access.

so far i have done this in the proftpd.conf file

<Directory /ftproot/pubftp
HideNoAccess on

<Limit DIRS READ WRITE >
AllowUser admin
DenyALL
</limit>


</Directory>

<Directory /ftproot/pubftp/client1>
HideNoAccess on
<Limit DIR READ WRITE>
AllowUser client1
DenyAll
</Limit>

<Limit DIRS READ WRITE >
AllowUser admin
DenyALL
</limit>


</Directory>

<Directory /ftproot/pubftp/client2>
HideNoAccess on
<Limit DIR READ>
AllowUser client2
DenyAll
</Limit>

<Limit DIRS READ WRITE >
AllowUser admin
DenyALL
</limit>


</Directory>


But no matter what i do i can't them to work properly... what am i missing.

thanks kev
 
Old 09-23-2010, 11:03 AM   #2
kostya
Member
 
Registered: Mar 2010
Location: Moscow, Russia
Distribution: Ubuntu Studio, antix(mepis), Fedora, FreeBSD
Posts: 174
Blog Entries: 5

Rep: Reputation: 18
Quote:
Originally Posted by kevf1 View Post
<Directory /ftproot/pubftp/client1>
HideNoAccess on
<Limit DIR READ WRITE>
AllowUser client1
DenyAll
</Limit>

<Limit DIRS READ WRITE >
AllowUser admin
DenyALL
</limit>


</Directory>
Is it OK you have the section <Limit DIRS READ WRITE > mentioned twice here?? Oh, and how about the space in "WRITE >"? I mean, some of those programs cannot do the guessing and take the syntax quite literally; so it may get confused as to which of your duplicate <Limit> directives it should obey.

I guess, you can do the above directive like this:
<Limit DIR READ WRITE>
AllowUser client1
AllowUser admin
DenyAll
</Limit>
At least, this is the recommended way of doing it...

Meantime I must admit, that I'm myself having problems with ProFTPd: in spite of my <Limit> stuff I still can't achieve my goal, which is to allow clients to STORE to the upload directory, but deny DELE. I just can't make it out!
I'm using a special account "ftpuser" for the upload, but it result in the clients' being able both to write AND delete ANY files in /home/ftpuser, despite all my futile <Limit> directives to that <Directory ~ftpuser>.
I'm at my wits' end...
 
  


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
proftpd: proftpd startup failed tumana Linux - Newbie 14 06-17-2012 11:06 AM
ProFTPd - Change proftpd.conf location ('not found' error) varney Linux - Newbie 1 02-22-2008 01:51 AM
[PROFTPD] Ldap and proftpd authentication wesleywest Linux - Software 1 02-22-2005 09:51 AM
Disabling the chroot in proftpd and enabling root logins on ssh/proftpd jon_k Linux - Software 1 06-16-2004 10:27 AM
proftpd --- need help? could someone post a working proftpd.conf i could look at ZooRoPa Linux - Networking 1 04-02-2003 06:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:28 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