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
Cool and quiet BIOS setting on RH5 (OEL) devjxh Linux 1 06-27-2008 10:34 AM
diffrent results between command line and scripted grep r1500 Shell Programming and Scripting 1 11-24-2003 02:05 PM
etc/passwd nguda UNIX for Dummies Questions & Answers 2 07-03-2003 10:38 AM
Quiet System for Maintenance michieka UNIX for Dummies Questions & Answers 3 08-08-2001 08:10 AM
Sun E 10000 scripted shutdown redfoot UNIX for Dummies Questions & Answers 1 02-06-2001 03:57 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 11-14-2008
Tyralia Tyralia is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 3
Scripted passwd but it won't really be quiet!

First off, sorry if this is in the wrong forum.

I have made a script that will always set the password back to a specified value when I log in as root, this is because for testing purposes I regularly change it as I'm logged in..but this isn't the point.

The thing that's bothering me is that the way I've done is:
passwd < the_password_is_here

where the_password_is_here has:
password
password

However, I want the whole passwd process to be quiet and not print anything to the screen.

Using:
passwd < the_password_is_here > dump
or
passwd < the_password_is_here | > dump

Did not work.
I'm assuming what's fundamentally wrong is the way I'm passing in a text file like that to circumvent me having to type the password in. If that's the case...what do I do to make it change my root password but not say a peep on the screen?
 

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 07:57 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