Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-24-2011, 10:02 PM
|
#1
|
Member
Registered: Dec 2010
Posts: 135
Rep:
|
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.
|
|
|
02-25-2011, 03:17 PM
|
#2
|
LQ Guru
Registered: Apr 2005
Location: /dev/null
Posts: 5,818
|
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.
|
|
|
02-25-2011, 05:02 PM
|
#3
|
Member
Registered: Dec 2010
Posts: 135
Original Poster
Rep:
|
I found the solution myself:
chown -R test /var/www/html/server1
chmod -R +rw /var/www/html/server1
|
|
|
02-25-2011, 05:11 PM
|
#4
|
LQ Guru
Registered: Apr 2005
Location: /dev/null
Posts: 5,818
|
Awesome, glad to hear I helped.
Cheers,
Josh
|
|
|
All times are GMT -5. The time now is 11:33 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|