Originally Posted by adarshmca
chmod 777 /usr/bin/passwd
chmod 777 /etc/passwd
chmod 777 /etc/shadow
Would it effects the system ?
wherever you found that, that's horrible advice, whoever posted it should have their head examined.
/usr/bin/passwd should be 4755
/etc/passwd should be 644
and /etc/shadow should be 000
777 grants every user on the system read write and execute permissions to the files
two of which don't need ANYONE to have execute permission
and only ROOT should have write permission to /etc/passwd
NOBODY other than root should even be able to READ let alone WRITE to /etc/shadow and NOBODY should be able to write to the /usr/bin/passwd, it's a binary anyways so there isn't any need.
those permission settings are just asking for a trouble, big time
would it effect the system? YES it would leave a security hole big enough to pilot an aircraft carrier through.