LinuxQuestions.org
Register a domain and help support LQ
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, 07: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, 10:25 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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 10:26 PM.
 
Old 12-12-2004, 07: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, 02:34 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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


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


All times are GMT -5. The time now is 11:49 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration