Search Results

Search: Posts Made By: ave-phoenix
1,623
Posted By zaxxon
I did not understand. You want a script that...
I did not understand.

You want a script that takes [yes|no] and if the answer is "yes", you want it to echo some text, right?
As a side note, you do not need to sudo for a simple echo. Every user...
10,699
Posted By methyl
Until we find out what the O/P actually typed I'd...
Until we find out what the O/P actually typed I'd be wary of doing a blunt permissions change from root.
Knowing what was actually typed would help cut the list down because we could no doubt...
10,699
Posted By Scott
A nice Linux option :) Thanks! If you run...
A nice Linux option :) Thanks!

If you run it this way, then you can just copy the file to the target and run it...

find / -type f -o -type d -printf "chmod %m %h/%f\n" > /root/do-restore.sh
10,699
Posted By maverick_here
Use find
Hi,

If both the servers were identical prior to change ,then on the server thats good run the following

find / -type -printf "%h/%f %m\n" >> /root/do-restore.sh

Then copy the...
10,699
Posted By methyl
What was the current working directory at the...
What was the current working directory at the time? Was it "/" or "/root" or some other directory?

What did you actually type?
Or if this is a script, what is in the script?

Do commands on...
10,699
Posted By Scott
:eek: Good questions. I might have made...
:eek:

Good questions.

I might have made a bit of an assumption. Forget the script!

But there shouldn't be too many files in / itself, so I was guessing it was bad :)
10,699
Posted By methyl
Were you logged in as "root"? What directory...
Were you logged in as "root"?
What directory were you in at the time?
What did you type?
10,699
Posted By Scott
Hi. Not sure if this is so great, but based...
Hi.

Not sure if this is so great, but based on this thread: https://www.unix.com/unix-dummies-questions-answers/140509-ls-show-numeric-permission-bit.html

Run this on the server with the good...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 06:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy