C
C
Chvalov2017-08-10 00:53:01
linux
Chvalov, 2017-08-10 00:53:01

How to give a user full rights to several programs and directories?

OS - Debian 8
Added the user TestUser, created a directory for him in the /home/ directory
Made him the owner chown -R TestUser /home/TestUser/
You also need to give permission to edit files in the /var/www/*/*
directory Since the /var/www directory belongs to the www- user and group data - chown -R www-data:www-data /var/www/
Added a user to this group as well gpasswd -a TestUser www-data
But I can't do anything in this directory under this user
How can I give full rights to this user (users) over this directory
And also access to use nginx and mysql services

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
planc, 2017-08-10
@planc

You also need to give permission to edit files in the directory.

acl
https://serversforhackers.com/c/linux-acls
https://wiki.archlinux.org/index.php/Access_Control...
sudo
https://wiki.archlinux.org/index.php/Sudo_(%D0%A0%...

C
CityCat4, 2017-08-10
@CityCat4

man getacl, man setacl
uh? For use? Add a separate user to the mysql database, I didn’t understand about nginx - I think everyone is allowed to use it from 127.0.0.1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question