Sponsored Content
Full Discussion: Sudoers Installation in AIX
Operating Systems AIX Sudoers Installation in AIX Post 302424402 by Sounddappan on Tuesday 25th of May 2010 06:52:16 AM
Old 05-25-2010
Sudoers Installation in AIX

1. Download the rpm file needed to install the sudoers package in AIX
AIX open sources rpms
Search for the file sudo-1.6.7p5-3.aix5.1.ppc.rpm and download it
2. Copy the downloaded file to the AIX servers /tmp/SUDO directory
3. change the permission to chmod 777 <Filename>
4.smitty install-> Install and Update Software-> Install Software-->INPUT device / directory for software [.]#current directory
SOFTWARE to install (Press Esc+F4 which displays the rpm file in the directory)
ACCEPT new license agreements? Yes
and press enter to install the rpm File on your machine
5. Configuring logs for Sudo
Code:
vi /etc/sudoers
place an entry @ the end of the file
Defaults log_year,logfile=/var/log/sudo.log
SUDOERS FILE SAMPLE
# visudo
------------------------------------------------------------------------------------------
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# User privilege specification
root ALL=(ALL) ALL
sound ALL=(ALL) ALL
uday ALL=(ALL) ALL
sandeep ALL=(ALL) ALL
neha ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
Defaults log_year,logfile=/var/log/sudo.log
#Defaults syslog=auth

----------------------------------------------------------------------------------------------------
6.Enter visudo command to view and putting an entry of the users in the /etc/sudoers quit it by saving it.
7. Login into the userlogin by opening a duplicate session of su <user name> and enter sudo -s for sudo -s login credentials.
8. Finally check the log file
Code:
# more /var/log/sudo.log
May 14 18:37:20 2010 : sound1 : TTY=pts/1 ; PWD=/home/sound1 ; USER=root ; COMMAND=/usr/bin/ksh
May 14 18:50:06 2010 : uday : TTY=pts/0 ; PWD=/ ; USER=root ; COMMAND=/bin/bsh
May 14 19:23:34 2010 : sound1 : TTY=pts/3 ; PWD=/home/sound1 ; USER=root ; COMMAND=/usr/bin/ksh
May 17 14:23:05 2010 : sound1 : TTY=pts/2 ; PWD=/home/sound1 ; USER=root ; COMMAND=/usr/bin/ksh
May 17 14:27:56 2010 : neha : TTY=pts/2 ; PWD=/home/neha ; USER=root ; COMMAND=/usr/bin/ksh
May 17 14:30:45 2010 : neha : TTY=pts/2 ; PWD=/home/neha ; USER=root ; COMMAND=/usr/bin/ksh
May 17 14:31:49 2010 : sandeep : TTY=pts/2 ; PWD=/home/sandeep ; USER=root ; COMMAND=/usr/bin/ksh

This is the way to use the sudoers in AIX.

Last edited by pludi; 05-25-2010 at 08:33 AM.. Reason: added code tags, removed self-promotion
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

AIX Installation

I am in need some some simple... straight forward instructions for creating file systems on AIX. I have a raid controller and 4 18.2gb Hot Swap SCSI drives. I am sooooo confused about Volume Groups, Physical Volume, and Physical Partition, and Logical Volume and Logical Partitions. In a... (1 Reply)
Discussion started by: Docboyeee
1 Replies

2. AIX

aix installation

hey all I have ibm RS6000 WORKSTATION,iam new to aix i worked on sparc system,but dont know anything abt aix can some one guide me how to install aix 4.3.3 fresh installtion how the partition to be created how to start the installltion and finish it how to add new external hdd. plss osme one... (1 Reply)
Discussion started by: solaris8in
1 Replies

3. AIX

AIX - MySQL installation help

Hi, I'm facing troubles in installing MySQL on AIX 5.3. After I run make it's getting errors and exiting, few of the errors are pasted below. Please help me to install it succesfully. ld: 0711-235 WARNING: Archive member ../mysys/libmysys.a is not an object file or an import list.... (2 Replies)
Discussion started by: rishi
2 Replies

4. AIX

Need AIX 4.3.3 installation disk 1

This is a serious longshot but my system crashed and I need to bring it back up, I put my cd into the drive to boot and it does not work. I cannot find another copy anywhere (internet, friends, other companies, etc...). Apparently while trying to install the Veristas remote agent for unix I... (0 Replies)
Discussion started by: colb926
0 Replies

5. AIX

undo installation on AIX 4.3

