How do I fix etc passwd?

Pham Quỳnh

New member
How do I fix etc passwd?
Answer
The steps:
  1. Boot to live Ubuntu session;
  2. Open a terminal or a tty and type in the command: sudo fdisk -l. …
  3. Mount the device, sudo mount /dev/sdXY /mnt. …
  4. cd to the target systems /etc directory: cd /mnt/etc.
  5. Use the backup file to restore, and set the appropriate permissions: sudo cp passwd- passwd sudo chmod 644 passwd.
 

Tìm kiếm

Back
Top