GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Restricted SAM: Script aborted
Operating System - HP-UX
1847563
Members
3550
Online
110265
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
10-09-2003 02:47 PM
10-09-2003 02:47 PM
Restricted SAM: Script aborted
I configured a RSAM item for the account "oper" to run a script which owned by account "sybase" in HP-UX 11.0 platform.
If the RSAM item is executed by "sybase", no problem found. But when the RSAM item is executed by "oper", the script aborted.
My understanding is the RSAM would "su" to sybase to execute the script. How come the script abort. Therefore, I insert a line into the script show the user id. The result is:
When run by sybase: The "id" showed:
uid=101(sybase) gid=101(sybase) groups=103(sybase's 2nd group1),351(sybases's 2nd group2)
When run by oper: The "id" showed:
uid=101(sybase) gid=101(sybase) groups=20(users),212(oper's 2nd group1),320(oper's 2nd group2),351(oper's 2nd group3)
Do you have any idea about this? Thanks.
If the RSAM item is executed by "sybase", no problem found. But when the RSAM item is executed by "oper", the script aborted.
My understanding is the RSAM would "su" to sybase to execute the script. How come the script abort. Therefore, I insert a line into the script show the user id. The result is:
When run by sybase: The "id" showed:
uid=101(sybase) gid=101(sybase) groups=103(sybase's 2nd group1),351(sybases's 2nd group2)
When run by oper: The "id" showed:
uid=101(sybase) gid=101(sybase) groups=20(users),212(oper's 2nd group1),320(oper's 2nd group2),351(oper's 2nd group3)
Do you have any idea about this? Thanks.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 02:59 PM
10-09-2003 02:59 PM
Re: Restricted SAM: Script aborted
Hi,
Have a look at other environment varibles required to run that script.
See when you run the script as sybase it might have all the ENV varaibles but with other user it might not as you are doing just su.
So see if you are exporting all the varaibles it requires before you run the script.
Cheers
Rajeev
Have a look at other environment varibles required to run that script.
See when you run the script as sybase it might have all the ENV varaibles but with other user it might not as you are doing just su.
So see if you are exporting all the varaibles it requires before you run the script.
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 03:03 PM
10-09-2003 03:03 PM
Re: Restricted SAM: Script aborted
My understanding is that you have to set up the oper account in restricted sam itself. I think you do this with the sam -r command. That lets you authorize the user explicitly.
To get a script execute as another user, the following methodology is reauried:
su - username -c "command"
That lets root su - and execute commands as sybase or oracle or anybody.
SEP
To get a script execute as another user, the following methodology is reauried:
su - username -c "command"
That lets root su - and execute commands as sybase or oracle or anybody.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 04:04 PM
10-09-2003 04:04 PM
Re: Restricted SAM: Script aborted
I inserted "env" into the script. Found that all sybase environment variables are included even running by "oper", however, several system environment variables are still remained as "oper", such as
LOGNAME=oper
HOME=/home/oper
PWD=/home/oper
It seems problem may be caused by this.
But how to avoid this, how come RSAM won't change this also?
LOGNAME=oper
HOME=/home/oper
PWD=/home/oper
It seems problem may be caused by this.
But how to avoid this, how come RSAM won't change this also?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP