Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th May 2006, 20:01
slow_boy slow_boy is offline
Junior Member
 
Join Date: May 2006
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default 553 "Permission denied on server" ProFTPD 553 Permission denied on server

ProFTPD 553 Permission denied on server

--------------------------------------------------------------------------------

I am a newbie trying to setup a LAMP server and I thought I had everything figured out until I tried to write files using FTP. When logged in under FTP using ProFTPD I get the error message 553 "Permission denied on server" error when trying to delete or overwrite files. I tried this with both the root and the new "www" user I created.

I tried chmod 777 in for the /var/www folder, which didn't seem to help. I can log in through console and delete the same file with no problem. I am not sure if this is a configuration problem with ProFTPD or if it is a linux user problem where I just didn't set up the user right. Below is my proftpd.conf file.

Ideally I'd like to have the www user dropped into the /var/www/ folder upon login and be able to modify files as necessary.

Thanks for your help in advance!!

Matt.

#
# /etc/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#

ServerName "Streambox Linux"
ServerType standalone
DeferWelcome off

MultilineRFC2228 on
DefaultServer on
ShowSymlinks on

UseReverseDNS off
IdentLookups off

TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200

DisplayLogin welcome.msg
DisplayFirstChdir .message
ListOptions "-l"

DenyFilter \*.*/

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
#PersistentPasswd off

# Uncomment this if you would use TLS module:
#TLSEngine on

# Uncomment this if you would use quota module:
#Quotas on

# Uncomment this if you would use ratio module:
#Ratios on

# Port 21 is the standard FTP port.
Port 21

# 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 30

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

# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
# Normally, we want files to be overwriteable.
AllowOverwrite on

# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?pag...LSS-2004-10-02
# It is on by default.
#DelayEngine off

# A basic anonymous configuration, no upload directories.

# <Anonymous ~ftp>
# User ftp
# Group nogroup
# # We want clients to be able to login with "anonymous" as well as "ftp"
# UserAlias anonymous ftp
# # Cosmetic changes, all files belongs to ftp user
# DirFakeUser on ftp
# DirFakeGroup on ftp
#
# RequireValidShell off
#
# # Limit the maximum number of anonymous logins
# MaxClients 10
#
# # We want 'welcome.msg' displayed at login, and '.message' displayed
# # in each newly chdired directory.
# DisplayLogin welcome.msg
# DisplayFirstChdir .message
#
# # Limit WRITE everywhere in the anonymous chroot
# <Directory *>
# <Limit WRITE>
# DenyAll
# </Limit>
# </Directory>
#
# # Uncomment this if you're brave.
# # <Directory incoming>
# # # Umask 022 is a good standard umask to prevent new files and dirs
# # # (second parm) from being group and world writable.
# # Umask 022 022
# # <Limit READ WRITE>
# # DenyAll
# # </Limit>
# # <Limit STOR>
# # AllowAll
# # </Limit>
# # </Directory>
#
# </Anonymous>
Reply With Quote
Sponsored Links
  #2  
Old 31st May 2006, 00:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Which distribution do you use?
What's the output of
Code:
ls -la /var
and as which user are you logging in with FTP?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 31st May 2006, 00:41
slow_boy slow_boy is offline
Junior Member
 
Join Date: May 2006
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default

www@linux01:~$ ls -la /var
total 56
drwxr-xr-x 14 root root 4096 2005-09-09 09:49 .
drwxr-xr-x 22 root root 4096 2006-05-02 18:31 ..
drwxr-xr-x 2 root root 4096 2006-05-24 06:25 backups
drwxr-xr-x 7 root root 4096 2005-09-09 09:49 cache
drwxr-xr-x 16 root root 4096 2006-02-01 13:57 lib
drwxrwsr-x 2 root staff 4096 2005-03-31 11:09 local
drwxrwxrwt 4 root root 4096 2006-05-29 14:29 lock
drwxr-xr-x 9 root root 4096 2006-05-30 06:25 log
drwxrwsr-x 2 root mail 4096 2005-12-01 16:07 mail
drwxr-xr-x 2 root root 4096 2001-12-31 18:32 opt
drwxr-xr-x 11 root root 4096 2006-05-29 14:34 run
drwxr-xr-x 4 root root 4096 2001-12-31 18:32 spool
drwxrwxrwt 2 root root 4096 2006-05-25 12:01 tmp
drwxr-xr-x 26 root root 4096 2006-05-30 12:51 www
Reply With Quote
  #4  
Old 31st May 2006, 07:34
slow_boy slow_boy is offline
Junior Member
 
Join Date: May 2006
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default

I am logging in with user www or root. Either produces the same results.
Reply With Quote
  #5  
Old 31st May 2006, 13:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Which distribution do you use?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 31st May 2006, 19:11
slow_boy slow_boy is offline
Junior Member
 
Join Date: May 2006
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default

I am using Ubuntu Linux
Reply With Quote
  #7  
Old 31st May 2006, 20:40
slow_boy slow_boy is offline
Junior Member
 
Join Date: May 2006
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default

Is this a difficult question or did I post it wrong? Is it just too dumb of a question? I got no responses
Reply With Quote
The Following User Says Thank You to slow_boy For This Useful Post:
AbannyvabVask (21st December 2013)
  #8  
Old 1st June 2006, 00:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by slow_boy
I am using Ubuntu Linux
Then replace
Code:
User www
Group www
with
Code:
User nobody
Group npgroup
in /etc/proftpd.conf. Also add
Code:
DefaultRoot  ~
and restart Proftpd.
Then create a new user and group, e.g. exampleuser and examplegroup, with /var/www as exampleuser's homedir.
Then do this:
Code:
chown exampleuser:examplegroup /var/www
Afterwards log in to FTP with the user exampleuser.

Quote:
Is this a difficult question or did I post it wrong? Is it just too dumb of a question? I got no responses
You can't expect to get responses at once.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 7th June 2006, 01:59
slow_boy slow_boy is offline
Junior Member
 
Join Date: May 2006
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Cool

I followed this process and I am still getting the same error, weirly enough I can create files ok, I just can't delete/modify.

ftp> pwd
257 "/home/www" is current directory.
ftp> rm index.html
553 index.html: Permission denied on server. (Delete
ftp> mkdir dkfjds
257 "/home/www/dkfjds" new directory created.
ftp> rmdir dkfjds
553 dkfjds: Permission denied on server. (Delete)
ftp>
Reply With Quote
  #10  
Old 7th June 2006, 11:00
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,478
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
 
Default

please post the output of:

ls -la /home/www
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php Apps email not going through palkat General 8 21st September 2011 05:35
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Webmail Relay Error palkat General 17 23rd April 2006 18:12
Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" rbrantley HOWTO-Related Questions 16 10th April 2006 18:26
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 02:30


All times are GMT +2. The time now is 04:43.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.