AIX 5.3 Using sudo to control smit


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Operating Systems AIX AIX 5.3 Using sudo to control smit
# 1  
AIX 5.3 Using sudo to control smit

Does anyone have any experience using sudo to control smit on AIX 5.3?

These are the smit commands that I want certain users to execute:
Code:
# Cmnd alias specification
Cmnd_Alias SMIT = /bin/smit hacmp, \
/bin/smit pxdam, \
/bin/smit cl_lsuser, \
/bin/smit cl_users, \
/bin/smit cl_passwd

Specifically, I am having issues with smit cl_lsuser and smit cl_users. I get these messages:
Code:
0518-506 odmget: Cannot open object class HACMPnode
Check path name and permissions.
cl_lsuser: Unable to determine node list for the cluster.
0518-506 odmget: Cannot open object class HACMPlogs
Check path name and permissions.
The cluster log entry for cspoc.log could not be found in the HACMPlogs ODM.
Defaulting to log directory /var/hacmp/log for log file cspoc.log.

It looks like it is no longer running as root. Does anyone have any ideas? Any and all assistance would be greatly appreciated.

Moderator's Comments:
Mod Comment Please use code tags!

Last edited by zaxxon; 12-01-2011 at 03:31 AM.. Reason: code tags, see PM
# 2  
It may also be a problem with environment variables. Do you know if smit needs any particular settings in the environment?
This User Gave Thanks to Corona688 For This Post:
# 3  
No, I don't know if smit needs any particular settings in the environment. Is there a way to determine that?
# 4  
Hi,

You may want to take a look at this: Help -
This User Gave Thanks to admin_xor For This Post:
# 5  
I do not think it is a good idea,
any time you can press F9 and you will get out to shell with root privileges.
Then whole idea to limit users to few smitty fast-paths does not have sense any more.
This User Gave Thanks to gito For This Post:
# 6  
Thanks everyone for your input! With your help, and others, I have been able to resolve this issue. To resolve the shell issue, I set environment variable SMIT_SHELL for root to 'n'. To resolve the other issues, I had to configure sudo to do 'su' to root and then execute the smit command, e.g., su - root -c /bin/smit hacmp.
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #933
Difficulty: Medium
Microcontrollers operating within embedded systems (such as the Raspberry Pi, Arduino, and other similar systems) always have internal hardware to keep track of time.
True or False?

10 More Discussions You Might Find Interesting

1. AIX

Sudo error on AIX 7.1

Hello, I tried installing sudo on a lab AIX server. It has been successfully installed. but i still see the below errors. />sudo -V Sudo version 1.8.27 Configure options: --prefix=/opt/freeware --sbindir=/opt/freeware/sbin --libdir=/opt/freeware/lib --mandir=/opt/freeware/man... (8 Replies)
Discussion started by: System Admin 77
8 Replies

2. Cybersecurity

sudo - AIX - User privilege specification

I am planning to implement sudo for users. Under , it looks I have to put the users who need to have sudo access: What are the recommended for users? I don't think I need to give the ALL privilege (i.e ) to AIX users. I'd like to know the commonly used privilege specification for sudo... (1 Reply)
Discussion started by: Daniel Gate
1 Replies

3. AIX

How do I killed ideal users from AIX 5.3 smit?

Hi, I'm newbee to AIX and would like to setup a process which kills 1 Hr. ideal users from smit. Please advise for making it work. :) Thanks, Sumit (2 Replies)
Discussion started by: sumit30
2 Replies

4. UNIX for Dummies Questions & Answers

control permissions for Active Directory users on AIX

Hello, I've configured an user authentication against Active Directory (Windows Server 2008 R2) on AIX V6 with LDAP. It works fine. And here's my problem: How can I control ldap user permissions on the local AIX machine? E.g. an AD user should be able to write all files of local sys... (1 Reply)
Discussion started by: xia777
1 Replies

5. Shell Programming and Scripting

Using expect script with AIX's SMIT in cron

My searches turned up nothing relevant, so I apologize if this has already been looked at. I am trying to run an expect script from a Solaris machine, that ssh's into an AIX machine, and interacts with a SMIT created menu system that runs a few backups for me. The expect script runs fine when... (0 Replies)
Discussion started by: Mariognarly
0 Replies

6. Solaris

SMIT i AIX Sun Solaris ?

i now when i want use the smit in AIX is possible but a ask if you has in sun same job in sun tel me please awating supports (3 Replies)
Discussion started by: Yalmalki
3 Replies

7. AIX

AIX 5.3 sudo bootinfo

I am trying to understand why I get "0" returned when I run the command sudo bootinfo -r. I know bootinfo isn't really supported in versions higher then AIX 4.2. I also know that instead of bootinfo -r I could use lsattr -El sys0 -a realmem | awk '{print $2}' and produce the same output as ... (1 Reply)
Discussion started by: maverick9576
1 Replies

8. UNIX for Dummies Questions & Answers

Probably an easy AIX-SMIT question with mkroute

Hi All, I am on a project and logging into about 100 servers one at a time. One of the steps I am performing is setting up a link with smit mkroute. I am using AIX versions 5.2 and 5.3 Does anyone know a quick command line to set DESTINATION ADDRESS, GATEWAY address, Network MASK, and... (5 Replies)
Discussion started by: jeffpas
5 Replies

9. AIX

Install sudo on AIX 5.3

I'm trying to install sudo on AIX 5.3. I don't have a compiler on my machine, so I was trying to find a binary. The one found at http://www.bullfreeware.com/listaix52.html that is supposed to work for 5.3 even though it was compiled on 5.2. The issue is I'm new to AIX and could not figure out how... (3 Replies)
Discussion started by: sphericon
3 Replies

10. What is on Your Mind?

AIX Smit menu designer. WinSmit

Hi, Please excuse me for posting an "ad" message here. Over the last few months I have created software called WinSmit, with this tool you can create your own AIX smit menus and corresponding message files. We all know the smit or smitty menus that IBM provides to maintain the system, the... (6 Replies)
Discussion started by: mimyrtek
6 Replies

Featured Tech Videos