Can the permissions of the script be modified? You can set 755 as the
permisions set:
chmod 755 who
su & sudo will always ask you for password unless you login as root.
Israel.
krishnakumar escribió:
>Hello Experts
>I want to run script from another user in unix . Also the script
>has been calling from SQL. HOST command helps to call the unix file
>from sql . But my problem is the unix script has to be run by
>another user.
>I tried tht following
>
>$ sudo su - user2 -c who ==> it is asking password , but I couldn't
>able to connect though I typed correct pwd.
>
>$ /usr/bin ==> Here sudo is not available
>
>Please suggest me how to run the script from another user
>without asking the password ( As I am planning for automation )
>
>
>Thanks
>Krishna
>-------------------------
> R. Krishna Kumar
>(+91) 98405 60302
>-------------------------
>
>
>The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
>
>WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
>
>www.wipro.com
>
>
>---------------------------------------------------------------------
>TO REPLY TO EVERYBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
>To post a dba job: http://jobs.lazydba.com
>To Subscribe : http://www.LazyDBA.com
>To unsubscribe: http://www.lazydba.com/unsubscribe.html
>
>
>
>
>
>
Oracle LazyDBA home page