[sudo-users] Complex Sudo

Nuno Miguel Justo nunojusto at pt.ibm.com
Tue Aug 30 09:43:24 EDT 2011


Hi,

One way is to create a script (root owner) and put that comand receiving 
those parameters.
Then give sudo to execute that script.

Attention, that script should be protected to owner root only. This is 
important.



Cumprimentos / Best Regards / S pozdravem,

Nuno Justo
Unix Sub-Team Manager
IBM, ITD, Server Systems Operations
Mobile: (+351) 915602253 Tel: (+351) 218447438
email: nunojusto at pt.ibm.com
"This email was sent using Lotus Notes v8.5 running on Linux"



From:
"Maal, Hamza" <hamza.maal at liberty.co.za>
To:
"sudo-users at sudo.ws" <sudo-users at sudo.ws>
Date:
30/08/2011 14:37
Subject:
Re: [sudo-users] Complex Sudo



Hello all

Can someone please help me with below

As user1

Run oracle command with parameters

/app/oracle/fmwhome/mid_instance/bin/frmcmp_batch.sh 
userid=username/password at dbname module=/tmp/inputfile 
module_type=/tmp/moduefile output_file=/tmp/outputfile compile_all=yes

Need to put this in sudoers file so user1 can run this command

**********************************************************************
The e-mail and attachments are confidential and intended only for selected 
recipients. If you have received it in error, you may not in any way 
disclose or rely on the contents. You may not keep, copy or distribute the 
e-mail. Should you receive it, immediately notify the sender of the error 
and delete the e-mail.Also note that this form of communication is not 
secure, it can be intercepted, and may not necessarily be free of errors 
and viruses in spite of reasonable efforts to secure this medium.
**********************************************************************

____________________________________________________________
sudo-users mailing list <sudo-users at sudo.ws>
For list information, options, or to unsubscribe, visit:
http://www.sudo.ws/mailman/listinfo/sudo-users




Salvo disposto de outra forma acima: / Unless stated otherwise above:
Companhia IBM Portuguesa, S.A.
Sociedade Anónima com o Capital Social de 15.000.000 euros
Registada na Conservatória do Registo Comercial de Lisboa, sob o número 
15401, NIPC 500068801
Edifício ?Office Oriente?
Rua do Mar da China, Lote 1.07.2.3
Parque das Nações, 1990-138 LISBOA


More information about the sudo-users mailing list