LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 07-09-2012, 01:09 PM   #1
nine9nine
Member
 
Registered: Jan 2011
Distribution: Ubuntu
Posts: 123

Rep: Reputation: 1
Regain file permissions


Hi, everyone. I recently had to reinstall my Ubuntu 12.04 system, so before I did, I backed up all of my files. For some reason, when I did, all of my files were given to 'root' as the owner. This means, that when I copied them back, I can't access any of them. I am able to open Nautilus as root, and manually edit each folder's and file's permission, but I have a lot of files, so this would be very time consuming. Is there a way that I can edit all of the permissions at once? (Highlighting them all doesn't work, I tried)
 
Old 07-09-2012, 01:25 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
see the chown and chmod command. To be run from the terminal.
Code:
chown -R user:group folder/
Where -R is recursive.

Learn more:
man chown
man chmod
 
Old 07-09-2012, 05:25 PM   #3
nine9nine
Member
 
Registered: Jan 2011
Distribution: Ubuntu
Posts: 123

Original Poster
Rep: Reputation: 1
Thanks, that worked! I did have to put "sudo" in front of it, but then it worked.
 
Old 07-09-2012, 07:57 PM   #4
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
FYI here's an interactive way to learn chmod. It's how I learned it several years ago.

http://catcode.com/teachmod/
 
  


Reply



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
Need To Regain Lost Functionality (re.New KDEs) rainbowsally Linux - Software 5 01-26-2012 02:26 PM
how do i regain root access on ubuntu? tongsak77 Linux - Newbie 6 12-19-2011 12:03 PM
LXer: Koha in fight to regain its own trademark LXer Syndicated Linux News 0 11-24-2011 03:20 AM
LXer: VCs regain interest in open source LXer Syndicated Linux News 0 03-06-2008 08:30 PM
regain disk space lost cirosoto Linux - Distributions 1 07-21-2004 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:45 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
Open Source Consulting | Domain Registration