LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How can i change the permission of root files or looked files ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-change-the-permission-of-root-files-or-looked-files-840592/)

ubuser 10-26-2010 02:45 PM

How can i change the permission of root files or looked files ?
 
I had used test desk program to restore my files ,
the files that recovered was saved in home folder ,
the problem is that these files are become root permission only ,so i cant
copy , move theme .

So anyone thankfully explain how can i change the permission of these files

davdunc 10-26-2010 02:51 PM

I ran into something like this not too long ago.

The first and most important command you are looking for is chown.
You are going to want to change a lot of files at once so you will want to make that change recursive over the home directory it will look something like this:
Code:

[davdunc@mps1530 ~]$ chown -R davdunc:davdunc /home/davdunc
I am using davdunc as both the user name and group name here because I expect you have "user-private groups".

ubuser 10-26-2010 04:03 PM

Quote:

Originally Posted by davdunc (Post 4140109)
I ran into something like this not too long ago.

The first and most important command you are looking for is chown.
You are going to want to change a lot of files at once so you will want to make that change recursive over the home directory it will look something like this:
Code:

[davdunc@mps1530 ~]$ chown -R davdunc:davdunc /home/davdunc
I am using davdunc as both the user name and group name here because I expect you have "user-private groups".

Thanks man

theKbStockpiler 10-26-2010 07:06 PM

GUI Method
 
log on as root, change the permissions of the file as root to whatever and then log on to user.


All times are GMT -5. The time now is 12:15 AM.