Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 10248  / 1 Year ago, wed, march 1, 2023, 1:01:28

I am very new to Ubuntu
I installed apache and I got the directory /var/www but I cant delete anyhting in that directory. It says: You are not the owner Now I assume I have to log in as root? but how do I log in as root and what is the standard password for root? Also how can I just give my own user the same permissions? Again I have little knowledge about linux and ubuntu etc.


More From » permissions

 Answers
0

Ubuntu by default does not allow login as root. This is for security reasons. Ubuntu uses sudo, which allows users to issue commands with administrative privleges.



The user created during installation is automatically made an administrative user, meaning is already set up to use sudo.



Don't use the graphical file manager. Instead use the terminal.



ctrl+alt+t will open the terminal.



cd /var/www will get you to the directory.



You can delete files with sudo rm [files to delete].



You will be prompted for your sudo password, which is the same as your regular password. Nothing will show on the screen as you type your password.



Be very careful. rm removes files immediately and is generally not able to be undone. Check and double-check for typos.



You can use rm -i [filename] to get an Are you sure? prompt.


[#28823] Thursday, March 2, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ampolinhad

Total Points: 88
Total Questions: 100
Total Answers: 116

Location: South Georgia
Member since Tue, Feb 1, 2022
2 Years ago
;