![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Newly created files default group and write permissions | goldfish | UNIX for Dummies Questions & Answers | 2 | 02-20-2008 02:39 PM |
| Files created in last 24 hours | jayaramanit | Shell Programming and Scripting | 1 | 09-08-2007 01:34 AM |
| How to list files Created in last 2 hrs | rsonakiya | UNIX for Dummies Questions & Answers | 2 | 05-12-2004 12:22 PM |
| new directory - how to force files created in it to inherit grp,own and permissions | avisb | UNIX for Dummies Questions & Answers | 2 | 04-26-2002 01:47 PM |
| Two Files Created For Every One? | Atama | UNIX for Dummies Questions & Answers | 1 | 04-12-2002 01:44 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
files created with different permissions
Hi,
Within a SQL file i am calling 5 shell scripts in back ground and redirecting their outputs to different log files in a specific directory. Now when I observed is, the log files are created with different permissions even though i did not do any thing specific. For example in run_scripts.sql I am doing: ! nohup /u36/app/1SR/v69/111.sh > /nw_disk1/oradb/flatfile/log/111.log & ! nohup /u36/app/1SR/v69/222.sh > /nw_disk1/oradb/flatfile/log/222.log & ! nohup /u36/app/1SR/v69/333.sh > /nw_disk1/oradb/flatfile/log/333.log & ! nohup /u36/app/1SR/v69/444.sh > /nw_disk1/oradb/flatfile/log/444.log & ! nohup /u36/app/1SR/v69/555.sh > /nw_disk1/oradb/flatfile/log/555.log & After the scripts are executed when i checked in /nw_disk1/oradb/flatfile/log directory: ls -ltr *.log -rw-r--r-- 1 oracle dba 1059 Jul 16 06:15 111.log -rw-r--r-- 1 oracle dba 1428 Jul 16 06:15 222.log -rw-r----- 1 oracle dba 1059 Jul 16 06:15 333.log -rw-r----- 1 oracle dba 1212 Jul 16 06:15 444.log -rw-r----- 1 oracle dba 1129 Jul 16 06:15 555.log How this is possible? Only first 2 log files have read permissions for others. Thanks in advance. |
| Forum Sponsor | ||
|
|
|
|||
|
Unless you own the files - and those are owned by oracle - your umask will not affect permissions on those files - in the case when they already existed to start with and you are just overwriting them. Or if you execute a umask statement somewhere in your code, obviously.
|
|||
| Google The UNIX and Linux Forums |