Site Overlay

Critical Files on Linux

Critical Files on Linux

/etc/passwdThis file stores user information.To see the file contents:
Command: cat /etc/passws
X tells the user that the user has a password

of 1001 The user's user ID si value may vary.   100 groups ID /home/arifa/bin/bash/ Directory and SHELL path:

Example:arifa: x:1001:100::
/home/arifa/bin/bash/  
/etc/shadowThis file stores user hashes. (digital fingerprint) string summary The users' password summary is stored in this field.To see the file contents: Command: cat /etc/shadow If it exceeds the privilege Command 1: su root Command 2: cat /etc/shadow  
/etc/sudoersThis file is the configuration file for which we set the sudo authority.   I write to remember Sudo decommission Get root authorization Give root authorization to user Root root userTo give the user of Arifa sudo, you need to open the terminal with the sudo authorization for this Command 1 : su root cat command 2: cat /etc/sudoers On the screen that opens, you can add the arifa user under root and give the same privileges as root to get sudo, that is, root authorization. To add you need to use tex editor for this Command 3: leafped /etc/sudoers Arifa add with the same privileges under root Save close, you are now root. You can enter anywhere by typing sudo Command 4:example:
sudo cat /etc/sudoers You can now edit it.
Arif Akyüz
Senior Information Technologies System and Network Specialist

image 3
Arif Akyüz Content Producer Cyber Security Expert

Arif Akyüz
Content Producer & Cyber Security Expert
[email protected]

© 2024 Arif Akyüz. Tüm Hakları Saklıdır. Gizlilik politikası
Yasal Uyarı: Bu sitede yer alan makaleler bilgi amaçlıdır ve hatalar içerebilir. Site sahibi, bu bilgilerin kullanımı sonucunda oluşabilecek zararlardan sorumlu tutulamaz.