![]() |
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 |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Change Account to not lock account if password expires | stringzz | UNIX for Dummies Questions & Answers | 1 | 04-04-2008 05:31 PM |
| Change other account password from root access | rakeshou | UNIX for Dummies Questions & Answers | 4 | 11-30-2007 11:06 AM |
| Setting an account to be a non-login account automatically? | LordJezo | UNIX for Dummies Questions & Answers | 0 | 06-16-2006 09:28 AM |
| how can I change user name and password , of account ? | umen | SUN Solaris | 5 | 12-22-2005 07:10 PM |
| Ftp account change password | m.seidenberg | UNIX for Dummies Questions & Answers | 1 | 09-13-2005 09:00 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Su To Diffent Account And Automate The Password
I Need To Switch To A Different Account Before A Shell Is Executed. Unforturnately I Have To Call This Shell Via A Third Party App And The User Account Of The Processes That I Need To Kill Is Not The Same As The Default Account Gui Signs In As. I Need The Password To Be Hard Coded When Prompted After The Su Is Kicked Off.
Su Account Password: (any Tips On How To Get This Password Populated Automatically) -j |
|
||||
|
Quote:
of course, you will need to create some "security hole" by setting up .rhosts for that user to allow application user execute remote shell as <myuser>. |
|
|||||
|
Or, to maintain security, sudo might be the solution. You could also look into Expect although this will be less secure as passwords may have to be hard coded.
I'd personally say never hard code passwords into applications, as not only is this a huge security hole, but when the su target changes their password, the application then requires maintenance. Cheers ZB |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|