LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-11-2012, 08:35 PM   #1
timebirds
Member
 
Registered: Mar 2012
Posts: 33

Rep: Reputation: Disabled
My pure-ftpd FTP won't let me upload files back to it.


I can download files fine, but when i upload them back, i get this:

Status: Starting upload of C:\Users\PC\AppData\Local\Temp\fz3temp-1\httpd.conf
Command: PASV
Response: 227 Entering Passive Mode (74,91,116,80,76,140)
Command: STOR httpd.conf
Response: 553 Can't open that file: Permission denied
Error: Critical file transfer error

using pure-ftpd for server and filezilla for my client
 
Old 03-11-2012, 08:54 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,690
Blog Entries: 12

Rep: Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904
Who owns the target directory and what are its permissions?

It sounds like a permissions issue to me.
 
Old 03-11-2012, 09:12 PM   #3
timebirds
Member
 
Registered: Mar 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
Who owns the target directory and what are its permissions?

It sounds like a permissions issue to me.
What do u mean by who owns it.if you mean what system account the default root account.
 
Old 03-11-2012, 09:22 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,690
Blog Entries: 12

Rep: Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904
I mean, when you do ls -l on that directory, what are the permissions?

If it's owned by root, it's possible that only root has write permissions and ftp is not allowed to write. (It can be a lot more complicated than that, but that's the big picture.)

The Slackbook has a good section on permissions.
 
Old 03-12-2012, 08:33 PM   #5
timebirds
Member
 
Registered: Mar 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
I mean, when you do ls -l on that directory, what are the permissions?

If it's owned by root, it's possible that only root has write permissions and ftp is not allowed to write. (It can be a lot more complicated than that, but that's the big picture.)

The Slackbook has a good section on permissions.
im sorry, but that slackbook thing made no sense. is there a simple way i can add users from the group ftpgroup to the directory /www

[EDIT] ignore me i figured it out.

Last edited by timebirds; 03-12-2012 at 08:40 PM.
 
Old 03-12-2012, 09:05 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,690
Blog Entries: 12

Rep: Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904
Please post what you figured out. It may help someone else.

I do know that generally it is not good for files on websites to be owned by root, because of problems such as the one that prompted your initial post. I know of one hosting company, for example, where the files are owned by the "nobody" user and the permissions are either 755 or 644 depending on the type file.

I'm sorry the Slackbook link didn't help you. Linux's handling of permissions is so different from Windows' that they can't be compared.

I've been using Linux for seven years, read many primers on permissions, changed permissions many times, but only recently stumbled across a reading (proprietary--it was a two-page training document) that made all the pieces fall into place for me, so that now I can not only "do" Linux permissions, I actually "understand" them. So I can empathize.
 
Old 03-12-2012, 10:01 PM   #7
timebirds
Member
 
Registered: Mar 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
Please post what you figured out. It may help someone else.

I do know that generally it is not good for files on websites to be owned by root, because of problems such as the one that prompted your initial post. I know of one hosting company, for example, where the files are owned by the "nobody" user and the permissions are either 755 or 644 depending on the type file.

I'm sorry the Slackbook link didn't help you. Linux's handling of permissions is so different from Windows' that they can't be compared.

I've been using Linux for seven years, read many primers on permissions, changed permissions many times, but only recently stumbled across a reading (proprietary--it was a two-page training document) that made all the pieces fall into place for me, so that now I can not only "do" Linux permissions, I actually "understand" them. So I can empathize.
i was about to post when i accidentally hit the power switch on my computer outlet... so ill post tomorrow.
 
Old 03-13-2012, 07:30 PM   #8
timebirds
Member
 
Registered: Mar 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
Please post what you figured out. It may help someone else.

I do know that generally it is not good for files on websites to be owned by root, because of problems such as the one that prompted your initial post. I know of one hosting company, for example, where the files are owned by the "nobody" user and the permissions are either 755 or 644 depending on the type file.

I'm sorry the Slackbook link didn't help you. Linux's handling of permissions is so different from Windows' that they can't be compared.

I've been using Linux for seven years, read many primers on permissions, changed permissions many times, but only recently stumbled across a reading (proprietary--it was a two-page training document) that made all the pieces fall into place for me, so that now I can not only "do" Linux permissions, I actually "understand" them. So I can empathize.
Well, i did
Code:
chgrp ftpgroup /www
and
Code:
chmod 775 /www
but here's my new problem. i cant delete files that i made using the root account on SSH. (i can edit them.)(i can delete files i created on ftp.)
 
Old 03-13-2012, 08:59 PM   #9
timebirds
Member
 
Registered: Mar 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
i'm gonna make a new new post for my new problem.
 
  


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
[SOLVED] ftp with pure-ftpd angel115 Linux - Server 4 11-10-2011 08:41 AM
OpenSUSE 11.1 (pure-ftpd) FTP Server whschimmel Linux - Server 1 05-26-2011 03:49 AM
Pure-ftpd - how to disallow download and allow only upload. anandkj Linux - Software 1 04-02-2009 05:03 AM
Pure-ftpd closes connection after 10 minutes of upload steelliberty Linux - Networking 2 07-23-2007 09:48 AM
Forward to another ftp-server with pure-ftpd didi86 Linux - Software 0 12-20-2004 01:55 PM


All times are GMT -5. The time now is 05:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration