![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| /etc/shadow file.... | avcert1998 | UNIX for Advanced & Expert Users | 6 | 01-18-2008 12:40 PM |
| Shadow Passwords | chrisc@nwark.ne | High Level Programming | 4 | 10-01-2006 09:53 PM |
| shadow file | jbashir | UNIX for Advanced & Expert Users | 3 | 03-14-2006 12:22 AM |
| shadow file | arunkumar_mca | UNIX for Dummies Questions & Answers | 3 | 12-31-2004 08:55 PM |
| Shadow | mokie44 | UNIX for Dummies Questions & Answers | 5 | 03-05-2002 09:56 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
etc/shadow without hash
Hi,
I am new to shell programming and trying to write a command that would show the etc/shadow file but without the hashes. So, something like this: root: <HASH PASSWORD FOUND BUT OBFUSCATED> daemon: NP bin: NP sys: NP If there is a '*' or '!', I'd like to see that as well but not hash of the password. Is there a way to achieve this? Thanks in advance! |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
does this work?
Code:
awk -F: 'BEGIN{OFS=":"}{if(length($2) >2){$2="scrubbed"};print}' /etc/shadow
Code:
awk -F: '{if(length($2) >2){$2="scrubbed"};print $1,":",$2}' /etc/shadow
|
|
#3
|
|||
|
|||
|
Amazing!
Quote:
Thanks SOO Much! |
|||
| Google The UNIX and Linux Forums |