Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
proftpd config file
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
eltech
Guru
Guru


Joined: 05 Nov 2002
Posts: 582
Location: New York

PostPosted: Thu May 06, 2004 7:54 pm    Post subject: proftpd config file Reply with quote

I have seen a few here on the forums, but i'd like to see a config file that allows multiple users: ex. user1, user2, blah .. blah access to one directory ..

not all users are users on box, most actually arent .. ..

i am coming from glftpd .. and because ipcop has caused glftpd to function improperly, i have to look at a new ftpd .. i installed proftpd, its works locally as i need, but the configuration is confusing me ...

maybe a look at a few files will help me understand as glftpd's config is way different ..

thanks ..
Back to top
View user's profile Send private message
Thoreau
n00b
n00b


Joined: 29 Apr 2004
Posts: 38

PostPosted: Fri May 07, 2004 2:23 am    Post subject: Reply with quote

so you want to create ftp accounts, but not give them accounts on your box? I'm just trying to get a feel for the problem
Back to top
View user's profile Send private message
eltech
Guru
Guru


Joined: 05 Nov 2002
Posts: 582
Location: New York

PostPosted: Fri May 07, 2004 2:56 am    Post subject: Reply with quote

Thoreau wrote:
so you want to create ftp accounts, but not give them accounts on your box? I'm just trying to get a feel for the problem
Well .. not really a problem .. just curious ..

basically .. why should a ftp user have an account on the box? so yea i want to create ftp accounts but not give them accounts on the box...

i dont want any anon access .. and its basically just that .. a ftp .. multiple users can log in and download files .. so ...

joe can log in with his pass
bob can log in with his pass
eltech can log in with his pass ..

none of them are users on the box ..
and they all acess the ftp to download files ..
Back to top
View user's profile Send private message
eltech
Guru
Guru


Joined: 05 Nov 2002
Posts: 582
Location: New York

PostPosted: Fri May 07, 2004 4:40 am    Post subject: Reply with quote

figured out alot .. but a few things ..

- How can i set limits for what user joe and bob can do in /home/ftp

I would like that only joe can upload or download, but bob can do neither
Back to top
View user's profile Send private message
eltech
Guru
Guru


Joined: 05 Nov 2002
Posts: 582
Location: New York

PostPosted: Fri May 07, 2004 4:50 am    Post subject: Reply with quote

ok .. figured that out .. here is what my config looks like so far ..

Code:

ServerIdent on "Please enter your username and password. Anonymous logins are disabled.
ServerName EXAMPLE
ServerType standalone
ServerAdmin Private@whatever.net
DeferWelcome on

#ShowDotFiles off
ShowSymlinks on
MultilineRFC2228 on
DefaultServer on
AllowOverwrite on
MaxClients 10
MaxClientsPerHost 1 "You are already logged on once."
RequireValidShell off
DefaultChdir /home/ftp
DefaultRoot /home/ftp
Umask 022

TimeoutNoTransfer 1800
TimeoutStalled 100
TimeoutLogin 60
TimeoutIdle 1200

RootLogin off
UseFtpUsers off

Port 2021
MaxInstances 30

ExtendedLog /var/log/ftp.log auth,all

ListOptions "-l"

DenyFilter \*.*/

# Set the user and group that the server normally runs at.
User proftpd
Group proftpd

# Lock users into the FTP-ROOT directory
DefaultRoot ~

## PUBLIC DIRECTORY /home/ftp ##
<Directory /home/ftp>
HideNoAccess on
<Limit READ WRITE>
DenyAll
AllowUser lenny
</Limit>
AllowAll
</Directory>


while this all works ..
seems like i cant FXP .. anyway to make that work?
EDIT: AllowForeignAddress on That fixed it up .. its not like glftpd and its unfortunate that i have to use proftpd, but cant figure out that glftpd problem .. oh well .. thanks all ..
Back to top
View user's profile Send private message
To
Veteran
Veteran


Joined: 12 Apr 2003
Posts: 1145
Location: Coimbra, Portugal

PostPosted: Fri May 07, 2004 9:37 am    Post subject: Reply with quote

You can allways give an account to the users and don't give them a shell, that way can only connect via ftp for example. On your passwd:
Code:
user-example:x:1000:100::/home/user-example:/bin/bash

into:
Code:
user-example:x:1000:100::/home/user-example:/bin/false



_________________

------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------
Back to top
View user's profile Send private message
Thoreau
n00b
n00b


Joined: 29 Apr 2004
Posts: 38

PostPosted: Fri May 07, 2004 1:06 pm    Post subject: Reply with quote

To wrote:
You can allways give an account to the users and don't give them a shell, that way can only connect via ftp for example. On your passwd:
Code:
user-example:x:1000:100::/home/user-example:/bin/bash

into:
Code:
user-example:x:1000:100::/home/user-example:/bin/false




yeah that's how i did mine, i know my users, they're friends of mine that just need a place to put that *cough* data *cough*,
Back to top
View user's profile Send private message
eltech
Guru
Guru


Joined: 05 Nov 2002
Posts: 582
Location: New York

PostPosted: Fri May 07, 2004 10:11 pm    Post subject: Reply with quote

Thanks.. kinda figured it out all .. just VERY different then glftpd and i dont like it at all, but i dont have a choice.. the sfv checker is a problem .. ack .. but here is another question ..

if i have a directory :/home/ftp
set to DenyAll
but i would like the directory: /home/ftp/access
to be read by a certain user, or all .. it doesnt matter
Back to top
View user's profile Send private message
Thoreau
n00b
n00b


Joined: 29 Apr 2004
Posts: 38

PostPosted: Tue May 11, 2004 2:04 pm    Post subject: Reply with quote

wouldn't the users need access to the main folder (in this case /home/ftp) inorder to gain access to /home/ftp/access? real world model: if i gave some one my room key, but not my front door key, they couldn't get to my room, with out my front door key...yeah?
Back to top
View user's profile Send private message
eltech
Guru
Guru


Joined: 05 Nov 2002
Posts: 582
Location: New York

PostPosted: Tue May 11, 2004 3:30 pm    Post subject: Reply with quote

Thoreau wrote:
wouldn't the users need access to the main folder (in this case /home/ftp) inorder to gain access to /home/ftp/access? real world model: if i gave some one my room key, but not my front door key, they couldn't get to my room, with out my front door key...yeah?
guess you dont get it ..

red what i said ..

Quote:
if i have a directory :/home/ftp
set to DenyAll
but i would like the directory: /home/ftp/access
to be read by a certain user, or all .. it doesnt matter


its just that .. i would like no one to have no download abilities in /home/ftp .. but would like them to have the ability to download from /home/ftp/access .. dunno whats so hard to understand ..

its not an abnormal setup as in glftpd its simple, but proftpd is very different .. and i have not seen any example that shows it.. maybe its not possible?

maybe by setting up a vhost? and just set it to the same internal ip.. and specify the directory in question .. ??? dunno .. :?
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