Thursday, February 22, 2024
 Popular · Latest · Hot · Upcoming
rated 0 times [  0] [ 0]  / answers: 1 / hits: 7067  / 11 Months ago, sat, april 29, 2023, 2:03:13

I'm trying to modify files in the /root folder but I can't because I don't have permission.

I don't understand what is happening because i thought i'm logged in with the root but the name is just different.

I can't even add a new file, for example I'm trying to add a text file to the "www" folder to try and add a php file to run in Apache but i can't add a file.

However when i access the terminal and work with sudo it works fine but i want to do it the normal way.

The question here: how to grant my user full root privileges ? (Because i want to add and edit the "www" folder)

I'm supposed to be the root but my user directory is not in the root it is in the home directory :( What's wrong ?!!!

More From » permissions


I have solved the problem by editing the permission on the folder by (chmod g+w www)&(chmod o+w www)... Thanks

Do you think this is an appropriate method ? or copying the 'php' files to the "www" directory from 'sudo' terminal is better ?

I got help from HERE

[#30695] Saturday, April 29, 2023, 11 Months  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 178
Total Questions: 110
Total Answers: 98

Location: Lithuania
Member since Fri, Sep 4, 2020
4 Years ago