Hi, How can I undo installation of a package on AIX 4.3 properly? It's an install script. On linux, I usually just kill the process and delete from disk with this command "find .... exec rm -r {}\;". And it usually works. Can I do the same with AIX 4.3? Thanks, Itik (2 Replies)
Discussion started by: itik
2 Replies

6. AIX

Installation an application on AIX

Hi all I'm newbie In this forum, i have posted some topics about zip and unzip a file on AIX system. And i have some answers so that AIX can not work with zip file, and they tell me some files to zip and unzip my files on AIX such as: zip-2.3-3.aix4.3.ppc.rpm unzip-5.51-1.aix5.1.ppc.rpm... (2 Replies)
Discussion started by: leenguyen0101
2 Replies

7. AIX

Munin Installation in AIX 5.3

Dear All, I heard about munin tool features and am planning to get exposure in order to monitor my environment through munin. Basically my environment is having 18 AIX servers (Version is AIX 5.3) and am not able to monitor actively CPU, DISK, Memory utilizations. If I want to install Munin in... (1 Reply)
Discussion started by: bvijaycom
1 Replies

8. AIX

AIX NIM installation

Could you please let me know, if it is possible to have NIM server running on one volume group and other applications like oracle running on other volume group. Do we need to have a dedicated server for only AIX NIM server?. I am new to AIX and planning to install NIM server on a test server. which... (3 Replies)
Discussion started by: saikiran_1984
3 Replies

9. AIX

AIX 6.1 installation hanging

Hi There I am trying to install AIX6.1 from a NIM server, but the installation hangs on 90% Filesets processed 551 of 571. Is there some log somewhere to check why it is failing or hanging? I have done it before successfully, with the same spot and lpp_source. I am new to AIX and... (7 Replies)
Discussion started by: wjace
7 Replies

10. Cybersecurity

Help with sudoers file - AIX

Hi all, I'm trying to setup my sudoer file at work to have the right security, but I'm not able to refine to the level I want. Here's what I would like to have: => OS Users - John (group staff) - Bob (group staff) - app20adm (group app20grp) - app70adm (group app70grp) - sys20adm... (0 Replies)
Discussion started by: victorbrca
0 Replies
0STORE-SECURE-ADD(1)													      0STORE-SECURE-ADD(1)

NAME
0store-secure-add -- add an implementation to the system cache SYNOPSIS
0store-secure-add DIGEST DESCRIPTION
This command imports the current directory into the system-wide shared Zero Install cache, as /var/cache/0install.net/implementa- tions/DIGEST. This allows a program downloaded by one user to be shared with other users. The current directory must contain a file called '.manifest' listing all the files to be added (in the format required by DIGEST), and this file must have the given digest. If not, the import is refused. Therefore, it is only possible to add a directory to the cache if its name matches its contents. It is intended that it be safe to grant untrusted users permission to call this command with elevated privileges. To set this up, see below. SETTING UP SHARING
To enable sharing, the system administrator should follow these steps: Create a new system user to own the cache: adduser --system zeroinst Create the shared directory, owned by this new user: mkdir /var/cache/0install.net chown zeroinst /var/cache/0install.net Use visudo(8) to add these lines to /etc/sudoers: Defaults>zeroinst env_reset,always_set_home ALL ALL=(zeroinst) NOPASSWD: /usr/bin/0store-secure-add Create a script called 0store-secure-add-helper in PATH to call it. This script must be executable and contain these two lines: #!/bin/sh exec sudo -S -u zeroinst /usr/bin/0store-secure-add "$@" < /dev/null The other Zero Install programs will call this helper script automatically. FILES
/var/cache/0install.net/implementations System-wide Zero Install cache. LICENSE
Copyright (C) 2009 Thomas Leonard. You may redistribute copies of this program under the terms of the GNU Lesser General Public License. BUGS
This program is EXPERIMENTAL. It has not been audited. Do not use it yet in security-critial environments. The env_reset line in sudoers may not be required. sudo(1) seems to do it automatically. If sudo let us check whether we could call a command then we could switch to using it automatically, instead of needing to add the helper script. Currently, sudo delays for one second and writes to auth.log if we try to use this system when it hasn't been set up. Please report bugs to the developer mailing list: http://0install.net/support.html AUTHOR
Zero Install was created by Thomas Leonard. SEE ALSO
0store(1) The Zero Install web-site: http://0install.net Thomas Leonard 2010 0STORE-SECURE-ADD(1)
All times are GMT -4. The time now is 08:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy