Data Security

From PKC
Revision as of 00:49, 25 July 2021 by Benkoo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Data Security should be based on an accounting system[1] that keep all the responsibility of data transactions responsible.

Create an Account with Administrative Access

All accounts on MediaWiki are registered in the relational database (MySQL). Due to this design, in case you lost the admin password, which is the first user of the MediaWiki system, you must go to the database and change the password using SQL. Detailed instructions here: (Sample code is shown as follows)

UPDATE user SET user_password = MD5( CONCAT( user_id, '-', MD5( 'NEWPASS' ) ) ) WHERE user_id =1;

Otherwise, one can use the changePassword.php maintenance script. Just launch the following command in a terminal (command line interface) application.

php changePassword.php --user=target_username --password=new_password

For detailed instructions, one can refer to MediaWiki's Manual:Resetting passwords.

The following instruction steps are inspired by the article[2]:

Operating System Accounts

To add a new user account with administrator access, one must follow these steps:

  1. Log in to the system with root access, using a terminal applications.
  2. Create a new user name, say xlp, by using the adduser command:
adduser xlp
  1. Make the user xlp, possess admin rights.
usermod -aG sudo xlp
  1. Verify its rights using id xlp
  2. Log in as xlp, by key in the following command
su - xlp
  1. Then run some sudo command
sudo ls -l /etc/

If the the above worked, you have created an administrative account with user name:xlp.


Talk about quantum security[3].

References

  1. Zhou 周子衡, Ziheng (May 1, 2017). Account (账户) (1st ed.). local page: 社会科学文献出版社. 
  2. https://www.cyberciti.biz/faq/add-new-user-account-with-admin-access-on-linux/
  3. Shor, Peter (July 3, 2021). The Story of Shor's Algorithm, Straight From the Source. local page: Qiskit.