Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Any proftpd gurus around?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Tsuki
n00b
n00b


Joined: 27 May 2004
Posts: 42
Location: Southampton, England

PostPosted: Mon Oct 18, 2004 1:10 pm    Post subject: Any proftpd gurus around? Reply with quote

I've been trying to set up an FTP server using proftpd, without much success. According to the sample config files, I think the following should give me what I want - anonymous read access to /mnt/documents and the ability to log in as "upload" to get read/write access to /home/tsuki/incoming. However, whatever I try, I just get a blank directory.

Code:
ServerName          "TsukiNet:Suzaku FTP Server"
ServerType          standalone
DefaultServer       on
RequireValidShell   off
AuthPAM             off
AuthPAMConfig       ftp

Port            21

Umask            022

MaxInstances         30

User            nobody
Group            nobody

<Directory />
  AllowOverwrite      on
</Directory>

# A basic anonymous configuration, no upload directories.
<Anonymous /mnt/documents>
  User            ftp
  Group            ftp
  UserAlias         anonymous ftp

  MaxClients         10

  DisplayLogin         welcome.msg
  DisplayFirstChdir      .message

  <Limit WRITE>
    DenyAll
  </Limit>
  <Limit READ DIRS>
    IgnoreHidden         on
  </Limit>
</Anonymous>

<Anonymous /home/tsuki/incoming>
  User            ftp
  Group            ftp
  UserAlias         upload ftp

  <Limit READ WRITE STOR MKD RMD XMKD XRMD>
    AllowAll
    IgnoreHidden on
  </Limit>
</Anonymous>


Thanks in advance for any help! (I thought I'd ask here, as the proftpd forums aren't very active...)
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Mon Oct 18, 2004 1:28 pm    Post subject: Reply with quote

You can only have one distinct anonymous directory.
When people connect as "upload" it's hardly anonyous anymore, is it ?
Scrap the anonymous part and make it a normal directory - that should work.

But delete the ftp useralias for the second dir, since you can't have that, can you ?

Re-think in order here ;-)
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Tsuki
n00b
n00b


Joined: 27 May 2004
Posts: 42
Location: Southampton, England

PostPosted: Mon Oct 18, 2004 1:57 pm    Post subject: Reply with quote

I've tried changing the second set of Anonymous tags to Directory, and removed the User, Group and UserAlias lines (it wouldn't let me nest User and Group inside Directory).

Anonymous and "ftp" just get a blank directory, "upload" can now see the contents of /home/tsuki/incoming - and everything else on the system, although ~/incoming is the only place they can write to.

Am I missing something obvious here? I guess I just haven't properly understood how the proftpd config file syntax works yet...

I forgot to mention last time, user "ftp" has a home directory of "/mnt/documents" and user "upload" has a home directory of "/home/tsuki/incoming". /home/tsuki/incoming has r/w/x access for everyone, /mnt/documents and all its contents have read access for the "ftp" user.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum