View previous topic :: View next topic |
Author |
Message |
Major Apprentice
Joined: 27 Feb 2004 Posts: 198 Location: Sherbrooke, Qc, Canada
|
Posted: Thu Mar 18, 2004 8:50 am Post subject: |
|
|
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 |
|
|
itatabitovski n00b
Joined: 16 Oct 2003 Posts: 48
|
Posted: Thu Mar 18, 2004 11:41 am Post subject: |
|
|
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 |
|
|
letoff Apprentice
Joined: 04 Mar 2004 Posts: 163 Location: root in Paris, windsurfer in Brest
|
Posted: Thu Mar 18, 2004 4:48 pm Post subject: |
|
|
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 |
|
|
Major Apprentice
Joined: 27 Feb 2004 Posts: 198 Location: Sherbrooke, Qc, Canada
|
Posted: Thu Mar 18, 2004 6:55 pm Post subject: |
|
|
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 |
|
|
adammc Apprentice
Joined: 07 Oct 2003 Posts: 230 Location: Europe
|
Posted: Thu Mar 18, 2004 7:08 pm Post subject: |
|
|
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 |
|
|
Major Apprentice
Joined: 27 Feb 2004 Posts: 198 Location: Sherbrooke, Qc, Canada
|
Posted: Thu Mar 18, 2004 7:20 pm Post subject: |
|
|
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 |
|
|
adammc Apprentice
Joined: 07 Oct 2003 Posts: 230 Location: Europe
|
Posted: Thu Mar 18, 2004 7:49 pm Post subject: |
|
|
it's running according to rc, but what does:
say about it? _________________ There'd better be fudge when I get home... |
|
Back to top |
|
|
Major Apprentice
Joined: 27 Feb 2004 Posts: 198 Location: Sherbrooke, Qc, Canada
|
Posted: Thu Mar 18, 2004 7:52 pm Post subject: |
|
|
nothing at all ..... ???? |
|
Back to top |
|
|
adammc Apprentice
Joined: 07 Oct 2003 Posts: 230 Location: Europe
|
Posted: Thu Mar 18, 2004 7:53 pm Post subject: |
|
|
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 |
|
|
Major Apprentice
Joined: 27 Feb 2004 Posts: 198 Location: Sherbrooke, Qc, Canada
|
Posted: Thu Mar 18, 2004 7:58 pm Post subject: |
|
|
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
|
|
Back to top |
|
|
itatabitovski n00b
Joined: 16 Oct 2003 Posts: 48
|
Posted: Fri Mar 19, 2004 6:32 pm Post subject: |
|
|
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 |
|
|
|