<rdf:RDF
    xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    xmlns:s='http://snipsnap.org/rdf/snip-schema#'
    xml:base='http://bliki.rimuhosting.com/rdf'>
    <s:Snip rdf:about='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/misc/mass+setting+user+passwords'
         s:cUser='retep'
         s:oUser=''
         s:mUser='retep'>
        <s:name>knowledgebase/linux/misc/mass setting user passwords</s:name>
        <s:content>Every need to change (or set) passwords for a large number of users?  Something like this code snippet may help.&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;# find all the usernames with bash logins&#xD;&#xA;usernames=$(cat /etc/passwd  | grep bash | sed &apos;s/:.*//g)&#xD;&#xA;for i in $usernames; do &#xD;&#xA;    echo &quot;somepassword&quot; | passwd --stdin $i&#xD;&#xA;done&#xD;&#xA;{code}</s:content>
        <s:mTime>2005-09-02 23:12:50.0</s:mTime>
        <s:cTime>2005-09-02 23:12:23.0</s:cTime>
        <s:comments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
        <s:snipLinks>
            <rdf:Bag>
                <rdf:li rdf:resource='#knowledgebase'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux'/>
                <rdf:li rdf:resource='#snipsnap-search'/>
                <rdf:li rdf:resource='#snipsnap-index'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/mail/postfix notes'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/mail/mailman notes'/>
            </rdf:Bag>
        </s:snipLinks>
        <s:attachments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
    </s:Snip>
</rdf:RDF>
