security
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| security [2018/12/08 12:49] – created 0.0.0.0 | security [2025/12/21 15:25] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | * [[User Profiles]] |
| + | * [[Random password generator]] | ||
| + | * [[http:// | ||
| + | * [[https:// | ||
| + | |||
| + | ==== Improve security by accessing databases from Unix with wallets | ||
| + | 8 [[https:// | ||
| + | |||
| + | Briefly... | ||
| + | |||
| + | Wallet Setup | ||
| + | < | ||
| + | mkdir tns_admin | ||
| + | mkdir wallet | ||
| + | chmod 700 tns_admin | ||
| + | chmod 700 wallet | ||
| + | </ | ||
| + | Create a wallet | ||
| + | < | ||
| + | mkstore -create -wrl / | ||
| + | </ | ||
| + | Create a local sqlnet.ora file | ||
| + | < | ||
| + | NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT) | ||
| + | |||
| + | SQLNET.WALLET_OVERRIDE=TRUE | ||
| + | WALLET_LOCATION=(SOURCE=(METHOD=FILE)(METHOD_DATA=(DIRECTORY=/ | ||
| + | |||
| + | ifile=/ | ||
| + | </ | ||
| + | Same again for the tnsnames.ora file | ||
| + | < | ||
| + | hr_on_eta = | ||
| + | (DESCRIPTION = | ||
| + | (ADDRESS = (PROTOCOL = TCP)(HOST = didactylos.virtualbox)(PORT = 1522)) | ||
| + | (CONNECT_DATA = | ||
| + | (SERVER = DEDICATED) | ||
| + | (SERVICE_NAME = ETA) | ||
| + | ) | ||
| + | ) | ||
| + | |||
| + | ifile=/ | ||
| + | </ | ||
| + | Protect them | ||
| + | < | ||
| + | chmod 600 *ora | ||
| + | </ | ||
| + | Add a credential to the wallet with th esame name as the connect identifier in the tnsnames file | ||
| + | < | ||
| + | mkstore -wrl / | ||
| + | </ | ||
| + | Test it | ||
| + | < | ||
| + | export TNS_ADMIN=/ | ||
| + | sqlplus / | ||
| + | select sys_context(' | ||
| + | sys_context(' | ||
| + | from dual; | ||
| + | </ | ||
| + | |||
| + | ==== Show users with elevated privileges ==== | ||
| + | < | ||
| + | col grantee | ||
| + | col privilege for a85 wrap | ||
| + | select grantee | ||
| + | , privilege | ||
| + | , admin_option | ||
| + | from | ||
| + | where ( | ||
| + | | ||
| + | or privilege in (' | ||
| + | or admin_option = ' | ||
| + | ) | ||
| + | and grantee not in (' | ||
| + | order by grantee | ||
| + | / | ||
| + | </ | ||
| - | * [[User Profiles]] | ||
| - | * [[Random password generator]] | ||
| - | * [[http:// | ||
| - | * [[https:// | ||
| - | =====Show users with elevated privileges===== | ||
| - | < | ||
security.1544273361.txt.gz · Last modified: 2018/12/08 12:49 by 0.0.0.0
