How to generate nested folder permissions


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to generate nested folder permissions
# 1  
Old 04-21-2008
How to generate nested folder permissions

Hi expert,

I would like to know how to generate file and folder ( including nested subfolder and files) permissions under oracle directory ?
# 2  
Old 04-21-2008
What do you mean by "generate permissions"? All files have permissions; if you want to change them all, you want chmod -R (and/or possibly chown -R if you want to change the owner to the Oracle user).
# 3  
Old 04-21-2008
Hi,
Auditor wants to see the all the files and folders permissions under oracle directory and there're many of them ( sub folders within sub folders ).Do you have any idea to retrieve those permissions ?
Thanks.
# 4  
Old 04-21-2008
If you just want to see permissions as displayed in output of ls -l, you can use this command.

Code:
find ORACLE_DIR -exec ls -l {} \

Provide your oracle root dir name in place of ORACLE_DIR. You may prefer to redirect the output to a file.
# 5  
Old 04-21-2008
Forgot about the option R in ls.

You can also use
Code:
ls -Rl ORACLE_DIR

# 6  
Old 04-21-2008
Code:
find . -ls

Replace . with the path to the Oracle directory.

This is easy to extend if you want to narrow your search to, say, only files which are not owned by the oracle user, or files which are writable by group, or files which are world readable, etc. The find manual page explains (somewhat painfully) how to add more conditions to the command line.
# 7  
Old 04-21-2008
Quote:
Originally Posted by krishmaths
Forgot about the option R in ls.

You can also use
Code:
ls -Rl ORACLE_DIR

Hi krishmaths,
Thanks alot. your command find /oracle -exec ls -lR {} \; works.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Umask to generate files with rwx permissions for all

i need my script1.sh to generate /tmp/temp.txt with full permissions i.e -rwxrwxrwx 1 user1 users 23 Dec 16 10:52 /tmp/temp.txtmore script1.sh umask 666 echo "hello">/tmp/temp.txt But the script1.sh generates temp.txt with different permissions as shown below. -rwxr-xr-x 1 user1 users... (6 Replies)
Discussion started by: mohtashims
6 Replies

2. Shell Programming and Scripting

Needed script to generate versions for a file and maintian them in a folder

need a shell script for the following requirement how to generate 5 versions of a file in a folder after generating them in a folder i want to maintian the past 2 versions of the file in the folder and i have to delete the the remaining. for example if i ran the script today and tommorow... (3 Replies)
Discussion started by: hemanthsaikumar
3 Replies

3. UNIX for Dummies Questions & Answers

General question about folder level permissions

How is the level of access on a particular folder determined? I have heard (its just hearsay so am not particularly sure of it) that the access a particular user/group has to a low level directory is also affected by the level of access granted to the user/group on its parent directories. e.g. ... (1 Reply)
Discussion started by: jawsnnn
1 Replies

4. Ubuntu

Folder permissions

Hi Team, I want to set permissions to one folder in such a way that the user can write files or create folder inside that but should not able to delete it. Basically reason behind this is i am using Pidgin Messenger. There is a directory of logs in which, when user chat its store his logs.... (2 Replies)
Discussion started by: paragnehete
2 Replies

5. Red Hat

Need to compare two folder / FS permissions

Hi, Need to compare two folders / File systems permissions & time stamps including sub folders and files. Kindly let me know if any commands available. Regards :: VM (1 Reply)
Discussion started by: novaothers
1 Replies

6. Shell Programming and Scripting

Folder permissions to delete

I am using the below command to delete files from directories and subdirectories find /test/abc/xyx -type f -mtime +7 -exec rm -f {} \; there are some subfolders in xyx for which i don't have permission to delete. Is there a way i can check the permission of the folder first and then delete... (4 Replies)
Discussion started by: ch33ry
4 Replies

7. UNIX for Dummies Questions & Answers

Permissions of the folder var/www

what should be the permissions of the folder var/www in my ubuntu ? I need it to be safe and at the same time I need ftp users to be able to edit it. I was wondering if I should create a group with all permissions and add ftp users to this group in unix. what's the standard way to do it ?... (4 Replies)
Discussion started by: aneuryzma
4 Replies

8. Shell Programming and Scripting

mkdir: copying a folder's permissions

Hi, I wanted to know how to create a folder using mkdir and then have it copy the permissions from another specified folder on the system. For example if I did this: mkdir /Volumes/USBSTICK/System How can I make it copy the permissions from the /System folder ? Thanks (4 Replies)
Discussion started by: pcwiz
4 Replies

9. Windows & DOS: Issues & Discussions

folder permissions

I work for a big company and all the people within my unit share a common drive to save documents to. I am listed in the group(AMS group) that has access rights to folders within this drive. but i'm trying to restrict access to a confidential folder so that only I can access it. when I set the... (0 Replies)
Discussion started by: shed
0 Replies

10. UNIX for Dummies Questions & Answers

User home folder permissions catch-22, help!

Hi everyone. My objective is to configure a Solaris 10 box as follows: There will be many simultaneous users connecting to it, and each of those users would automatically get a home folder. For example, when I add user "Bob", the home folder would be /export/home/Bob And for Mary, it's... (3 Replies)
Discussion started by: EugeneG
3 Replies
Login or Register to Ask a Question