A
A
Andrey San2015-12-02 07:36:37
linux
Andrey San, 2015-12-02 07:36:37

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

2 answer(s)
O
OnYourLips, 2015-12-02
@OnYourLips

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.

V
Vladimir Zhurkin, 2015-12-02
@icCE

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.

folder1 - root
/ \
folder2 folder3 - user2 , user3
\ /
other_folder - user4
If it were not necessary to change the owner and groups, then it would be possible to destroy everything with ordinary groups.
If there is a task to change - that you should do everything through ACL.
https://wiki.archlinux.org/index.php/Access_Control...help.ubuntu.ru/wiki/access_control_list
_

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question