Unix/Linux Go Back    


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 !!

Pwd script

UNIX for Dummies Questions & Answers


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 02-08-2013
lawsongeek lawsongeek is offline
Registered User
 
Join Date: Aug 2011
Last Activity: 3 August 2015, 4:10 PM EDT
Posts: 87
Thanks: 4
Thanked 1 Time in 1 Post
Pwd script

when user types "pwd.sh joe" at command line, it generates pwd as abc123 and when user types "pwd.sh jane" at command line, it generates pwd as abc123.

pwd will change every 90 days.

my pwd file will be always abc123 until i change joe/jane/bob pwd manually.
Sponsored Links
    #2  
Old Unix and Linux 02-08-2013
rbatte1 rbatte1 is offline Forum Staff  
Moderator
 
Join Date: Jun 2007
Last Activity: 27 August 2015, 10:57 AM EDT
Location: Lancashire, UK
Posts: 2,404
Thanks: 822
Thanked 425 Times in 380 Posts
So, what are you asking for? Is this meant to generate a random password perhaps?

Using "pwd" is rather confusing as that is usually interpreted as "Present Working Directory"


Can you clarify?


Thanks
Robin

---------- Post updated at 02:18 PM ---------- Previous update was at 02:18 PM ----------

So, what are you asking for? Is this meant to generate a random password perhaps?

Using "pwd" is rather confusing as that is usually interpreted as "Present Working Directory"


Can you clarify?


Thanks
Robin
Sponsored Links
    #3  
Old Unix and Linux 02-08-2013
lawsongeek lawsongeek is offline
Registered User
 
Join Date: Aug 2011
Last Activity: 3 August 2015, 4:10 PM EDT
Posts: 87
Thanks: 4
Thanked 1 Time in 1 Post
no, i will have a pwd file which resides /tmp/pwdfile.txt

content in /tmp/pwdfile.txt is just abc123

when i change joe/jane/bob and so on pwd, i will update /tmp/pwdfile.txt manaully.

for example, right now, it's abc123

3 months from now, it will be xyz123
    #4  
Old Unix and Linux 02-08-2013
elixir_sinari's Unix or Linux Image
elixir_sinari elixir_sinari is offline Forum Advisor  
Registered User
 
Join Date: Mar 2012
Last Activity: 16 March 2015, 7:53 AM EDT
Location: India
Posts: 1,412
Thanks: 101
Thanked 496 Times in 473 Posts
Where/what is the problem/issue?
I (and probably the others too) don't see that.
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
getting pwd of script SkySmart Shell Programming and Scripting 2 10-22-2012 12:41 PM
Unable to get $PWD value from script in /etc/init.d cielle Red Hat 4 04-30-2012 09:32 AM
script to change shell's pwd gigagigosu Shell Programming and Scripting 3 12-20-2011 01:19 PM
script for db user pwd noorm Shell Programming and Scripting 0 08-12-2011 03:03 PM
sync samba pwd with aix5.3 pwd tjmannonline AIX 2 08-23-2010 08:18 AM



All times are GMT -4. The time now is 12:17 PM.