LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-21-2012, 12:41 PM   #1
isamjam
LQ Newbie
 
Registered: Feb 2012
Posts: 3

Rep: Reputation: Disabled
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
 
Old 02-21-2012, 12:55 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
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
 
Old 02-21-2012, 01:07 PM   #3
isamjam
LQ Newbie
 
Registered: Feb 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
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?
 
Old 02-21-2012, 04:38 PM   #4
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
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
 
Old 02-21-2012, 11:52 PM   #5
isamjam
LQ Newbie
 
Registered: Feb 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Thor_2.0 View Post
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
 
Old 02-22-2012, 04:57 AM   #6
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
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...
 
  


Reply



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
[SOLVED] Renaming a folder which is default folder for FTP account anon091 Linux - Newbie 6 02-11-2011 09:30 AM
files not visible in ftp site (but present in the /var/ftp/folder of the server) dongrila Linux - Newbie 2 12-23-2007 10:09 PM
create a folder/file within a folder using perl indu.a Programming 2 03-07-2007 10:09 PM
how can i default the max folder file size when it create inside a folder antony_csf Linux - Software 1 06-17-2004 02:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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