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 Answers
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.
-
Wow its working.. Thanku so much for the speed responce and help.. Feb 17, 2012 at 6:43
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:
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.
-
I should also add that if you are asking this question, then you probably shouldnt be changing any files or folders that require root permissions and that you should ask your sys admin to help you with the situation Feb 17, 2012 at 6:29
-
-
sudo cp <filename-to-be-copied> /
You could also typegksudo nautilus
to open the file browser and copy the file with a graphical interface. If you absolutely need to change the permissions, take a look at askubuntu.com/questions/6723/…