|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Hi
I am not new to Unix, but couldn't think of a simpler way to determine if given two directories (mostly containing the same contents) differ in user permissions & owner for the same corresponding same files The below example, Dir A & Dir B have contain identical contents except that the file/dir permissions and the owner are different for the corresponding files/dirs Dir A drwxrwxrwx user1 grp1 dir 1 -rwxr-xr-x user2 grp2 file 1 -rwxrwxrwx user3 grp1 file 2 Dir B drwxrwxr-x user1 grp1 dir 1 -rwxr-xr-x user2 grp3 file 1 -rwxr-xr-x user3 grp1 file 2 I would appreciate if anybody could suggest a clean solution to determine for every file/dir within how they differ: owner only permissions only both owner and permissions Thanks in anticipation, Jason. |
|
#2
|
|||
|
|||
|
do some long listing (as you show) of DirA into a file (fileA.list)
do some long listing of DirB into a file (fileB.list) diff fileA.list fileB.list
__________________
-- I'll provide you with reference points; if they dont work, refer to something else. If you process text, this might make your life a little easier. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > How to compare two identical directories for possible different permissions and owner |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|