Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Windows Linux - Security ► «««« 04 / 04 »»»»

Where is the folder with the Linux system passwords?


In Linux, users' passwords are essentially stored in two files, but not in plain text, but in encrypted form:




1. `/etc/passwd`
2. `/etc/shadow`
3. Security note:
4. Passwords Conclusion:





1.) /etc/passwd



- This file contains basic information about the user accounts, including the username, user ID (UID), group ID (GID), home directory, and shell.

- Previously, this file also stored the encrypted passwords. However, for security reasons, passwords are no longer stored directly in this file these days.

Example contents of the /etc/passwd file:

username:x:1000:1000:User Name,,,:/home/username:/bin/bash

The `x` in the second field indicates that the password is stored in a different location.

2.) /etc/shadow



- This file contains the encrypted passwords of user accounts and is only accessible to the user root and other administrators.

- The shadow file also stores additional information such as the date of the last password change and password expiration options.

Example contents of the /etc/shadow file:

username:$6$randomsalt$hashedpassword:18295:0:99999:7:::

This line contains:

- username: The user name.

- $6$randomsalt$hashedpassword: The encrypted password (salted for increased security).

- The following fields concern password aging, expiration date and other options.

3.) Security note:



Because root access is required to read or edit the /etc/shadow file, access to this file is strictly limited. This restriction prevents unauthorized users from viewing or tampering with passwords.

The password hashes in the shadow file can theoretically be cracked (e.g. by brute force attacks), but they are protected by strong hashing algorithms and additional security mechanisms such as salt values.

4.) Passwords Conclusion:



- File with the user information:
/etc/passwd

- File with the encrypted passwords:
/etc/shadow

Only administrators should have access to the shadow file to ensure the security of the system.



Updated on: 28 August 2024 17:41 Windows
Keywords: security, linux, where, folder, with, system, passwords, users, essentially, stored, files, plain, text, encrypted, form, passwd, shadow


Similar information on the page

Windows

... What are file system permissions in Linux?


Access rights in the file system under Linux determine which actions users are allowed to perform on files and directories. These rights are a central part
Windows

... How important is the firewall in Linux?


The firewall is very important in Linux as it is a basic security measure to prevent unauthorized access and attacks on your system. Although Linux systems
Windows

... Windows 11 MS Terminal APP desktop shortcut


Here is a quick solution how to create a desktop shortcut for the MS Terminal under Windows 11, 10, and MS Server OS Content: 1. Microsoft.WindowsTerminal
Windows

... Wi-Fi and Wireless display on Windows 11?


The wireless display function under Windows 11 is very convenient and easy to make a presentation on the big TV screen in the living room or in the office
Windows

... Easy Share the folder with everyone on Windows 11?


The easy file sharing in Windows 11 can be deactivated and activated quite easily via the corresponding folder or drive options Content: 1. Share Folder,
Windows

... Clean up TEMP quickly on Windows 11


Its easy to quickly clean up temporary files and temporary folders on Windows 11 or with one button klick 1. Deleting the temporary files via the
Windows

... Multiple windows with multiple monitors behave on Windows 11


The new function to easily influence the behavior of the window with multiple monitors on Windows 11 is practical and can also be adapted Everyone probably



▲ Back to the top ▲




Beginner # Hardware # Install # Security # Update #




  

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks
  + Security

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + 3D.Benchmark.OK
  + PhotoResizerOK
  + Office.Files.Images
  + Film.Strip.Explorer
  + WinScan2PDF
  + DontSleep
  + ExperienceIndexOK
  + QuickTextPaste
  + DesktopNoteOK
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Settings | Windows 10 | gc24b | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2025 by Nenad Hrg ERR2: softwareok.de • softwareok.com • softwareok.com • softwareok.eu


► StressTheGPU - Powerful stress tester for 3D graphics cards!?  ◄
► PowerShell desktop shortcut on Windows 11! ◄
► BitLocker in Windows 11 start menu or on the desktop as a shortcut! ◄
► Find optional driver updates under Windows 11? ◄


This website does not store personal data. However, third-party providers are used to display ads,
which are managed by Google and comply with the IAB Transparency and Consent Framework (IAB-TCF).
The CMP ID is 300 and can be individually customized at the bottom of the page.
more Infos & Privacy Policy

....