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
Input redirection and for loop pn8830 Shell Programming and Scripting 4 08-21-2008 01:23 PM
permanent redirection of standard input gfhgfnhhn Shell Programming and Scripting 6 11-01-2006 04:52 AM
Asking about shell script input output redirection trivektor Shell Programming and Scripting 1 10-18-2006 01:13 AM
input redirection question luistid Shell Programming and Scripting 0 08-22-2006 07:28 AM
Input Redirection majeed73 UNIX for Dummies Questions & Answers 6 07-08-2002 03:57 PM

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 08-19-2008
Alalush Alalush is offline
Registered User
  
 

Join Date: Jul 2008
Location: Israel
Posts: 21
password required when using input redirection

Hello,

I need to change user and run some commands by using a script.
lets say, I'm using
su - someuser << start
password required -----> how can I enter the password here
command 1
command 2
command 3
command 4
start

While trying to run this I got the following message:
"standard in must be a tty"

Is there any way to enter as another user or other environment/application which required password by using the following
method ?
  #2 (permalink)  
Old 08-19-2008
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,913
Rather than trying to use su have a look at sudo.
  #3 (permalink)  
Old 08-19-2008
techlinux techlinux is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 86
Sudoers Manual
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 08:07 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