The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
Automatic script TShirt UNIX for Advanced & Expert Users 5 06-05-2008 05:34 AM
automatic sftp csaunders SUN Solaris 10 03-19-2007 10:32 AM
Automatic sftp dayanand Shell Programming and Scripting 1 10-24-2006 08:08 AM
Automatic ftp job DumDum Shell Programming and Scripting 4 04-07-2005 10:32 AM
Automatic FTP shyamrk UNIX for Advanced & Expert Users 5 01-17-2002 10:22 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-18-2002
omran omran is offline
Registered User
  
 

Join Date: Jun 2002
Posts: 60
automatic su

Hi all,
Suppose I have a script under user A, which calls a script under user B (this script should be run using user B). How can I change the user (along with supplying the password) automatically in the script (a command similar to su)?
Thank you in advance
Best Regards
  #2 (permalink)  
Old 08-19-2002
asifraj's Avatar
asifraj asifraj is offline
Registered User
  
 

Join Date: Aug 2002
Location: India
Posts: 48
Thumbs up

hey,
if you are using C, there is a PAM (Pluggable Authentication Module) available for linux.
you can get more information here

http://www.kernel.org/pub/linux/libs/pam/

hope it helps
asif
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 12:09 AM.


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