![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help on page breaks | simhasuri | Shell Programming and Scripting | 1 | 01-31-2008 04:51 PM |
| Newbie ? Need Help with If/Then & Line Breaks... | kthatch | UNIX for Dummies Questions & Answers | 1 | 05-01-2007 08:44 PM |
| How to remove page breaks from a flat file??? | kumarsaravana_s | Shell Programming and Scripting | 5 | 04-17-2007 09:51 AM |
| Page Breaks | rama71 | High Level Programming | 9 | 06-29-2005 01:28 PM |
| Insert page breaks into .csv file | welsht | Shell Programming and Scripting | 2 | 02-04-2005 02:39 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
'exec /bin/sh' breaks alias
I have an application that requires su to root in order to run some commands. Unfortunately, my corporate policy only allows sudo so I created an alias in .profile as "alias su="su myaccount". My external application logs in with the first account no problem, it then runs 'exec /bin/sh' and then tries to su with the myaccount password but it comes back with 'incorrect password'. If I use an ssh account, login with my first account and then su with myaccount password it works fine. It looks like the 'exec /bin/sh' does not take the alias. /bin/sh points to bash. I have the alias in .bashrc, .profile, .shrc and .bash_profile but none of this works.
any ideas on how to get the alias to work with the /bin/sh shell? Thanks Stu |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|