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
07-30-2002 01:45 PM
07-30-2002 01:45 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 04:12 PM
07-30-2002 04:12 PM
Re: HPUX
I think you have to play with CHMOD/CHOWN command
Regards
Harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 07:33 AM
07-31-2002 07:33 AM
Re: HPUX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 07:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 07:34 AM
07-31-2002 07:34 AM
Re: HPUX
su oracle -c "full_path_and_script parameters"
Jeanine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 07:42 AM
07-31-2002 07:42 AM
Re: HPUX
su -
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 07:56 AM
07-31-2002 07:56 AM
Re: HPUX
# su - A -c full_path_name_of_user_A_script
And root as user B:
# su - B -c full_path_name_of_user_B_script
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 08:10 AM
07-31-2002 08:10 AM
Re: HPUX
For example create a script called say ownerx with the line "touch fish".
Now set the owner of the script to UserA (chown userA ownerx).
Now set the permissions to 4700 (chmod 4700 ownerx).
Now as root run the script ownerx and then look at the owner of the file "fish" and it should be UserA.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 08:22 AM
07-31-2002 08:22 AM
Re: HPUX
. /usr/local/bin/oraenv.sh
You then do an su username and your script runs as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 10:35 AM
07-31-2002 10:35 AM
Re: HPUX
If the permissions are set correctly, root has the potential to run anything. (Now for security reasons, you may not *want* root to run it, but that's another story.)
For example, if script A is like this (ls -l scriptA):
-rwxr-xr-x userA users .... scriptA
root can run the script. It will be run as root, though. The command to get it to look like the above example would be (done as root or as userA):
chmod 755 scriptA
(If you've never seen it, the chmod command also has a "symbolic" mode that makes it much easier to remember.)
Sorry if this was all old news. I was going on the comment in your forums profile. :)
--Misa