Wednesday, 26 June 2013

openSSH, generating passwd file

First generate Group:
On local system:
            mkgroup -l >> ..\etc\group

On system with user organized in domains
            mkgroup -d >> ..\etc\group

And then password:
                On local:
            mkpasswd -l -u username >> ..\etc\passwd
NOTE: the username specified above must be an existing windows login account.
               
                On system with many domains:
            mkpasswd -u smm08030 -d mycorp >> >> ..\etc\group




NOTE:
If your computer sees multiple domains, you may have to specify the domain
name that the user "qhander" is part of to mkpasswd after the -d flag
(i.e., run "mkpasswd -u YourUser -d YourDomain >> /etc/passwd").
You also need to run "mkgroup -d >> /etc/group" (and, apparently,
"mkgroup -d YourDomain >> /etc/group")...  Also, you most likely have
*two* users with the name "qhander": one local to your machine (with a
small user id), and one in the domain (with UID 18544) -- you log in as
the domain one, but your /etc/passwd contains the local one (with the
wrong SID and UID).  Once you update /etc/passwd with your domain user
information, change the name of the local user to something else (e.g.,

"qhander_local").

No comments:

Post a Comment