0

Actually i'm trying to copy some business purpose files into root folder but it's not allowing to access the root folder. When i'm trying to change the permissions of the folder, its showing that you are not the owner so that you cant change the permissions of this directory. Please help me..

3 Answers3

5

Hmm... instead of explaining how to change permissions on the root folder I'll just say "you should not copy business-purpose files anywhere outside your home folder"

Your home folder is for your files. Folders outside your home folder are for system files. Changing permissions of those folders is not considered a good practice.

Having said that, if you still want to copy files, you can do this by starting file manager in superuser mode by pressing Alt-F2 and typing gksu nautilus.

It'll ask you for your administrative password, after which you'll be able to copy files.

Sergey
  • 44,353
1

You should not, IMO, be changing ownership or permissions on system file, including /root.

If you need to copy files to /root use sudo or gksu

sudo cp file /root

gksu nautilus

See:

https://help.ubuntu.com/community/RootSudo

https://help.ubuntu.com/community/FilePermissions

Panther
  • 104,528
-1

In order to change anything that require root permissions "Superuser" you must have root access capabilities. This must be done by providing the root password in order to change the files. You can either do this in a few different ways. Examples:

sudo -s

After typing the following command it will prompt your for the root password in which you will provide and hit enter. If it is accepted then you will have full capabilities to do whatever you want on the system.

Another way is to use sudo before every command that requires root permissions. Example:

sudo chmod 755 /etc/passwd

In which this case /etc/passwd is a file that is read only to all users besides root and requires root permissions in order to change. After typing this command you will still be prompted for a root passwd.