Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
what FTP server should i use?
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Major
Apprentice
Apprentice


Joined: 27 Feb 2004
Posts: 198
Location: Sherbrooke, Qc, Canada

PostPosted: Thu Mar 18, 2004 8:50 am    Post subject: Reply with quote

ok Im trying to start the pure-ftpd deamon
Code:
 /etc/init.d/pure-ftpd start
/sbin/runscript.sh: line 49: -j: command not found
 * Starting Pure-FTPd...     


and the /etc/conf.d/pure-ftpd looks like this

Code:
 # Config file for /etc/init.d/pure-ftpd
##Comment variables out to disable its features, or change the values in it... ##
 
## This variable must be uncommented in order for the server to start ##
IS_CONFIGURED="yes"
 
## FTP Server,Port (separated by comma) ##
## If you prefer host names over IP addresses, it's your choice :
## SERVER="-S ftp.rtchat.com,21"
## IPv6 addresses are supported.
SERVER="-S 192.168.1.3,21"
 
## Number of simultaneous connections in total, and per ip ##
MAX_CONN="-c 10"
MAX_CONN_IP="-C 5"
 
## Start daemonized in background ##
DAEMON="-B"
 
## Don't allow uploads if the partition is more full then this var ##
DISK_FULL="-k 90%"
 
## If your FTP server is behind a NAT box, uncomment this ##
#USE_NAT="-N"
 
## Authentication (others are 'pam', ...)##
## Further infos in the README file.
AUTH="-l unix"
 
## Change the maximum idle time. (in minutes. default 15)
#TIMEOUT="-I <timeout>'"
 
## Use that facility for syslog logging. It defaults to 'ftp'
## Logging can be disabled with '-f none' .
#LOG="-f facility"
 
## Misc. Others ##
MISC_OTHER="-A -x -j -E -P 192.168.1.3"
 
