I restarted my Amazon EC2 instance and all of sudden when I log in from SSH via putty I get the error:
-bash: /etc/profile: Permission denied
-bash: /etc/bashrc: Permission denied
Previously I was able to log in via SSH but after restart I can not. I do have access to Super User so I can change permissions. I tried changing permissions on /etc/profile
like 770 and 771 but couldn’t fix the issue.
Permissions on both files is 750
.
Looking at my EC2 instance, the permissions on /etc/bashrc
and /etc/profile
are 0665
. You should change your install to use those permissions and restart the server to have the changes take affect.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments