Platform: CentOS 5.6 x86_64
I have a production server and a development server. I want to debug file ownership and permissions in a large directory structure that is almost identical to give or receive multiple ephemeral files in temporary caches.
Does anyone know if this is possible? Manually checking a file for a file would be impractical given the size of the directory tree.
Thanks in advance.
http://linuxconfig.org/backup-permissions-in-linux
This is a BEST script for bakup and restoring directory permissions. When you get a list of directory permissions from both servers, just run diff for them (you might want to make some modifiers before)
Just use find on both directory servers with the -ls flag, for example:
find directory_a -not ( test_for_ephemeral_files ) -ls > listing_a find directory_b -not ( test_for_ephemeral_files ) -ls > listing_b diff listing_a listing_b
Source: https://habr.com/ru/post/1380159/More articles:PHP: converting String to an integer without removing leading zeros - phpCDI @ConversationScoped with AJAX - java-ee-6File OperationsWhat is the difference between the string s = "something"; and String s = new line ("something"); - javaCodeigniter - Form helper set_select () - phpLua: Is there a way to combine null values? - nullC # dictionary return type - dictionaryAJAX Progressive Exit - ajaxDbAcl :: check () - ARO / ACO node check failed in permission. - cakephpWhat spatial data structure (algorithm) is best suited for (searching) a set of areas (spatial data)? - c #All Articles