Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ============================================================
- issue
- ============================================================
- [root@localhost .ssh]# cat 1 >> authorized_keys
- -bash: authorized_keys: Permission denied
- ******************************************************************
- solution :
- chattr -i filename
- ******************************************************************
- [root@localhost .ssh]# lsattr authorized_keys
- ----i----------- authorized_keys
- [root@localhost .ssh]# chattr -i authorized_keys
- ---------------- authorized_keys
- ....edit file....
- [root@localhost .ssh]# chattr +i authorized_keys
- ----i----------- authorized_keys
Add Comment
Please, Sign In to add comment