LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-24-2002, 01:08 PM   #1
Profector
LQ Newbie
 
Registered: Oct 2002
Posts: 4

Rep: Reputation: 0
ProFTPD Question


Ok fellas, I'm a little baffled on this one, seems to make no sense to me and I've tried messing with this for the last few days.

Basically, I have an admin user that can go in and out of all directries within the /home directory.

I have a configuration like so:

<virtual host 1.1.1.1>
defaultroot ~
<directory /home/ftp>
<limit READ WRITE DIRS>
AllowGroup ftp
</limit>
</directory>
<directory /home/test>
<limit READ WRITE DIRS>
AllowGroup ftp
</limit>
</directory>
</virtualhost>
I made the admin's home /home and apart of group ftp, but when I login with admin and enter the directory /home/ftp or /home/test I can edit filenames/stor/retr with no trouble, BUT when I enter say /home/ftp/folder, most of my permissions are stripped. When I login to those directories with say user test that user has permissions to /home/test/folder. I am clueless as to why user admin does not retain these permissions. DOES ANYONE KNOW HOW TO FIX THIS???

Thanks.
 
Old 10-24-2002, 01:34 PM   #2
JimKyle
Member
 
Registered: Dec 2001
Location: Oklahoma City, OK, USA
Distribution: Xubuntu 16.04 LTS
Posts: 207
Blog Entries: 1

Rep: Reputation: 38
Try adding "*" to your directory line so that it will apply not to just the ftp directory but to all subdirectories. If that doesn't do it, try "/*" instead but that may not allow access to the ftp directory itself.
 
Old 10-24-2002, 05:08 PM   #3
Profector
LQ Newbie
 
Registered: Oct 2002
Posts: 4

Original Poster
Rep: Reputation: 0
Jim, I've messed with this for almost a week now, of course I've tried <directory /home/ftp*> and <directory /home/ftp*> .

BOTH do not work whatsoever. It is very strange and I don't understand why the permissions are not transfered to sub directories.. maybe its a bug. Does anyone have a clue as to how to set up the same permissions for multiple users on sub directories????

I've pretty much given up...
 
Old 10-24-2002, 05:32 PM   #4
JimKyle
Member
 
Registered: Dec 2001
Location: Oklahoma City, OK, USA
Distribution: Xubuntu 16.04 LTS
Posts: 207
Blog Entries: 1

Rep: Reputation: 38
Sorry to have suggested something obvious!

Here's my proftpd.conf file, edited slightly to remove comments:

ServerName "FTP to Jim Kyle"
ServerType standalone
DefaultServer on
DefaultTransferMode binary
Port 21
Umask 011
MaxInstances 30
User nobody
Group nobody
ExtendedLog /var/log/ftp.log
AllowStoreRestart on

<Directory /*>
AllowOverwrite on
</Directory>

PassivePorts 51200 51299

<Anonymous ~ftp>
User ftp
Group ftp
UserAlias anonymous ftp
MaxClients 10
RequireValidShell off
AnonRequirePassword off
DisplayLogin welcome.msg

<Directory incoming>
<Limit STOR CWD CDUP PWD SIZE REST>
AllowAll
</Limit>
<Limit READ DIRS DELE MKD>
DenyAll
</Limit>
AllowOverwrite on
</Directory>

<Directory public>
<Limit RETR CWD CDUP PWD DIRS>
AllowAll
</Limit>
<Limit WRITE>
DenyAll
</Limit>
</Directory>

</Anonymous>

It took a while to get it all together, but it's been working the way I want it to for almost a year now so that my clients can send me large databases (up to a gigabyte at times) without them being exposed to public view, while anyone can browse the public directory. You can see it at ftp://jimkyle.dns2go.com/ and feel free to browse.
 
  


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
ProFTPD Question.. sspiro Linux - Software 1 04-03-2005 06:27 PM
proftpd question Vampyric Linux - Software 2 09-26-2003 12:07 AM
proftpd question kinkybullet Linux - Newbie 14 07-17-2003 09:09 AM
Question about proftpd Drogo Linux - Software 2 10-10-2002 09:28 PM
ProFTPd Question Nyc0n Linux - General 0 10-05-2001 08:48 AM


All times are GMT -5. The time now is 07:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration