LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-26-2010, 03:45 PM   #1
ubuser
LQ Newbie
 
Registered: Aug 2010
Location: iraq
Distribution: Ubuntu karmic
Posts: 12

Rep: Reputation: 2
Question 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
 
Old 10-26-2010, 03:51 PM   #2
davdunc
LQ Newbie
 
Registered: Dec 2002
Location: Austin, TX
Distribution: Fedora 15
Posts: 23

Rep: Reputation: 1
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".
 
Old 10-26-2010, 05:03 PM   #3
ubuser
LQ Newbie
 
Registered: Aug 2010
Location: iraq
Distribution: Ubuntu karmic
Posts: 12

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by davdunc View Post
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
 
Old 10-26-2010, 08:06 PM   #4
theKbStockpiler
Member
 
Registered: Sep 2009
Location: Central New York
Distribution: Fedora14,Scientific 6.1?, Mandriva 2010 ;GO MAGEIA!!!Next up Gentoo
Posts: 838

Rep: Reputation: 51
GUI Method

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
To delete root permission files in user trash Ramyashree Linux - General 2 07-09-2008 01:00 AM
Files disappeared after permission change Nyphur Linux - General 7 12-24-2006 10:07 AM
Root denied permission to remove files suse_buse Linux - General 3 10-26-2006 07:56 PM
rox + recursive permission change for FILES only? NonSumPisces Linux - Newbie 9 08-11-2004 08:21 PM
how to change exisitng files/directory permission from 755 to 770 mweil Linux - Newbie 3 07-01-2004 11:18 AM


All times are GMT -5. The time now is 03:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration