-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev
35 lines (28 loc) · 886 Bytes
/
dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
"""
TABLE_N COLUMN_N POSTGRES_TYPE SQLITE_TYPE
probe_id
src macaddr CHARACTER
essid char varying 32 NATIVE CHARACTER
bssid macaddr CHARACTER
dst macaddr CHARACTER
first_seen timestamp w/o tz DATETIME
last_seen timestamp w/o tz DATETIME
probe_log
datetime timestamp w/o tz DATETIME
src macaddr CHARACTER
signal smallint SMALLINT
"""
# create user on system
adduser probe_toolkit
VerySecretPassword <-- this password will be for the user, not remote log into postgresql
# log into postgres
# create user
# create db (probe) and assing user (probe_toolkit) to it
su - postgres
createuser probe_toolkit
createdb -O probe_toolkit probe
su - probe_toolkit
psql -d probe
ALTER ROLE probe_toolkit WITH ENCRYPTED PASSWORD 'VerySecretPassword2';
^-- this will be our remote login password
https://wiki.debian.org/PostgreSql