Pass: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Orahula (talk | contribs)
Orahula (talk | contribs)
Line 9: Line 9:
==Tavakasutus==
==Tavakasutus==


gpg --gen-key
1) Passi kasutamiseks on vajalik GPG võti. Võtme loomiseks kirjuta konsooli järgnev käsklus:
<syntaxhighlight lang="bash" style="background:Azure">gpg --gen-key</syntaxhighlight>
 
2) Võtme tüüp. Vali (1) valikuvariant.
<syntaxhighlight lang="bash" style="background:Azure">
Please select what kind of key you want:
  (1) RSA and RSA (default)
  (2) DSA and Elgamal
  (3) DSA (sign only)
  (4) RSA (sign only)
Your selection?</syntaxhighlight>
 
3) Võtme pikkus. Vaikeväärtus on 2048.
<syntaxhighlight lang="bash" style="background:Azure">
RSA keys may be between 1024 and 4096 bits long.
What keysize do you want? (2048)
Your selection?</syntaxhighlight>
 
4) Võtme kehtivusaeg. Vaikeväärtus on 0.
<syntaxhighlight lang="bash" style="background:Azure">
Please specify how long the key should be valid.
        0 = key does not expire
      <n>  = key expires in n days
      <n>w = key expires in n weeks
      <n>m = key expires in n months
      <n>y = key expires in n years
Key is valid for? (0)
Your selection?</syntaxhighlight>
 
5) Võtme tuvastamiseks on vajalik kasutajatunnuse loomine, kasutades oma ees- ja perekonnanime ning e-posti addressi.
<syntaxhighlight lang="bash" style="background:Azure">
You need a user ID to identify your key; the software constructs the user ID
from the Real Name, Comment and E-mail Address in this form:
    "Heinrich Heine (Der Dichter) <heinrichh@duesseldorf.de>"
Your selection?</syntaxhighlight>
 
Esimesena sisestada oma nimi.
<syntaxhighlight lang="bash" style="background:Azure">
Real name:
Your selection?</syntaxhighlight>
 
Järgmisena sisestada oma e-posti address.
<syntaxhighlight lang="bash" style="background:Azure">
E-mail address:
Your selection?
</syntaxhighlight>
 
Viimasena lisa lühikirjeldus, mis aitab hiljem erinevaid kasutajaid eristada.
<syntaxhighlight lang="bash" style="background:Azure">
Comment:
Your selection?
</syntaxhighlight>


==Käsud==
==Käsud==

Revision as of 08:51, 30 April 2017

Sissejuhatus

Pass is a very simple password store that keeps passwords inside gpg2 encrypted files inside a simple directory tree residing at ~/.password-store.

The pass utility provides a series of commands for manipulating the password store, allowing the user to add, remove, edit, synchronize, generate, and manipulate passwords.

Süntaks

pass [COMMAND][OPTIONS][ARGS]

Tavakasutus

1) Passi kasutamiseks on vajalik GPG võti. Võtme loomiseks kirjuta konsooli järgnev käsklus:

gpg --gen-key

2) Võtme tüüp. Vali (1) valikuvariant.

Please select what kind of key you want:
   (1) RSA and RSA (default)
   (2) DSA and Elgamal
   (3) DSA (sign only)
   (4) RSA (sign only)
Your selection?

3) Võtme pikkus. Vaikeväärtus on 2048.

RSA keys may be between 1024 and 4096 bits long.
What keysize do you want? (2048)
Your selection?

4) Võtme kehtivusaeg. Vaikeväärtus on 0.

Please specify how long the key should be valid.
         0 = key does not expire
      <n>  = key expires in n days
      <n>w = key expires in n weeks
      <n>m = key expires in n months
      <n>y = key expires in n years
Key is valid for? (0)
Your selection?

5) Võtme tuvastamiseks on vajalik kasutajatunnuse loomine, kasutades oma ees- ja perekonnanime ning e-posti addressi.

You need a user ID to identify your key; the software constructs the user ID
from the Real Name, Comment and E-mail Address in this form:
    "Heinrich Heine (Der Dichter) <heinrichh@duesseldorf.de>"
Your selection?

Esimesena sisestada oma nimi.

Real name:
Your selection?

Järgmisena sisestada oma e-posti address.

E-mail address:
Your selection?

Viimasena lisa lühikirjeldus, mis aitab hiljem erinevaid kasutajaid eristada.

Comment:
Your selection?

Käsud

If no COMMAND is specified, COMMAND defaults to either show or ls, depending on the type of specifier in ARGS. Alternatively, if PASSWORD_STORE_ENABLE_EXTENSIONS is set to "true", and the file .extensions/COMMAND.bash exists inside the password store and is executable, then it is sourced into the environment, passing any arguments and environment variables. Extensions existing in a system-wide directory, only installable by the administrator, are always enabled. Otherwise COMMAND must be one of the valid commands listed below.

Several of the commands below rely on or provide additional functionality if the password store directory is also a git repository. If the password store directory is a git repository, all password store modification commands will cause a corresponding git commit. Sub-directories may be separate nested git repositories, and pass will use the inner-most directory relative to the current password. See the EXTENDED GIT EXAMPLE section for a detailed description using init and git(1). The init command must be run before other commands in order to initialize the password store with the correct gpg key id. Passwords are encrypted using the gpg key set with init. There is a corresponding bash completion script for use with tab completing password names in bash.

Kokkuvõte

Autor

Nimi: Oliver Rahula
Rühm: C11
Kuupäev: 23.04.2017

Allikad