- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sudo and pam issue with Oracle agent
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
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
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
тАО05-14-2009 10:06 AM
тАО05-14-2009 10:06 AM
sudo and pam issue with Oracle agent
I am running an Oracle Enterprise Manager agent on my HP-UX 11.23/PA-RISC system. I'm trying to configure this agent to use 'sudo' to run privileged operations. I've got sudo (1.7.1) installed, and it seem to work fine. I can run it from a command line it it works as I expect. However, when I try to run it indirectly using the EM infrastructure, it fails. If I enable pam debug, I see the following appearing in the syslog:
May 14 12:05:37 valimfg2 sudo: emagent : TTY=unknown ; PWD=/apps/oracle/product/agent10g/sysman/emd ; USER=oracle ; COMMAND=/apps/oracle/product/agent10g/bin/nmosudo core jobsystem jobtype jobname /apps/oracle/product/agent10g/perl/bin/perl - emagent
May 14 12:05:37 valimfg2 PAM: pam_start(sudo oracle)
May 14 12:05:37 valimfg2 PAM: pam_set_item(1)
May 14 12:05:37 valimfg2 PAM: pam_set_item(2)
May 14 12:05:37 valimfg2 PAM: pam_set_item(5)
May 14 12:05:37 valimfg2 PAM: pam_set_item(3)
May 14 12:05:37 valimfg2 PAM: pam_set_item(8)
May 14 12:05:37 valimfg2 PAM: pam_set_item(4)
May 14 12:05:37 valimfg2 PAM: pam_setcred()
May 14 12:05:37 valimfg2 PAM: pam_set_item(2)
May 14 12:05:37 valimfg2 PAM: load_modules: /usr/lib/security/libpam_unix.so.1
May 14 12:05:37 valimfg2 PAM: load_function: successful load of pam_sm_setcred
May 14 12:05:37 valimfg2 PAM: pam_open_session()
May 14 12:05:37 valimfg2 PAM: load_function: successful load of pam_sm_open_session
May 14 12:05:37 valimfg2 PAM: pam_get_username(ux)
May 14 12:05:37 valimfg2 PAM: pam_mapping_in_use()
May 14 12:05:37 valimfg2 PAM: load_modules: /usr/lib/security/libpam_unix.so.1
May 14 12:05:37 valimfg2 PAM: pam_open_session: error General Commercial Security error
May 14 12:05:37 valimfg2 PAM: pam_end(): status = General Commercial Security error
What I think is happening, the emagent process, a background process that doesn't have a TTY associated with it, is trying to spawn the 'sudo' command. Because there is no tty, the PAM authentication is failing with the 'general error'. Does this appear correct, and is there any way to fix this? For now, I see the options as either not use sudo or re-compile sudo to not use PAM.
Any help would be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 10:13 AM
тАО05-14-2009 10:13 AM
Re: sudo and pam issue with Oracle agent
UsePAM no
in your /opt/ssh/etc/sshd_config file ?
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 10:19 AM
тАО05-14-2009 10:19 AM
Re: sudo and pam issue with Oracle agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 10:37 AM
тАО05-14-2009 10:37 AM
Re: sudo and pam issue with Oracle agent
Defaults requiretty
If you find it comment it out.
Also, who does the process run as? Check and make sure that you setup the correct userid in the sudoers file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 11:11 AM
тАО05-14-2009 11:11 AM
Re: sudo and pam issue with Oracle agent
Note that if I log in via SSH, execution via sudo works fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 11:54 AM
тАО05-14-2009 11:54 AM
Re: sudo and pam issue with Oracle agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 01:48 PM
тАО05-14-2009 01:48 PM
Re: sudo and pam issue with Oracle agent
To me, the syslog error indicates a PAM problem and not a sudo problem. Sudo is fairly good about logging configuration errors. I'm still fixated on the TTY aspect; I think that sudo can deal with no TTY (requiretty disabled), I don't think PAM can deal with sudo dealing with no TTY.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2009 07:23 AM
тАО05-15-2009 07:23 AM
Re: sudo and pam issue with Oracle agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2009 07:48 AM
тАО05-15-2009 07:48 AM
Re: sudo and pam issue with Oracle agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2009 03:29 PM
тАО05-15-2009 03:29 PM
Re: sudo and pam issue with Oracle agent
What are the contents of sudoers file?
And did you follow the procedure
similar to the following:
http://download.oracle.com/docs/cd/B16240_01/doc/install.102/e13059/dcapi.htm
I also think you might need to take a look at
nmosudo.props file.
Cheers,
VK2COT