User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 423,321 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 5,345 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser: Programming Forums
Views: 6435 | Replies: 1
Reply
Join Date: May 2005
Posts: 2
Reputation: petesmc is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
petesmc petesmc is offline Offline
Newbie Poster

Shell script to switch users ...

  #1  
May 28th, 2005
Hi,

I want to switch users using a shell script, i.e.

su username

However, i can't figure out how to enter the password in via a shell script. Anyone know how to do this, it's definately out of the scope of my shell scriptin knowledge.

Thanks
-peter
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2005
Posts: 2
Reputation: petesmc is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
petesmc petesmc is offline Offline
Newbie Poster

Re: Shell script to switch users ...

  #2  
May 28th, 2005
using sudo would be fine as well, but it suffers from similar problems.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Shell Scripting Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Shell Scripting Forum

All times are GMT -4. The time now is 11:24 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC