LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-03-2006, 02:14 PM   #1
taigon
LQ Newbie
 
Registered: Mar 2006
Posts: 28

Rep: Reputation: 15
Unhappy ProFTPD won't start!


proftpd via webmin. I re-configured the server. Now i'm trying to start it. heheheh

Executing /etc/rc.d/init.d/proftpd start ..

Starting proftpd: - Fatal: ScoreboardFile: : unable to use '/var/run/proftpd.score': Operation not permitted on line 62 of '/etc/proftpd.conf'
[FAILED]


doesn't start either with service proftpd start.... assuming its the same problem, so I changed the score file to proftpd2.score in the config file. Same thing.

Executing /etc/rc.d/init.d/proftpd start ..

Starting proftpd: - Fatal: ScoreboardFile: : unable to use '/var/run/proftpd2.score': Operation not permitted on line 62 of '/etc/proftpd.conf'
[FAILED]

I tried this as well:

# rm -f /var/lock/subsys/proftpd
# rm -f /var/run/proftpd/proftpd.pid
# service proftpd start

same issue

tried re-installing proftpd via rpm but still the same issue.

someone please help me!
 
Old 03-03-2006, 03:15 PM   #2
hunterhunter
Member
 
Registered: Nov 2005
Posts: 90

Rep: Reputation: 15
Erase it

Just erase that line... don't really need it...
 
Old 03-04-2006, 11:54 AM   #3
taigon
LQ Newbie
 
Registered: Mar 2006
Posts: 28

Original Poster
Rep: Reputation: 15
ok that worked and now my ftp server is finally functioning again but now i'm having another issue which i was originally trying to resolve. I was able to access the directory /var/* and see all the folders and files with my login that is part of the group wheel. Now when I goto /var there is nothing at all listed. I did make some changes to the chmod but I used the -R flag and set all the files and folders in /var to 777. I don't know if that had something to do with it. But heres my proftpd.conf if it might help.

ServerName "DurhamNetwork.CA"
ServerIdent on "FTP Server ready."
ServerAdmin root@localhost
ServerType standalone
DefaultServer on
AccessGrantMsg "User %u logged in."
#DisplayConnect /etc/ftpissue
#DisplayLogin /etc/ftpmotd
#DisplayGoAway /etc/ftpgoaway
DeferWelcome off
MasqueradeAddress durhamnetwork.ca
# Use this to excude users from the chroot
DefaultRoot ~ !wheel

# Do not perform ident nor DNS lookups (hangs when the port is filtered)
IdentLookups off
UseReverseDNS off

AuthPAMConfig proftpd


# Port 21 is the standard FTP port.
Port 21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022

# Default to show dot files in directory listings
ListOptions "-a"

# See Configuration.html for these (here are the default values)
#MultilineRFC2228 off
#RootLogin off
#LoginPasswordPrompt on
#MaxLoginAttempts 3
#MaxClientsPerHost none
#AllowForeignAddress off # For FXP

# Allow to resume not only the downloads but the uploads too
AllowRetrieveRestart on
AllowStoreRestart on

# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 20

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


# Normally, we want users to do a few things.
<Global>
AllowOverwrite yes
<Limit ALL SITE_CHMOD>
AllowAll
</Limit>
</Global>

# Define the log formats
LogFormat default "%h %l %u %t "%r" %s %b"
LogFormat auth "%v [%P] %h %t "%r" %s"

