LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   FTP Can't create folder (https://www.linuxquestions.org/questions/ubuntu-63/ftp-cant-create-folder-930539/)

isamjam 02-21-2012 12:41 PM

FTP Can't create folder
 
Hi Guys,
I'm setting up an Ubuntu 11.04 server through terminal and have setup the FTP and a LAMP Stack with Wordpress.
I can login to ftp with a user I created with the home folder or WWW.
All good but I can't create folders, th error I get is 550 on FTP clients.
The vsftpd.conf file is all fine, Anon users prohibited and write enabled, I don't think the problem is there. I read about using setenforce 0 but that doesn't seem to work on my installation as the system doesn't seem to have setenforce. that if it was really the solution.
I'm new to this I have to say, I was hoping I get an answer on this forum.
Thanks

ButterflyMelissa 02-21-2012 12:55 PM

Hi, and welcome here.

Let's make your first question a success story!

Okay, can the user log in locally? If so (of course) can (s)he make folders locally? Can these folders (on the same place) be made as well? Are you (the user) trying to make folders OUTSIDE your home folder? Every iser has a home folder, make that the first point of impact when a user logs in...
Maybe you're giving the user access to an other folder - I read

Quote:

with the home folder or WWW.
Snag, no user (leave the root) is allowed to "operate" in the www folder...

Good luck, and following on...

Thor

isamjam 02-21-2012 01:07 PM

Thanks in a advance,
I'm actually managing a remote server, so not sure if "locally" is applciable here. I can access ftp through Cyberduck and through wordpress itself, the user seems to work but can't create folders.
When I login, I get a listing of all folders under /var and one of them is www. so, I guess I was wrong on that one.
So, After installing ftp, I only created one user with that home folder.
Does that help?

ButterflyMelissa 02-21-2012 04:38 PM

Quote:

When I login, I get a listing of all folders under /var and one of them is www.
Okay, well, no user should be able to make any folders here, anyway. Unless you've been altering stuff, in that case, alter it back as this presents a security issue.

Quote:

So, After installing ftp, I only created one user with that home folder.
The desired behaviour is that the user ends up in his/her folder. There that user will be able to do everything needed...

What is the server software used for FTP?

Thor

isamjam 02-21-2012 11:52 PM

Quote:

Originally Posted by Thor_2.0 (Post 4608637)
Okay, well, no user should be able to make any folders here, anyway. Unless you've been altering stuff, in that case, alter it back as this presents a security issue.

Ok, So I want to be able to create folders through ftp inside www/wordpress, I'm the only user. Since it was altered before, I don't want to confuse things more. So if I am to create a new user who can add folders n www/wordpress what should I write in the terminal as parameters to adduser? From what you're saying it seems that my selection for the home folder is wrong and that should not be the case with a new user with the www/wordpress as a home folder.

The desired behaviour is that the user ends up in his/her folder. There that user will be able to do everything needed...

What is the server software used for FTP?

Thor

I used the one listed in Ubuntu guide: https://help.ubuntu.com/11.04/server...tp-server.html
vsftpd

ButterflyMelissa 02-22-2012 04:57 AM

VSFTPD, good choice. I've got the same one here, we could compare notes...

Okay...so, you get in remotely...could you perhaps try with midnight Commander as well? It has a list structure and should show you where in the file system you are at the moment of login. Maybe you just "land" in the wrong place...


All times are GMT -5. The time now is 08:34 AM.