LinuxQuestions.org
Visit Jeremy's Blog.
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 02-24-2011, 09:02 PM   #1
rewards
Member
 
Registered: Dec 2010
Posts: 128

Rep: Reputation: 0
Smile FTP problem and folder permission


Hello all fellows,

I have a folder called server1 in /var/www/html/server1. In server1 folder there are lots of web server scripts folders, subfolders and files. There is a user called test, who does FTP works. When this user tries to connect via FTP using Filzilla client, it gets connected but when he tries to upload files to that directory or download files from that directory, he gets "FTP Critical file transfer error" message. I think he has permission problem. My questions are; 1- Does the test user have to be the owner of the server1 folder? How can permission be set to the server1 directory for this test user so that he would be able to upload files and folders, download files and folders and delete and create files and folders from the Terminal Command? It is hard to go to each folders and assign permission because there are over more than 300 folders in the server1 folder. Thank you again for your feedback.
 
Old 02-25-2011, 02:17 PM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
As far as being the same user, it would strictly depend on the permissions. For the user called "test" to upload to it, you would need write permissions for the directory. It would also need to be configured within the FTP configuration on the server to allow write access, depending on what is being used, etc. To change permissions, you will need to chmod the directory. As far as changing permissions on every file and directory within the directory being shared via FTP, you can use chmod -R to recursively chmod every file and directory.
 
Old 02-25-2011, 04:02 PM   #3
rewards
Member
 
Registered: Dec 2010
Posts: 128

Original Poster
Rep: Reputation: 0
I found the solution myself:

chown -R test /var/www/html/server1
chmod -R +rw /var/www/html/server1
 
Old 02-25-2011, 04:11 PM   #4
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
Awesome, glad to hear I helped.

Cheers,

Josh
 
  


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
NAS shared folder permission problem Alex_trebek Linux - Server 5 10-24-2008 05:23 PM
Problem in samba at windows machine(Folder Permission) RajendraKumar Linux - Enterprise 2 07-31-2006 03:19 AM
Problem in samba(Folder Permission) RajendraKumar Linux - Software 1 07-30-2006 10:11 AM
Permission problem with folder /etc/shorewall Teban Mandriva 4 04-04-2004 02:20 PM


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