LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 02-21-2011, 03:19 PM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,387

Rep: Reputation: 36
Files uploaded by OSX machines to vsftp server can't be deleted by other users


I have a vsftp server running, and we have problems sporadically where people (not the person who uploaded the file) cannot delete files uploaded from OSX machines. We never have this problem with files uploaded by PCs. Anyone ever heard of this or know what I should check? The users uploading the files all belong to the same group.
Also, I think if you log in to the FTP server with another OSX machine, it will let you delete them.
I'm looking at the folders now, they have drwxrwxr-x. When i try to delete them from a PC, it gives me a 550 Remove directory operation failed.

Last edited by rjo98; 02-21-2011 at 03:29 PM.
 
Old 02-21-2011, 03:49 PM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995
Can you post the output of ls -al and point us to the files that were uploaded by the OSX machines?
 
Old 02-21-2011, 03:52 PM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,387

Original Poster
Rep: Reputation: 36
unfortunately, they killed all the files from the folders, but the folders themselves cannot be deleted. the users trying to do the delete are in the same group as the accounts uploading.
 
Old 02-21-2011, 03:54 PM   #4
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995
Well then can you post ls -al of the directories? I just want to confirm the permissions and rwx flags. Thanks man!
 
Old 02-21-2011, 03:56 PM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,387

Original Poster
Rep: Reputation: 36
drwxrwxr-x 2 username photogroup 4096 Feb 21 00:03 0220-t3
drwxrwxr-x 2 username photogroup 4096 Feb 21 00:03 2020-t2
 
Old 02-21-2011, 04:00 PM   #6
LlNUX
Member
 
Registered: Oct 2007
Location: Sydney, Australia
Distribution: Debian
Posts: 63

Rep: Reputation: 15
Hi,

can you try lsattr command?:

lsattr -d dir
lsattr file
 
Old 02-21-2011, 04:02 PM   #7
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995
That would explain why. Either a user would have to be a part of the photogroup group or root would have to remove them. What you could do is chown the directories to change the group of what your user is a part of, or just add your user to the photogroup group.
 
Old 02-21-2011, 04:03 PM   #8
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,387

Original Poster
Rep: Reputation: 36
only the directories exist, but they both give ------------- then the folder name

---------- Post added 02-21-11 at 05:03 PM ----------

that's the problem, the users trying to do this are in photogroup. I just re-confirmed looking in passwd, they're all in group 1001.

Last edited by rjo98; 02-21-2011 at 04:04 PM.
 
Old 02-21-2011, 04:09 PM   #9
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995
So then add them to photogroup? Or are you looking for a different way?
 
Old 02-21-2011, 04:19 PM   #10
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,387

Original Poster
Rep: Reputation: 36
the user who uploads the folders that we can't delete is a member of photogroup. the users trying to delete the folders from a PC are also members of photogroup. that's why I dont understand since they're all in the same group, unless the lsattr of all dashes gives a clue.
 
Old 02-21-2011, 04:23 PM   #11
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995
Are you the admin on this server?
 
Old 02-21-2011, 04:24 PM   #12
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,387

Original Poster
Rep: Reputation: 36
yes
 
Old 02-21-2011, 04:33 PM   #13
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995
So then can't you remove those directories being root?
 
Old 02-21-2011, 04:35 PM   #14
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,387

Original Poster
Rep: Reputation: 36
I could if I log into the server as root. But what i'm trying to accomplish is to have the users delete the folders just like they delete the files inside of these folders.
 
Old 02-21-2011, 04:38 PM   #15
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995
Ok. Well then do you know the exact error they get when they try to remove them?
 
  


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
vsftp - some users see files, some don't, but all users are in same group rjo98 Linux - Newbie 10 01-18-2010 07:41 PM
Upload file to ftp server -vsftp- but can not delete or change the file once uploaded murattas6 Linux - Server 2 06-26-2009 06:00 AM
users of VSFTPD can't chmod files they uploaded tclwp Linux - Networking 4 09-05-2008 07:28 AM
VSFTP - uploaded files get scrambled indoorman Linux - Networking 2 03-12-2007 11:33 AM


All times are GMT -5. The time now is 12:07 AM.

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