how to enable to user "work2023" write over files with owner root?

Support for security such as Firewalls and securing linux
Post Reply
Windows
Posts: 59
Joined: 2021/06/16 13:20:01

how to enable to user "work2023" write over files with owner root?

Post by Windows » 2022/04/19 19:27:10

hello,

I need user "work2023" can write over files witth owner = root

is possible?

I add the line

Code: Select all

work2023	ALL=(ALL)	NOPASSWD:ALL
into /etc/sudoers but when this user try to write:

Code: Select all

-bash: /root/test.txt: Permission denied
really s possible OTHER user write in files with owner root ?

this is CentOs 7

thanks

Post Reply