Answer the question
In order to leave comments, you need to log in
Is it safe to give the user a chmod?
Good afternoon, there is a user with limited access, and he must:
create / delete files / directories
change owners and groups, as well as access rights (chmod)
added to sudoers
/bin/chown, /bin/chgrp, /bin/chmod
as far as this safely?
can you specify a condition? for example, it can perform the above operations only in some directory, for example, in / work
Answer the question
In order to leave comments, you need to log in
Not safe. The user through chmod can get full access to the system and root rights.
Even if it is limited to some directory.
Look towards virtualization.
the task is what: there is a folder1 directory which is owned by root and folder2 folder3 subdirectories in which the owners are different users and groups, the goal is to work in subdirectories from the new new_user so that he can create and delete files and directories in subdirectories, change owners and groups, etc.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question