Pass: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Orahula (talk | contribs)
Orahula (talk | contribs)
Line 159: Line 159:




1) Sobiva nime koostamine:
1) Parooli manuaalne lisamine:
<syntaxhighlight lang="bash" style="background:Azure">
<syntaxhighlight lang="bash" style="background:Azure">
pass insert social/facebook    # Sotsiaalmeedia directory, mille subdir on Facebook.
pass insert social/facebook    # Sotsiaalmeedia directory, mille subdir on Facebook.
</syntaxhighlight>
</syntaxhighlight>


 
Parooli sisestamine:
2) Password Store'i sisu vaatamine:
<syntaxhighlight lang="bash" style="background:Azure">
<syntaxhighlight lang="bash" style="background:Azure">
pass
mkdir: created directory ‘/home/kasutajanimi/.password-store/social’
</syntaxhighlight>
mkdir: created directory ‘/home/kasutajanimi/.password-store/social/facebook’
 
Enter password for social/facebook:
Sisu hierarhia:
Retype password for social/facebook:
<syntaxhighlight lang="bash" style="background:Azure">
Password Store
└── social
    └── facebook
</syntaxhighlight>
</syntaxhighlight>




3) Parooli automaatne genereerimine, n = parooli pikkus numbrina:
2) Parooli automaatne genereerimine, n = parooli pikkus numbrina:
<syntaxhighlight lang="bash" style="background:Azure">
<syntaxhighlight lang="bash" style="background:Azure">
pass generate social/facebook n
pass generate social/facebook n
Line 189: Line 184:




4) Parooli manuaalne lisamine:
3) Password Store'i sisu vaatamine:
<syntaxhighlight lang="bash" style="background:Azure">
<syntaxhighlight lang="bash" style="background:Azure">
pass insert social/facebook
pass
</syntaxhighlight>
</syntaxhighlight>


Sisesta endale sobiv parool:
Sisu hierarhia:
<syntaxhighlight lang="bash" style="background:Azure">
<syntaxhighlight lang="bash" style="background:Azure">
mkdir: created directory ‘/home/kasutajanimi/.password-store/social’
Password Store
mkdir: created directory ‘/home/kasutajanimi/.password-store/social/facebook’
└── social
Enter password for social/facebook:
    └── facebook
Retype password for social/facebook:
</syntaxhighlight>
</syntaxhighlight>




5) Parooli kontrollimine:
4) Parooli kontrollimine:
<syntaxhighlight lang="bash" style="background:Azure">
<syntaxhighlight lang="bash" style="background:Azure">
pass generate social/facebook
pass generate social/facebook

Revision as of 13:13, 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

Passi paigaldamine

Kõige uuem versioon on 1.7.1.

Ubuntu / Debian

sudo apt-get install pass

Fedora / RHEL

sudo yum install pass

openSUSE

sudo zypper in password-store

Gentoo

emerge -av pass

Arch

pacman -S pass


GNU Privacy Guard (GnuPG) 2.x võtme loomine

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

gpg2 --full-gen-key   # Võimalik on kasutada ka 'gpg2 --gen-key' käsku


2) Võtme tüüp. Vaikeväärtus on 1.

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)


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

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


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)


5) Võtme tuvastamiseks on vajalik kasutajatunnuse loomine:

GnuPG needs to construct a user ID to identify your key.

Esimesena sisestada oma nimi:

Real name:

Järgmisena sisestada oma e-posti address:

E-mail address:

Viimasena lisada lühikirjeldus, mis aitab hiljem erinevaid kasutajaid eristada:

Comment:

Kui andmed on õiged, siis jätkamiseks valida (O):

Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit?


6) Võtme kaitsmiseks on vajalik ka parooli loomine:

Please enter the passphrase to protect your new key.

Enter passphrase:


7) Võtme edukaks genereerimiseks toimetada vastavalt:

We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, use the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.

Terminal võib antud informatsiooni paaril korral uuesti väljastada.

Oluline on olla järjekindel:

Not enough random bytes available.  Please do some other work to give
the OS a chance to collect more entropy! (Need 61 more bytes)

Juhul, kui eelnev protsess peaks hanguma või täielikult ebaõnnestuma, avada uus terminaliaken ja sisestada antud käsklused:

sudo apt-get install rng-tools
sudo rngd -r /dev/urandom


8) Protsess peaks nüüd jätkuma ning lõpuks teatama:

gpg: key 12345678 marked as ultimately trusted
public and secret key created and signed.


NB! On oluline, et GPG võti ei läheks kaduma, kuna see osutub hiljem vajalikuks!

Passi seadistamine

1) Sisestada varasemalt genereeritud GPG võti või e-posti address <gpg-id> asemele:

pass init <gpg-id or email>

Näide:

pass init 12345678


2) Ekraanile ilmub kinnitus:

mkdir: created directory ‘/home/kasutajanimi/.password-store’
Password store initialized for 12345678.

Paroolide lisamine

1) Parooli manuaalne lisamine:

pass insert social/facebook     # Sotsiaalmeedia directory, mille subdir on Facebook.

Parooli sisestamine:

mkdir: created directory ‘/home/kasutajanimi/.password-store/social’
mkdir: created directory ‘/home/kasutajanimi/.password-store/social/facebook’
Enter password for social/facebook:
Retype password for social/facebook:


2) Parooli automaatne genereerimine, n = parooli pikkus numbrina:

pass generate social/facebook n

Näide:

pass generate social/facebook 8


3) Password Store'i sisu vaatamine:

pass

Sisu hierarhia:

Password Store
└── social
    └── facebook


4) Parooli kontrollimine:

pass generate social/facebook

Käsud

Kokkuvõte

Autor

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

Allikad