1

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 ?!!!

RAKuser
  • 11

4 Answers4

2

I think what you are looking for is to use nautilus (that's the name of the default file manager in Ubuntu) as a root user. Although it is not advisable (especially for novice users), it is still possible to do it. Open up a terminal (Ctrl+Alt+T) and type

gksudo nautilus

Alternatively, you can type in the following lines in the terminal window

sudo su
nautilus

Enter your password when it asks for it.

This allow you to run Nautilus with root privileges. So you can now freely edit your files using the GUI instead of the terminal. I still don't see the need for it and I cannot emphasize enough on the potential risks involved. Don't blame me if you break your system using this method. You have been warned!

Anurag M
  • 121
1

It's generally not a good idea to make your user have root privileges. If you need to perform some action that requires root privileges, you can request those privileges just for that particular command with sudo on the console, or kdesudo or gksudo if you're using KDE or Gnome/Unity, respectively.

Jason
  • 163
1

Becoming a user having full Root privileges is not considered a good way of working with Ubuntu (or even Linux in general).

There are a lot of important things that can be messed up if you operate as a root user. You could mess up with your Core OS files. Everything that needs to be done as a root user can be done by using the sudo command.

Also a small tip: Use symlinks to link files in the www folder with the files in your home folder to avoid managing file permissions.

0

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

RAKuser
  • 11