The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Can an FTP user change their own password? LordJezo UNIX for Dummies Questions & Answers 2 02-27-2007 09:36 AM
User password change trace pmsuper SUN Solaris 0 04-27-2006 02:13 AM
how can I change user name and password , of account ? umen SUN Solaris 5 12-22-2005 03:10 PM
Can't change password for a user rahulrathod UNIX for Dummies Questions & Answers 2 12-08-2005 06:23 AM
Change password - User does not exist ryamada SUN Solaris 7 10-22-2003 12:13 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-28-2007
Registered User
 

Join Date: Aug 2007
Posts: 1
Using Crontab To Change User Password

Hi!

I'm a bit noob on Unix/Linux world, so sorry any lame question i may make...
Oh.. and my english too.. is not so famous lol..

The deal is to use crontab to change my admin password every weak to something like "mypasswordcurrrentday" that is... i want evey weak to change my password but only the current day... for example

Fryday 6
mypassword6

Fryday 13
mypassword13

Fryday 20
mypassword20

I know i probably have to do a Shell Script but i don't think thats the problem i just need someone to indicate me what command i should use, because i can't seem to do it... If anyone knows something similar it would be usefull to.

Thanks in Advance.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-28-2007
Yogesh Sawant's Avatar
Part Time Moderator and Full Time Dad
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 767
command passwd lets you change the password. crontab -e will help you in setting the cron job. You may have to use Expect in your script to feed password to passwd command. But then the script used in the cron job would expose your logic of making the password (unless it is a compiled script or program).

Consider the security risk before implementing this feature.
Reply With Quote
  #3 (permalink)  
Old 08-28-2007
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,165
Using expect in this way may help you, but as Yogesh pointed, there will be a security risk by exposing the logic. Why changing the password in this manner is needed ? Does anyone else has root access to this machine ?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
expect, security risk

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:27 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0