bala
05-16-2003, 07:57 PM
Hello Everyone,
I have a huge directory listing wherein there are sub-directories and files within which i have sub-directories and files and so on on a solaris box.
I need to extract the permissions (e.g., -rwxr-xr-x and owner and group) for all the files and sub-directories and apply them on the same files in a different Sun box.
I am not supposed to tar the files or ftp them as we are using different application to port these files on to the target box. I am supposed to apply only the permissions for those files.
Can anyone suggest me how to do this.
whe i do "ls -lR" it gives permissions in rwx format which i need to convert to octal format and also the directory is not appended to files to apply on the target machine.
Thanks in advance.
I have a huge directory listing wherein there are sub-directories and files within which i have sub-directories and files and so on on a solaris box.
I need to extract the permissions (e.g., -rwxr-xr-x and owner and group) for all the files and sub-directories and apply them on the same files in a different Sun box.
I am not supposed to tar the files or ftp them as we are using different application to port these files on to the target box. I am supposed to apply only the permissions for those files.
Can anyone suggest me how to do this.
whe i do "ls -lR" it gives permissions in rwx format which i need to convert to octal format and also the directory is not appended to files to apply on the target machine.
Thanks in advance.