tutorial.rst 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. Pwman3 - tutorial
  2. *****************
  3. Pwman3 is a text centric password manager, and as such suitable for people wishing
  4. to use it over SSH or brail terminals.
  5. Pwman3 is launched by typing ``pwman3`` in your shell. Multiple start options are
  6. available. You can see them by typing::
  7. $ pwman3 -h
  8. For more information see also ``man pwman3``.
  9. When started for the first time, ``pwman3`` will create a configuration file
  10. and your database (By default an SQLite database called ``pwman.db``) in your
  11. home directory under ``.pwman``.
  12. Before creating the database you will be asked to enter the master password which
  13. will be used to create an encryption key which will be used to encrypt the entries
  14. in your database::
  15. $ pwman3
  16. Please type in the master password:
  17. Take note of this password! If you forget it, you won't be able to read your password
  18. database.
  19. Now ``pwman3`` will wait for your input. The user interface is
  20. a simple loop waiting for user commands. You can see all the commands by typing::
  21. pwman> help
  22. Documented commands (type help <topic>):
  23. ========================================
  24. cls delete exit forget list open print
  25. copy edit export help new passwd tags
  26. Aliases:
  27. ========
  28. EOF cp h ls n o p rm
  29. Most commands have a single or two letter alias which is easy to remember.
  30. As for a start you would probably like to store some passwords in your database, all
  31. you need to do is type the command ``new`` (or the alias ``n``), and then insert the information
  32. as prompted::
  33. pwman> new
  34. Username: oz123
  35. Password:
  36. Url: example.org
  37. Notes: Your notes
  38. Tags: bank private
  39. Note the password is typed in without echoing it. Also note that two tags were
  40. separated by a space. Now, you can list your database entries with::
  41. pwman> ls
  42. ID USER URL TAGS
  43. 1 oz123 example.org bank, private
  44. After a while you have had many new nodes inserted in your database::
  45. ID USER URL TAGS
  46. 1 oz123 example.org bank, private
  47. 2 oz123 intranet.workplace.biz work
  48. 3 oz123 shopping.com shopping
  49. Now searching for a searching entry can become quite tiresome. Hence, you can
  50. minimize the number of entries display by applying a filter to the ``list``
  51. command::
  52. pwman> ls work
  53. ID USER URL TAGS
  54. 2 oz123 intranet.workplace.biz workplace
  55. If you don't remember all the tags you created you can list the tags using the
  56. command ``tags``::
  57. pwman> tags
  58. Tags:
  59. bank,
  60. private,
  61. shopping
  62. To see the content of a saved entry, you need to use the ``print`` command::
  63. pwman> print 2
  64. Username: oz123
  65. Password: Org4n7#
  66. URL: intranet.workplace.biz
  67. Notes:
  68. Tags: ['work']
  69. Type Enter to flush screen or wait 5 sec.
  70. Notice, that the ``print`` command expects an entry number as an argument.
  71. After printing the content of the entry, pwman3 will wait for ``Enter`` to be
  72. pressed or 5 seconds until it flushes the screen. This way, unauthorized eyes
  73. can not browse your screen and see your password. You can always scroll up to
  74. see the printed entry or print it again.
  75. If you don't want to type passwords and URLs constantly ``Pwman3`` comes with
  76. two shortcut commands. The first shortcut is ``open``, when calling it with
  77. an entry number it will open the URL in your default browser::
  78. pwman> open 2
  79. This will open the URL *intranet.workplace.biz*. After opening the browser you can use the ``copy`` command to copy your password
  80. to your clipboard. The password will be *erased* from the clipboard after 10
  81. seconds::
  82. pwman> copy 2
  83. erasing in 10 sec...
  84. After working with passwords for quite a while you can ``delete`` (or ``rm``)
  85. entries or edit them::
  86. pwman> rm 2
  87. Are you sure you want to delete node 2 [y/N]?N
  88. pwman> e 2
  89. Editing node 2.
  90. 1 - Username: oz123
  91. 2 - Password: Org4n7#
  92. 3 - Url: intranet.workplace.biz
  93. 4 - Notes:
  94. 5 - Tags: workplace
  95. X - Finish editing
  96. Enter your choice:
  97. You now know all the basics of using ``pwman3``. If you need more help, try
  98. the command ``help`` to see more commands which are not documented here.
  99. Alternatively, you can open a ticket in https://github.com/pwman3/pwman3/issues.