/etc/passwd permission

Can I know why the default /etc/passwd permission is set to -r--r--r--?

Isn't it that any user who login will be able to read all the encrypted password in it? Can I change it to -r--r----- so that no other group can view it. Will it have any impact on others command?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

passwd must be readable for all users and writeable for root. If you change it no other then root will be able to login. Yes it is true thar every user can read the passwd file but there should be no problem. It is allmost impossible to decrypt it out of since linux ( and almost every other unix flavour) use a one way encryption.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
joekwchenAuthor Commented:

What is one-way encryption?
Isn't it there are lots of password cracking program out there?

one way encryption means that you can't decrypt the password out of the decrypted text. You have to check all compinations. Since many user uses simple passwords cracking tools use dictonaries, ...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.