Difference between revisions of "Users Passwords"

From IPLOG
Jump to: navigation, search
Line 15: Line 15:
 
= BASH =
 
= BASH =
 
Fot remote connection IPLOG-GAMA supports SSH protocol or is possible local connection via USB concole.   
 
Fot remote connection IPLOG-GAMA supports SSH protocol or is possible local connection via USB concole.   
 +
  
 
== Change Password ==
 
== Change Password ==
Line 46: Line 47:
 
passwd: password for root changed by root
 
passwd: password for root changed by root
 
}}
 
}}
 +
  
  
Line 81: Line 83:
  
 
The adduser command created a user, a group, and a home directory for your user. Your new user is now ready for use! You can now log in using the password you set up.
 
The adduser command created a user, a group, and a home directory for your user. Your new user is now ready for use! You can now log in using the password you set up.
 +
  
  
Line 101: Line 104:
 
2. root@iplog-recovery:~# mount -t ubifs ubi1:userfs /mnt/userfs
 
2. root@iplog-recovery:~# mount -t ubifs ubi1:userfs /mnt/userfs
 
}}
 
}}
 
  
 
Output example:
 
Output example:
Line 110: Line 112:
 
root@iplog-recovery:~#
 
root@iplog-recovery:~#
 
}}
 
}}
 
 
  
 
==== 3. Delete Encrypted Password ====
 
==== 3. Delete Encrypted Password ====
Line 129: Line 129:
 
Text editing - Hit the '''i''' (insert mode).<br/>
 
Text editing - Hit the '''i''' (insert mode).<br/>
 
Save and Exit - Write charakters ''':wq''' (write and quit). The cursor will move to the bottom of the screen whenever a colon (:) is typed. This type of command is completed by hitting the '''Enter''' key. }}
 
Save and Exit - Write charakters ''':wq''' (write and quit). The cursor will move to the bottom of the screen whenever a colon (:) is typed. This type of command is completed by hitting the '''Enter''' key. }}
 
  
 
==== 4. Device Reboot ====
 
==== 4. Device Reboot ====
Line 137: Line 136:
 
}}
 
}}
 
   
 
   
 
  
  

Revision as of 10:44, 19 June 2019

This page is beign temporarily revised with the newest updates.

Permissions or access rights can be specific between users and groups of users. These permissions control the ability of the users to view, change, navigate, and execute the contents of the file system.

Default Access Details

The IPLOG unit use the same access details (Username and Password) for the WEB and SSH (BASH) too.


Username: root

Password: ...... Clean, the default is without password!


BASH

Fot remote connection IPLOG-GAMA supports SSH protocol or is possible local connection via USB concole.


Change Password

The root user has permission to create a new user, grant permissions or change password.

1. Login

Login as a root user.

login as: root

2. Password Command

Type a command passwd to password change of current user or passwd metel (user metel) for the different one and write new password after characters New password:.

root@iplog:~# passwd
Changing password for root
New password:

Tip: The password should be minimum 8-12 characters long including special characters, digits, lower case alphabetic and more.


3. Retype the New Password

Retype password:

4. Notification

Notification of Linux, the password was changed successfully.

passwd: password for root changed by root



Create a New User

If you are signed in as the root user, you can create a new user without permissions limitations.

1. Login

Login as a root user.

login as: root

2. New User Command

The adduser command allows add new user to the system. After adduser characters write the new user name (gama-example).

root@iplog:~# adduser gama

3. New User Password

Write the password for new user account.

Changing password for gama
New password:

4. Retype the New Password

Retype password:

5. Notification

Notification of Linux, the password was changed successfully.

passwd: password for gama changed by root

The adduser command created a user, a group, and a home directory for your user. Your new user is now ready for use! You can now log in using the password you set up.



Reset User Password

The User password is possible change via root account. Change password as root.

Reset Root Password

Reseting the password for root account is possible only of the Recovery mode. Mount the userfs files of common firmware image and delete the root password there.

1. Recovery

How to Get to Recovery mode

2. Mount Userfs

Open the SSH connection via Putty, use the default IP address and login for root user.

Type a commands:

1. root@iplog-recovery:~# ubiattach -p /dev/mtd8
2. root@iplog-recovery:~# mount -t ubifs ubi1:userfs /mnt/userfs

Output example:

root@iplog-recovery:~# ubiattach -p /dev/mtd8
UBI device number 1, total 1020 LEBs (129515520 bytes, 123.5 MiB), available 152 LEBs (19300352 bytes, 18.4 MiB), LEB size 126976 bytes (124.0 KiB)
root@iplog-recovery:~# mount -t ubifs ubi1:userfs /mnt/userfs
root@iplog-recovery:~#

3. Delete Encrypted Password

Open the common image file /etc/shadow by text editor Vim.

root@iplog-recovery:~# vi /mnt/userfs/etc/shadow

Edit the line for root user like this.

root::10933:0:99999:7:::

Tip:
Text editing - Hit the i (insert mode).
Save and Exit - Write charakters :wq (write and quit). The cursor will move to the bottom of the screen whenever a colon (:) is typed. This type of command is completed by hitting the Enter key.


4. Device Reboot

The device reboot is needed to close the recovery mode and run common image.

root@iplog-recovery:~# reboot



List of Users

A file /etc/shadow/ contains all created permisions.

root@iplog:~# cat /etc/shadow

Example of default user list.

root@iplog:~# cat /etc/shadow
root::10933:0:99999:7:::
daemon:*:10933:0:99999:7:::
bin:*:10933:0:99999:7:::
sys:*:10933:0:99999:7:::
sync:*:10933:0:99999:7:::
mail:*:10933:0:99999:7:::
www-data:*:10933:0:99999:7:::
operator:*:10933:0:99999:7:::
nobody:*:10933:0:99999:7:::
metel:$1$dyS.UTOR$GE8nsEAN4OxJGD/g2uh1l.:::::::
sshd:*:::::::