Guest User

Untitled

a guest
Mar 24th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. ============================================================
  2. issue
  3. ============================================================
  4. [root@localhost .ssh]# cat 1 >> authorized_keys
  5. -bash: authorized_keys: Permission denied
  6.  
  7.  
  8.  
  9. ******************************************************************
  10. solution :
  11. chattr -i filename
  12. ******************************************************************
  13. [root@localhost .ssh]# lsattr authorized_keys
  14. ----i----------- authorized_keys
  15.  
  16. [root@localhost .ssh]# chattr -i authorized_keys
  17. ---------------- authorized_keys
  18. ....edit file....
  19.  
  20. [root@localhost .ssh]# chattr +i authorized_keys
  21. ----i----------- authorized_keys
Add Comment
Please, Sign In to add comment