# A basic anonymous configuration, with an upload directory.
<Anonymous ~ftp>
User ftp
Group ftp
AccessGrantMsg "Anonymous login ok, restrictions apply."
#
# # We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
#
# # Limit the maximum number of anonymous logins
MaxClients 2 "Sorry, max %m users -- try again later"
#
# # Put the user into /pub right after login
DefaultChdir /home/ftp
#
# # We want 'welcome.msg' displayed at login, '.message' displayed in
# # each newly chdired directory and tell users to read README* files.
# DisplayLogin /welcome.msg
# DisplayFirstChdir .message
# DisplayReadme README*
#
# # Some more cosmetic and not vital stuff
# DirFakeUser on ftp
# DirFakeGroup on ftp
#
# # Limit WRITE everywhere in the anonymous chroot
# <Limit WRITE SITE_CHMOD>
# DenyAll
# </Limit>
#
# # An upload directory that allows storing files but not retrieving
# # or creating directories.
<Directory /home/ftp/*>
AllowOverwrite no
<Limit READ>
DenyAll
</Limit>
#
<Limit STOR>
AllowAll
</Limit>
</Directory>
#
# # Don't write anonymous accesses to the system wtmp file (good idea!)
WtmpLog off
#
# # Logging for the anonymous transfers
# ExtendedLog /var/log/proftpd/access.log WRITE,READ default
# ExtendedLog /var/log/proftpd/auth.log AUTH auth
#
</Anonymous>

<Directory /var/*>
AllowOverwrite on

<Limit ALL>
AllowAll
</Limit>

<Limit CDUP CWD LIST MDTM NLST PWD RNFR STAT XCUP XCWD XPWD>
AllowAll
</Limit>

<Limit READ>
AllowAll
</Limit>

<Limit WRITE>
AllowAll
</Limit>
AllowAll
<Limit DIR>
AllowAll
</Limit>

</Directory>
 
Old 03-05-2006, 07:41 PM   #4
hunterhunter
Member
 
Registered: Nov 2005
Posts: 90

Rep: Reputation: 15
A LOT of that stuff is not required in your server I'd say. Try editing this server, and remove the !wheel after the DefaultRoot ~

Save this and edit it to suite your needs.
ServerName "FTP Server"
ServerType standalone
RootLogin off

MaxInstances 20
User nobody
Group nobody

<Global>
ExtendedLog /var/spool/syslog/proftpd/access.log WRITE, READ, write
ExtendedLog /var/spool/syslog/proftpd/auth.log
AllowForeignAddress on
#Paranoia logging level
#ExtendedLog /var/spool/syslog/proftpd/paranoid.log
</Global>

#Begin Virtual Host Settings
<VirtualHost "ENTER IP ADDRESS HERE!">
DeferWelcome on
DisplayLogin welcome.msg
ServerAdmin ftp.admin@blah.com
ServerName "My FTP Server"
TransferLog /var/xferlog/ftp.transfers
Umask 0007
MaxLoginAttempts 3
RequireValidShell no
DefaultRoot ~
AllowOverwrite yes
AuthUserFile /var/conf/ftp/authfiles/passwd.blah
AuthGroupFile /var/conf/ftp/authfiles/group.blah
TimeoutLogin 120
TimeoutIdle 600
TimeoutNoTransfer 900
Port 21
PassivePorts 61000 61025
<Limit PORT PASV>
AllowAll
</Limit>
<Limit SITE_CHMOD>
AllowUser admin
DenyAll
</Limit>
<Limit DELE>
AllowUser admin
DenyAll
</Limit>
<Limit READ DIRS>
IgnoreHidden on
</Limit>
<Limit LOGIN>
AllowUser user1
AllowUser user2
AllowUser user3
AllowUser user4
AllowUser user5
DenyAll
</Limit>

Make sure you set users' login shells to /bin/false.
Make sure that you open the passive port range for web browser use, and passive clients. (The range is entirely up to you as long as it's tcp ports.)
Make sure that your admins are members of each users' group. and also make the ftp administrator's home directory, that of the user's root.

users:
/ftp/user1
/ftp/user2

admin's:
/ftp

This way, even though the admin is locked into /ftp he can still administer the sub directories.

Good Luck!
 
Old 03-08-2006, 12:58 AM   #5
taigon
LQ Newbie
 
Registered: Mar 2006
Posts: 28

Original Poster
Rep: Reputation: 15
ok, i tried that but still I can't get any directories in the /var folder to display
 
Old 03-08-2006, 09:02 AM   #6
hunterhunter
Member
 
Registered: Nov 2005
Posts: 90

Rep: Reputation: 15
Well in the case of /var files.
You'll have to create the paths and the files, proftpd won't do it for you. It will however, write to those files once the paths and files are created.

Good Luck
 
Old 03-09-2006, 12:57 AM   #7
taigon
LQ Newbie
 
Registered: Mar 2006
Posts: 28

Original Poster
Rep: Reputation: 15
what I'm trying to say is that the /var directory already exists and has a bunch of files and folders in it already. When i connect to the ftp server and do a ls in the /var directory it says there is nothing to display.
 
  


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 won't start Rajahuroman Linux - Networking 3 08-14-2004 01:15 AM
Set Proftpd on Start Up sysmgr Red Hat 1 02-12-2004 12:33 PM
how do you start and stop inetd / proftpd? wendallsan Linux - Networking 2 10-14-2003 12:53 PM
Proftpd Service Start ERROR!! poisonousmist Linux - Newbie 2 10-14-2003 08:34 AM
proftpd Fatal Error on start rose_bud4201 Linux - Software 33 09-24-2003 06:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:28 AM.

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
Open Source Consulting | Domain Registration