Simple Ubuntu permissions question

I have a folder which I want ftp users to have read/write permissions to. (Ubuntu 15.04)
I run :
sudo chmod 777 -R /usr/local/fop2

but when I try to ftp a file to replace one on the box, I get file access error ?
(Ubuntu newbie)
Silas2Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Zephyr ICTCloud ArchitectCommented:
Did you give the user permission on the folder? Eg:

sudo chown root:group -R /usr/local/fop2

Open in new window

The user would be in the specified group
or

sudo chown user:group -R /usr/local/fop2

Open in new window

Give the FTP user owner rights with his own group (or another)
Zephyr ICTCloud ArchitectCommented:
By the way, maybe it's too advanced for now, but you can also set more granulary permissions if you install/configure acl.

This way you can give different groups different permissions (among others)
Silas2Author Commented:
Can I not give permissions to a user? not group?
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

Zephyr ICTCloud ArchitectCommented:
Of course, I mentioned it in my first reply, I'll make it more clear with an example.

Let's say your user is called ftpuser:

sudo chown ftpuser:ftpuser -R /usr/local/fop2

Open in new window

Silas2Author Commented:
this is really spooky, but I just ran that, but , with that login, I can't seem to do anything to files in the folder??
Zephyr ICTCloud ArchitectCommented:
When you are in that folder do a "ls -al" who is the owner of the files? What are the permissions?
Silas2Author Commented:
right , I've done that, and the ftpuser is coming up -rwxr etc. so it looks pretty strong, could it be something to do with the permissions granted to ftp app? or something like that?
Zephyr ICTCloud ArchitectCommented:
Can you post a screenshot of the result? You can sanitize it if it contains sensitive info...

Did you configure "write_enable=YES" in the ftp config? Otherwise it could indeed be that you can't write/change things in the ftp directory.
Silas2Author Commented:
root@squirrel:/usr/local/fop2# chown ftpFop2Conf:ftpFop2Conf -R /usr/local/fop2
root@squirrel:/usr/local/fop2# ls -al
total 9120
drwxrwxrwx  3 ftpFop2Conf ftpFop2Conf    4096 Jul  1 11:29 .
drwxr-xr-x 11 root        root           4096 Jun 30 17:32 ..
-rwxrwxrwx  1 ftpFop2Conf ftpFop2Conf      31 Jun 30 17:32 autobuttons.cfg
-rwxrwxrwx  1 ftpFop2Conf ftpFop2Conf    9350 Jun 30 17:32 autoconfig-buttons-freepbx.sh
-rwxrwxrwx  1 ftpFop2Conf ftpFop2Conf    5606 Jun 30 17:32 autoconfig-buttons.sh
-rwxrwxrwx  1 ftpFop2Conf ftpFop2Conf    4996 Jun 30 17:32 autoconfig-users-freepbx.sh
-rwxrwxrwx  1 ftpFop2Conf ftpFop2Conf   10296 Jun 30 17:32 autoconfig-users.sh
-rwxrwxrwx  1 ftpFop2Conf ftpFop2Conf     283 Jun 30 18:00 buttons.cfg

Open in new window

but can't ftp to replace any of these files with that user..
Zephyr ICTCloud ArchitectCommented:
Did you configure "write_enable=YES" in the ftp config? Otherwise it could indeed be that you can't write/change things in the ftp directory.

Did you check this in your FTP config? ...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Silas2Author Commented:
and when I try to ftp filezilla log:
015-07-01 15:11:40 5188 1 Command: USER ftpFop2Conf
2015-07-01 15:11:40 5188 1 Response: 331 Please specify the password.
2015-07-01 15:11:40 5188 1 Command: PASS **********
2015-07-01 15:11:40 5188 1 Response: 230 Login successful.
2015-07-01 15:11:40 5188 1 Status: Server does not support non-ASCII characters.
2015-07-01 15:11:40 5188 1 Status: Connected
2015-07-01 15:11:40 5188 1 Status: Starting upload of C:\Squirrel\buttons.cfg
2015-07-01 15:11:40 5188 1 Command: CWD /usr/local/fop2
2015-07-01 15:11:40 5188 1 Response: 250 Directory successfully changed.
2015-07-01 15:11:40 5188 1 Command: PWD
2015-07-01 15:11:40 5188 1 Response: 257 "/usr/local/fop2"
2015-07-01 15:11:43 5188 1 Command: TYPE I
2015-07-01 15:11:43 5188 1 Response: 200 Switching to Binary mode.
2015-07-01 15:11:43 5188 1 Command: PASV
2015-07-01 15:11:43 5188 1 Response: 227 Entering Passive Mode ().
2015-07-01 15:11:43 5188 1 Command: STOR buttons.cfg
2015-07-01 15:11:43 5188 1 Response: 550 Permission denied.
2015-07-01 15:11:43 5188 1 Error: Critical file transfer error

Open in new window

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.