Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
71
rated 0 times [  71] [ 0]  / answers: 1 / hits: 140732  / 3 Years ago, tue, june 1, 2021, 7:03:09

I'm using Ubuntu and I'm here to know is there any way to modify access of a specific application so that it can only root has access to it?



Currently that application can be launched by general users but I want to make it so that only root can do this.


More From » permissions

 Answers
1

Make sure that the owner of the application is root and set the permissions such that only the owner can run it.



sudo chown root:root /path/to/application
sudo chmod 700 /path/to/application


If you look now at permissions with ls -l /path/to/application, you should see the following: -rwx------ root root, meaning that root can read, write and execute, and anyone else cannot even read that file.


[#35326] Tuesday, June 1, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
humbire

Total Points: 55
Total Questions: 93
Total Answers: 113

Location: Oman
Member since Fri, Dec 23, 2022
1 Year ago
humbire questions
Thu, May 13, 21, 02:28, 3 Years ago
Sun, Oct 24, 21, 14:23, 3 Years ago
Wed, May 17, 23, 22:16, 1 Year ago
;