[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

su | post section



Hi

I am trying to run some sqls at the post installation of the RPM.At the beginning of the %post section, i am doing a su - <user> . But the sqls are getting executed as root itself. So if oracle home is not set in the root home, it will throw some error. and i cannot guarantee that oracle_home will be set for  root in where all i install this  RPM. How can i ensure that my sqls will get executed  as the  user to which i am switching to ??

Thanks in Advance

Lis

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]