Monday, April 15, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 4181  / 3 Years ago, fri, august 6, 2021, 5:29:19

How can I do that?
I got user amira on my Ubuntu 11.4, I want him to able to see / read / write a root user files such as /etc/* and apache files


More From » permissions

 Answers
7

The normal way to do this is to add that user to the sudoers file. You can do that this way:




  • Open a terminal and type



    sudo su

  • After entering your admin password type



    visudo

  • Using the arrow keys, navigate to the bottom of the sudoers file that is now displayed in the terminal


  • Just under the line that looks like:



    root ALL=(ALL) ALL

  • Add



    amira ALL=(ALL) ALL

  • Now press Ctrl+X and press Y when prompted to save




User amira can now use sudo to edit file, permissions and anything an admin user (like the one you used installing your Ubuntu) is capable of doing.


[#43699] Saturday, August 7, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lawain

Total Points: 150
Total Questions: 106
Total Answers: 101

Location: China
Member since Mon, Aug 22, 2022
2 Years ago
lawain questions
;