I am a Ubuntu user, recently I switched from Ubuntu 14.04(Unity one) to Ubuntu 14.04 (GNOME one). I have used Ubuntu 14.04 for around one year and never faced issues in creating, modifying and deleting files in my home folder when logged in as administrator.
Now in GNOME I don't have permissions to delete, open and modify some files. I cannot even move one folder into another. There is an error saying you cannot handle this folder because you don't have permissions to read it.
I followed some links and tried to change permissions by right clicking on the folders but still I don't get permissions. If I perform operations in terminal using 'sudo' there are no problems but why cannot I do things through GUI? How to get these permissions? These problems weren't there in my previous Ubuntu, I was the owner of all the files and folder and could do anything from GUI only.
I am facing one more problem. I am an android studio user and there are some projects in my home folder, some of the project files are shown with a lock icon on them and only root can access them. So, when I run studio it cannot access those files and shows error. Moreover I have installed android studio, made a project and saved it. I created a desktop entry for the studio.sh file so that I don't have to run the studio.sh file from terminal again and again. When I open android studio now whether through terminal or even the launcher I am greeted with fresh setup again. I run the studio.sh file using 'sudo' only. I feel like both the issues are there because I don't have required permissions. Any help is appreciated.
sudo -cR gautamp8 /home
but terminal shows different usages on pressing enter. – gautamp8 Jan 26 '16 at 12:02sudo -cR gatamp8:gautamp8 /home
but not working. I explored more on your answer and found that this command will change the owner of all folders and subfolderssudo chown -R username:group directory
and its working for me. http://askubuntu.com/questions/6723/change-folder-permissions-and-ownership . You can update your answer with this command and I will mark it as correct :) Thanks! – gautamp8 Jan 26 '16 at 12:32-c
shouldn't have an effect there, it just says, that only files are displayed where the changing of the ownership actually took place. – h0ch5tr4355 Jan 26 '16 at 12:37chown -R
worked for me. I tried your solution by using different ways but it is not working. – gautamp8 Jan 26 '16 at 12:59-cR
instead of-R
? – h0ch5tr4355 Jan 26 '16 at 13:04sudo -cR gatamp8:gautamp8 /home
is not working but yessudo chown -cR gatamp8:gautamp8 /home
is working and showing me the list of files whose ownerships are being changed. In the answer you haven't addedchown
which is why it is not working. – gautamp8 Jan 26 '16 at 13:12