Sandal6823@sh.itjust.works to Linux@lemmy.ml · edit-22 个月前Why disable ssh login with root on a server if I only log in with keys, not password?message-squaremessage-square78linkfedilinkarrow-up1106arrow-down15file-text
arrow-up1101arrow-down1message-squareWhy disable ssh login with root on a server if I only log in with keys, not password?Sandal6823@sh.itjust.works to Linux@lemmy.ml · edit-22 个月前message-square78linkfedilinkfile-text
On a server I have a public key auth only for root account. Is there any point of logging in with a different account?
minus-square2ndSkin@sh.itjust.workslinkfedilinkarrow-up4·edit-22 个月前? It’s .bashrc, not bashrc, and .bashrc is in the home directory. If .bashrc is immutable, it can’t be removed from home.
minus-squareSavvyWolf@pawb.sociallinkfedilinkEnglisharrow-up1·2 个月前It’s the directory that needs to be writable to delete files, not the file itself. Although the immutable bit (if that’s what you’re talking about - I thought you meant unsetting the write bit) might change that, I’m not sure.
?
It’s .bashrc, not bashrc, and .bashrc is in the home directory.
If .bashrc is immutable, it can’t be removed from home.
It’s the directory that needs to be writable to delete files, not the file itself.
Although the immutable bit (if that’s what you’re talking about - I thought you meant unsetting the write bit) might change that, I’m not sure.