Change permissions on file /etc/passwd on 640, then chmod o-r . After that, i can't login on server on ssh. Putty says "Network error: Software caused connection abort".

What problems? And how i can fix this...


What problems? Basically, you broke it.

If you have console access, boot from a rescue image - and change the permissions on /etc/passwd back to what they're supposed to be.

  • But what wrong in 640 /etc/passwd? – John Smith Nov 18 '16 at 10:42
  • @PhilippCrux Most likely the login process can't read the file to determine if the account you're trying to log in with exists. – Andrew Henle Nov 18 '16 at 10:43
  • It's weird, i think. All users can see /etc/passwd - it is not secure.. – John Smith Nov 18 '16 at 11:27
  • @PhilippCrux What's not secure about it? Account names aren't secret. – Andrew Henle Nov 18 '16 at 11:31
  • You're supposed to be able to read /etc/passwd. It's for user information. Passwords are stored in /etc/shadow. – Spooler Nov 18 '16 at 12:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.