The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-07-2005
kingoice kingoice is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 2
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
  #2 (permalink)  
Old 02-07-2005
Phantom Phantom is offline
Registered User
  
 

Join Date: Feb 2005
Location: Holon, Israel
Posts: 26
Quote:
Originally Posted by kingoice
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
or use rsh -l <myuser> -h localhost
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>.
  #3 (permalink)  
Old 02-07-2005
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
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
  #4 (permalink)  
Old 02-08-2005
kingoice kingoice is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 2
dont have root access

I do not have root access and the UNIX team will not install expect or sudo. Any other ideas?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:15 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0