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 10-12-2011, 01:02 PM   #1
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
VSFTPD files/folders uploaded by OSX machines can only be deleted by OSX machines


I have a VSFTPD server, and we primarily use PCs. We have a few Mac OSX users who upload folders of files to us, but when we use FTP clients from the PC, we cannot delete the folders. If a Mac ftp client connects, it can delete them. If I log on to the server through the CLI, i can delete the folders as root.

when I try to delete the folder through Filezilla from a PC, all i get back is this:
Command: RMD FolderName
Response: 550 Remove directory operation failed.


Any ideas what might be causing this? When I do a ll on the directory, they have the same permissions as everything else (i.e. folders we can delete). I dont know if its a setting in their FTP clients and its just a coincidence they're all Macs or what.

Last edited by anon091; 10-12-2011 at 01:08 PM.
 
Old 10-12-2011, 03:53 PM   #2
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
What do the permissions and ownership of the files look like? It is possible that the client may be doing something to the permissions or ownership that may be unexpected.

Some items that may help if this is the issue:

Quote:
From the vsftpd.conf man page:
chown_uploads
If enabled, all anonymously uploaded files will have the ownership changed to the user specified in the setting chown_username. This is useful from an administrative, and perhaps security, standpoint.

chown_upload_mode
The file mode to force for chown()ed anonymous uploads. (Added in v2.0.6).
Default: 0600

chown_username
This is the name of the user who is given ownership of anonymously uploaded files. This option is only relevant if another option, chown_uploads, is set.
Default: root
 
Old 10-12-2011, 04:01 PM   #3
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Thanks for the reply. We don't allow anonymous uploads. and the permissions match with folders that we can delete, but the owner is obviously different (since diff people are uploading). all the users belong to the same group as well.
 
Old 10-14-2011, 12:05 PM   #4
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
What are the permissions on the files that have been uploaded?
 
Old 10-14-2011, 01:00 PM   #5
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
When I do a ls on the folders, i compared it to ones that we could delete, and they appear to be the same, other than the different owner obviously, but all users belong to same group.
 
Old 10-14-2011, 01:24 PM   #6
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
Is the group on the files the same? Can you post some of the output, or logs from where you can't delete files?
 
Old 10-14-2011, 01:34 PM   #7
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Yes, group is the same on everything. What logs from the server would i look in, i posted the only message i get from the ftp client in the original post.
 
Old 10-14-2011, 02:25 PM   #8
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
Look at your vsftpd logs and post information from there. Your error indicates that you are trying to remove a directory and not files. Output from ls -alh might be helpful as well.
 
Old 10-17-2011, 07:56 AM   #9
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
When I do the ls -alh all the directories (ones that we can and cannot delete) have this drwxrwxr-x with the user being the user who uploaded it, and all belonging to the same group.

When i try to delete one of the folders that was uploaded from a Mac, in my ftp client I get the 550 Remove directory operation failed. I tailed the vsftpd.log and nothing was logged.
 
Old 10-17-2011, 08:26 AM   #10
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
I am at a loss right now with the issue that you are having. Hopefully someone else may pipe in and have something to add. I have yet to run into the problem or similar problem that you are having now.
 
Old 10-17-2011, 08:33 AM   #11
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
same here, hopefully someone else has had this odd experience and can chime in.
 
Old 03-16-2012, 02:09 PM   #12
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
I think I might have stumbled onto the cause of this. by doing a ll -alh within the folders, i noticed inside of them was a .DS_Store file with -rw-rw-r-- on it. I went to the FTP server and deleted that, then I could delete the folder from my FTP client on the PC.

Now if i can just figure out how to stop those files from being included when they FTP
 
  


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
Files uploaded by OSX machines to vsftp server can't be deleted by other users anon091 Linux - Newbie 25 02-23-2011 08:09 AM
Replacing OSX with Linux? No I do not wish to Triple boot OSX, Linux and Windows. Seph64 Linux - General 10 02-06-2011 02:35 PM
Can only access SOME folders on OSX partition from Ubuntu 8.04, macbook santa rosa jedrake2 Linux - Newbie 3 01-07-2009 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:23 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