Reputation: 33
Hy guys,
I chmod-ed /etc/ to 644 while logged in as ec2-user and now i cannot access /etc
" -bash: cd: etc/: Permission denied "
How can i get my permission back? I cannot login as root through putty - it says to log in as ec2-user.
I am a rookie in linux and AWS.
Upvotes: 0
Views: 646
Reputation: 7295
To get a root access log-in as ec2-user, then type sudo su -
to change the user to root. After that you can change directory permissions back.
Also you can just use sudo chmod
under ec2-user.
Upvotes: 1