LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 05-04-2007, 09:58 AM   #1
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
FTP Server: STOR /somefile: 550 Access is denied


OK, I've setup first pure-ftpd and then proftpd on Ubuntu Feisty.

Before, I added a user 'testuser', his home directory currently has dwrxrwxrwx permissions. Connecting via several FTP clients works, and I get the contents of /home/testuser listed. Downloading works, too, as long as there are read permissions for testuser.

The problem is, when I try to upload any file, I get an "Access is denied" message.

Upon connecting or disconnecting via FTP, in /var/log/messages, there are appropriate messages like 'user testuser logged in/off', but not for those "Access is denied" events.

Being connected via ssh BTW, testuser is able to create files and folders in his home directory.

root, via FTP, is allowed to create files in his home folder.

For pure-ftpd, it's possible to create an FTP user using "pure-pw useradd ...", which I did (using the same user name, password, and home folder). That didn't make any difference.
For proftpd there should'nt be the need to configure anything extra.

proftp is running under the group nogroup, so I'd testwise chgrp'ed testuser's homefolder to nogroup. Didn't make any difference.

I've now tried quite a while to get rid of this "Access is denied" problem, and would appreciate if someone had some tips or ideas.

Thanks

Last edited by robbbert; 05-04-2007 at 09:59 AM.
 
Old 05-05-2007, 02:59 PM   #2
Fle><
Member
 
Registered: Dec 2003
Location: Vienna | Austria
Distribution: Gentoo
Posts: 52

Rep: Reputation: 15
are you sure proftp wants to store your files in testusers home directory? maybe it wants to store it somewhere under /var/ftp/...
 
Old 05-07-2007, 05:28 AM   #3
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Original Poster
Rep: Reputation: 32
Thanks. There is no folder /var/ftp. Additionally, when logging in using an FTP client, the files in the user's home directory show up. It's definitely /home/username.
 
Old 05-07-2007, 08:26 AM   #4
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Original Poster
Rep: Reputation: 32
At another server everything works out-of-the box: Install pure-ftpd, add a Linux user, log that user into a new FTP session; he'ld be in his chroot'ed home dir, be able to read and write...

Probably the network admins have eliminated PUTs on port 20 or 21 or something.
 
Old 05-11-2007, 01:00 AM   #5
TheLateJC
Member
 
Registered: Apr 2007
Location: Sydney
Distribution: Debian. (Formerly Slackware, Gentoo, RHEL, and Suse)
Posts: 80

Rep: Reputation: 15
Quote:
Originally Posted by robbbert
Probably the network admins have eliminated PUTs on port 20 or 21 or something.
maybe, but I would expect a connection timeout problem if that were the case. If the access is denied message comes from the server promptly then it is a server config issue.

Might the ftpd configuration file have an option for globally disabling upload?
 
Old 05-11-2007, 04:10 AM   #6
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Original Poster
Rep: Reputation: 32
Thanks THeLateJC. It was a network config problem indeed. The network admins have opened the firewall.
Thanks for bothering though. :-)
 
  


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
Sendmail 550 access denied vous Linux - Software 6 03-03-2005 10:11 AM
Hang on LIST or STOR in FTP Torm3nt Linux - Networking 8 01-29-2004 12:07 AM
FTP upload problem: Error 550 Access Denied andrewstr Linux - Networking 0 12-17-2003 01:19 PM
mailman: send error 550 5.0.0 access denied katana Linux - General 2 08-26-2003 10:35 PM
FTP access denied tanch00 Linux - Networking 0 11-22-2001 02:37 AM


All times are GMT -5. The time now is 01:41 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration