LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   PERMISSIONS DENIED {Solved} (https://www.linuxquestions.org/questions/linux-newbie-8/permissions-denied-%7Bsolved%7D-722124/)

leighroy 04-27-2009 09:23 PM

PERMISSIONS DENIED {Solved}
 
Ok ive seen several questions regarding this problem and have found a solution. (its worked for me anyways lol)
Open the terminal and login as root:
su

Change the directory to where the files/folders are located:
cd /dir/dir/dir

Then change the ownership of the file/folder:
This is using my login name (replace with your own)
chown -r leighroy *
if the above doesnt work then use:
chown leighroy *

Keep the terminal open while you do what you have to do with the file/folders.

Also i change the ownership back to root after i am done with that particular file/folder.

Hope this helps some people that have had problems with this.

JZL240I-U 04-28-2009 01:27 AM

That is a little bit brutal / global ;) (maybe except for when you are in your /home/leighroy directory). I'd suggest you chown only the file(s) which are giving you truoble...

David the H. 04-28-2009 01:33 AM

Uhm, just what problem is this supposed to solve, anyway? If you need to manipulate root files there are certainly much better ways to do it than to chown them. Sudo, for example. For that matter, if you already have root access, why do you need to change anything?

leighroy 04-28-2009 01:51 AM

well my browser was slow so i needed to disable the ipv6 and i kept getting the permissions bullshit.
couldnt use my dvd or cd drive.
so it solved some major problems for me and for some reason i couldnt do in the terminal.
and no i dont have root access

chrism01 04-28-2009 02:51 AM

In your 1st post you said you logged in as root (su), so you DO have root...
In any case, you should really use 'su -', the '-' gives you roots env, otherwise you become root but with your orig user's env.


All times are GMT -5. The time now is 08:20 PM.