M
M
mills2019-09-15 14:07:56
linux
mills, 2019-09-15 14:07:56

Give rights to edit files and folders via SFTP Linux server, how?

Hello!
I don't know about servers... The system administrators who ran the site on Linux do not get in touch.
Tell me, please, how to give rights or how to do it through the console so that I can edit files via SFTP with the usual rights of files 644, folders 755? At the moment, the rights of the files are much higher, for example, the files are 776, then it makes it possible to save ...
The username by which I log in: manager
And this is for files and folders.
5d7e1b52bdecf507703772.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Pavel, 2019-09-15
@apsdiohap

chmod 777 abracada.bra
also to the folder chmod -R 777 /mnt/data

V
vreitech, 2019-09-15
@fzfx

setfacl -Rm d:u:manager:rwx,u:manager:rwx /path/to/dir
, where /path/to/dir is the path to the directory where the specified permissions are needed.

T
Talyan, 2019-09-15
@flapflapjack

1) which ftp server and which web server?
2) with what rights are files uploaded through Bitrix created, and in what group are they? www-data? Show ls -l /var/www
3) try adding your manager user to the www-data group
4) try to mount (namely mount and not create a symbolic link) the /var/www folder in the ftp user's home folder (after adding the user to the www-data group).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question