- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- HPE 9000 and HPE e3000 Servers
- >
- Pls help me with a scripting question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2002 08:38 AM
02-15-2002 08:38 AM
Pls help me with a scripting question
1. grep for owner oracle
2. ensure its a directory owned for oracle
3. chmod 750 on the oracle owned directory.
4. grep for oracle files, etc datfiles in that subdirectory and change permission to 640 on all datafiles.
thanks alot
Jigar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2002 10:45 AM
02-15-2002 10:45 AM
Re: Pls help me with a scripting question
1. grep for owner oracle
use "find", a man on find will reveal how to search by "owner"
find / -user oracle
2. ensure its a directory owned for oracle
This is subjective, and not something a script should or could do.
3. chmod 750 on the oracle owned directory.
using the "find" command you can do such, but I would caution against setting the directory to 750, as non owners might have issues. Check with a DBA first:
find / -user oracle -exec chmod 750 {} \;
4. grep for oracle files, etc datfiles in that subdirectory and change permission to 640 on all datafiles.
find / -type f -name "*.dat" -user oracle -exec chmod 640 {} \;
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2002 12:03 PM
02-15-2002 12:03 PM
Re: Pls help me with a scripting question
I would rather use:
find / -user oracle -type d -exec chmod 750 {} \; as it will get the directory only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2002 07:36 AM
02-16-2002 07:36 AM
Re: Pls help me with a scripting question
# find /etc /usr /opt /dev /sbin /stand -perm -002
This will show both directories as well as files that are world-writable and therefore unsecure.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2002 08:47 PM
02-17-2002 08:47 PM
Re: Pls help me with a scripting question
Just a precautionary note.
There are some execuatable files like "oracle" in the bin directory which you mustn't touch. I have had problems of Oracle instance not coming up after doing such wholesale file permission changes. Please check with your DBA again.
I would rather suggest you to use commands like
chmod +640 for your datafiles.
Regards,
Sukant