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
How to call the ksh script when rebooting the server Selva_Kumar Shell Programming and Scripting 7 08-23-2008 02:40 PM
Server rebooting frequently srikanthus2002 UNIX for Dummies Questions & Answers 5 07-03-2007 06:52 AM
Dowloading a File from FTP Server to a local Server where User Id's are different ranjith_taurean Shell Programming and Scripting 1 02-22-2007 07:47 AM
Solaris 9 server hangs, when rebooting smohd UNIX for Advanced & Expert Users 3 09-03-2002 03:24 PM
Server name + IP address removed from host table after rebooting FIRE UNIX for Advanced & Expert Users 3 07-25-2002 04:42 PM

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 10-06-2008
Selva_Kumar Selva_Kumar is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 12
Not able to 'su' to other user when rebooting the server

Hi All,

I have created one script with starting letter 'S' (Example: Start) and stored in the path "/etc/rc.d/".

This script was called automatically when we reboot the server.
In this script i am using 'su' command to switch other user but it is not working, it giving some error.

su sas -c "pwd ; whoami"

Note:

After done the reboot, same command is working fine but it is not working when we rebooting the server.

Please help me to resolve this issue.
 

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 08:55 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