#
# Use these inside $MISC_OTHER
# More can be found on "http://pureftpd.sourceforge.net/README"
#
# -A [ chroot() everyone, but root ]
# -e [ Only allow anonymous users ]
# -E [ Only allow authenticated users. Anonymous logins are prohibited. ]
# -i [ Disallow upload for anonymous users, whatever directory perms are ]
 -j [ If the home directory of a user doesn't exist, auto-create it ]
# -M [ Allow anonymous users to create directories. ]
# -R [ Disallow users (even non-anonymous ones) usage of the CHMOD command ]
# -x [ Authenticated users can read/write files beginning with a dot ('.')
#       Anonymous users can't, for security reasons ]
# -X [ Users can't write/read files and directories starting with a dot ('.') ]
# -D [ List files beginning with a dot ('.') even when the client doesn't
#      append the '-a' option to the list command. A workaround for badly
#      configured FTP clients. ]
# -G [ Disallow renaming. ]
# -d [ Send various debugging messages to the syslog. ONLY for DEBUG ]
# -F <fortune file> [ Display a fortune cookie on login. Check the README file ]# -H [ By default, fully-qualified host names are logged. The '-H' flag avoids host names resolution. ]



can someone help me with this ?
Major
Back to top
View user's profile Send private message
itatabitovski
n00b
n00b


Joined: 16 Oct 2003
Posts: 48

PostPosted: Thu Mar 18, 2004 11:41 am    Post subject: Reply with quote

Major wrote:
ok Im trying to start the pure-ftpd deamon

Code:
 /etc/init.d/pure-ftpd start
/sbin/runscript.sh: line 49: -j: command not found
 * Starting Pure-FTPd...     


and the /etc/conf.d/pure-ftpd looks like this

Code:
 # -A [ chroot() everyone, but root ]
# -e [ Only allow anonymous users ]
# -E [ Only allow authenticated users. Anonymous logins are prohibited. ]
# -i [ Disallow upload for anonymous users, whatever directory perms are ]
 -j [ If the home directory of a user doesn't exist, auto-create it ]
# -M [ Allow anonymous users to create directories. ]
# -R [ Disallow users (even non-anonymous ones) usage of the CHMOD command ]
# -x [ Authenticated users can read/write files beginning with a dot ('.')
#       Anonymous users can't, for security reasons ]
# -X [ Users can't write/read files and directories starting with a dot ('.') ]
# -D [ List files beginning with a dot ('.') even when the client doesn't



i think you should add "#" in front of

Code:

-j [ If the home directory of a user doesn't exist, auto-create it ]
Back to top
View user's profile Send private message
letoff
Apprentice
Apprentice


Joined: 04 Mar 2004
Posts: 163
Location: root in Paris, windsurfer in Brest

PostPosted: Thu Mar 18, 2004 4:48 pm    Post subject: Reply with quote

itatabitovski wrote:
for virtual users

-l puredb:/path to file.


Yep, here is what I have in /etc/conf/pure-ftpd:

## Authentication (others are 'pam', ...)##
## Further infos in the README file.
AUTH="-l puredb:/etc/pureftpd.pdb"

And don't forget to add -m when using 'pure-pw useradd' to automatically update pureftpd.pdb
_________________
Gentoo won't be suitable for server's use until GLEP 19 is alive.
Back to top
View user's profile Send private message
Major
Apprentice
Apprentice


Joined: 27 Feb 2004
Posts: 198
Location: Sherbrooke, Qc, Canada

PostPosted: Thu Mar 18, 2004 6:55 pm    Post subject: Reply with quote

Code:
 # /etc/init.d/pure-ftpd stop
 * Stopping Pure-FTPd...
No process in pidfile `/var/run/pure-ftpd.pid' found running; none kille  [ !! ]


this is the error when Im trying to stop the deamon ?
I remove the --quiet to see what was the error but this does not help me much

the way it as been start is via rc which I added

Code:
 rc-update add pure-ftpd default


any clue over this ?

Major
Back to top
View user's profile Send private message
adammc
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 230
Location: Europe

PostPosted: Thu Mar 18, 2004 7:08 pm    Post subject: Reply with quote

are you sure it's actually running? if it's not, run /etc/init.d/pure-ftpd zap, then start it again
_________________
There'd better be fudge when I get home...
Back to top
View user's profile Send private message
Major
Apprentice
Apprentice


Joined: 27 Feb 2004
Posts: 198
Location: Sherbrooke, Qc, Canada

PostPosted: Thu Mar 18, 2004 7:20 pm    Post subject: Reply with quote

yes it is running proof :

Code:
 # /etc/init.d/pure-ftpd status
 * status:  started


Code:
  # rc-status | grep pure-ftpd
  pure-ftpd                                                            [ started ]
Back to top
View user's profile Send private message
adammc
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 230
Location: Europe

PostPosted: Thu Mar 18, 2004 7:49 pm    Post subject: Reply with quote

it's running according to rc, but what does:
Code:
pidof pure-ftpd

say about it?
_________________
There'd better be fudge when I get home...
Back to top
View user's profile Send private message
Major
Apprentice
Apprentice


Joined: 27 Feb 2004
Posts: 198
Location: Sherbrooke, Qc, Canada

PostPosted: Thu Mar 18, 2004 7:52 pm    Post subject: Reply with quote

nothing at all ..... ????
Back to top
View user's profile Send private message
adammc
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 230
Location: Europe

PostPosted: Thu Mar 18, 2004 7:53 pm    Post subject: Reply with quote

in which case it's not actually running, so zap it as I said before and start it again
_________________
There'd better be fudge when I get home...
Back to top
View user's profile Send private message
Major
Apprentice
Apprentice


Joined: 27 Feb 2004
Posts: 198
Location: Sherbrooke, Qc, Canada

PostPosted: Thu Mar 18, 2004 7:58 pm    Post subject: Reply with quote

I did the zap thing

Code:
 /etc/init.d/pure-ftpd zap
 * Manually resetting pure-ftpd to stopped state.

Code:
# /etc/init.d/pure-ftpd start
 * Starting Pure-FTPd...                                                           [ ok ]


but still
Code:
# pidof pure-ftpd
 
Back to top
View user's profile Send private message
itatabitovski
n00b
n00b


Joined: 16 Oct 2003
Posts: 48

PostPosted: Fri Mar 19, 2004 6:32 pm    Post subject: Reply with quote

a question about ProFTPd.. If i emerge it from the portage, will it emerge with mod_ratio? if not what should i do to make that work ?
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
Goto page Previous  1, 2
Page 2 of 2

 
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