LinuxQuestions.org
Help answer threads with 0 replies.
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 12-11-2004, 06:44 PM   #1
bminish
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
Help restoring file permissions from a Dump


I have messed up my file permissions
sudo chmod -R 777 / instead of sudo chmod -R 777 /mnt/some_dir

I have daily dump files and I would like to restore all the file permissions from these dumps, preferably without actually restoring the dumped files since restorign the files will overwrite all the things that I did today

any help apprecated. I am running fedora core 3

regards
Brendan
 
Old 12-11-2004, 09:25 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi, and welcome to LQ!

Can I introduce you to one of LQ's most excellent
features? It's the "search" button.

http://www.linuxquestions.org/questi...der=descending
There's a list of post with a similar topic.

http://www.linuxquestions.org/questi...re+permissions
http://www.linuxquestions.org/questi...re+permissions
And this is probably what you wanted ... part
of the search results.


Cheers,
Tink

Last edited by Tinkster; 12-11-2004 at 09:26 PM.
 
Old 12-12-2004, 06:10 AM   #3
bminish
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Tinkster
Hi, and welcome to LQ!

Can I introduce you to one of LQ's most excellent
features? It's the "search" button.

Cheers,
Tink
Thanks Tink but the search results only deal with restoring permissions from the rpm database, whilst this is useful this does not actually help me much
I have a full and fairy up to date backup of my entire file system. I can if there are no other options restore the entire dump but would prefer to just restore the permissions from the dump file without actually restoring the files.

.Brendan
 
Old 12-12-2004, 01:34 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Sorry - my bad :}

/me makes the excuse that he had high fever and didn't think straight...

What you could do is extract the information you need
using tar -tvzf (or tvjf if bzip compressed) and feed that
back to chmod ... a bit of scripting to translate
-rw-r--r-- (and the likes) into something chmod can under-
stand should be possible within a reasonable abount of
time...
tar -tvzf dump.tgz | awk '{print $1" "$6}'
being the base you want to use...


Cheers,
Tink
 
  


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
restore file or dir from dump file brumela Linux - Newbie 7 01-19-2023 08:20 AM
MySQL :: Restoring Dump Swakoo Linux - General 6 09-09-2005 01:27 AM
restoring default device ownerships/permissions under_r_run Linux - Newbie 5 07-27-2005 01:27 PM
Need help restoring /var permissions Thiink Slackware 1 02-21-2005 05:36 AM
How to forcely dump the history of user commands to the admin dump file. mcp_achindra Linux - Security 1 03-19-2004 12:04 PM

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

All times are GMT -5. The time now is 06:24 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