C
C
Chvalov2014-08-23 00:32:14
FTP
Chvalov, 2014-08-23 00:32:14

FTP server with virtual users and certain directories and rights on ubuntu server 14.04, how to do?

After installing Ubuntu server + php5 + apache2 + mysql + openssh
It is required to constantly upload files to different directories located in /var/www/
The FTP server has not yet raised any, but through FilleZila I can go through s ftp://XX.XX.XX .XX using my username and password, but I can't change anything.

Ошибка:	/var/www/mysite.loc/public_html/themes/head.php: open for write: permission denied
Ошибка:	Передача файла потерпела неудачу

And how do I close sftp, as I understand it, it works through openssh
Actually the task:
A list of users who would not be in the system, but stored in some file or in a database (mysql)
So that each user can be given their own directory with full rights , sometimes 3 users one directory.
Restrict access outside the directory.
And the ability to grant read-only access.
How to do this? More details if possible.
As an option, I liked the vsftpd solution with virtual users vovanys.com/linux/nastrojka-vsftpd-s-xraneniem-uch
...
rus-linux.net/MyLDP/internet/vsftpd.html
a separate category, but I myself need to assign which directories to whom to give and rights
. Can this be done using the method described in the two links above?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Taratin, 2014-08-23
@Taraflex

https://pyd.io/
https://owncloud.org/

N
Nazar Mokrinsky, 2014-08-23
@nazarpc

OwnCloud has everything you need and even more.

K
kis92, 2014-08-23
@kis92

I have not done this for a long time, but useful links remained:
interface31.ru/tech_it/2012/02/prostoy-ftp-server-...
http://help.ubuntu.ru/wiki/guide_ubuntu_s...

V
Vladimir Zhurkin, 2014-10-12
@icCE

But there is one thing, but there each virtual user creates its own separate category, but I myself need to assign which directories to whom to give and rights
----------------------
Well, in linux, you can distribute the rights to the folder and files. Groups and Users. chmod , chown.
Another option from ftp servers is to look at proftpd.
You can make access via sftp, though the file transfer speed will most likely be low.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question