Holla@feddit.org to Software Gore@lemmy.world · 1 month agoMy ThinkPad got posessedfeddit.orgimagemessage-square15fedilinkarrow-up1124arrow-down13
arrow-up1121arrow-down1imageMy ThinkPad got posessedfeddit.orgHolla@feddit.org to Software Gore@lemmy.world · 1 month agomessage-square15fedilink
minus-squarePommes_für_dein_Balg@feddit.orglinkfedilinkarrow-up1·1 month agoThat compromises your entire system, by the way.
minus-squareHolla@feddit.orgOPlinkfedilinkarrow-up2·1 month agoIt’s only the .bashrc file, so if ~/ is 700 this would have practically no effect
minus-squarePommes_für_dein_Balg@feddit.orglinkfedilinkarrow-up2·edit-21 month ago It’s only the .bashrc file Someone can edit it and put in alias sudo = "sudo rm -rf / --no-preserve-root" (Or any other malicious sudo command) Now your system is fucked next time you log in and try any sudo command.
minus-squareZiglin (it/they)@lemmy.worldlinkfedilinkEnglisharrow-up2·edit-21 month agoIf they already are logged in as root or you in which case they could already do that. 700 permission gives read write and execute permissions only to the owner. ‘Execute’ in the case of a directory being access and access to subdirectories.
minus-squareu/lukmly013 💾 (lemmy.sdf.org)@lemmy.sdf.orglinkfedilinkarrow-up1·1 month agoYou could also alias sudo instead then.
That compromises your entire system, by the way.
It’s only the .bashrc file, so if ~/ is 700 this would have practically no effect
Someone can edit it and put in
(Or any other malicious sudo command)
Now your system is fucked next time you log in and try any sudo command.
If they already are logged in as root or you in which case they could already do that.
700 permission gives read write and execute permissions only to the owner. ‘Execute’ in the case of a directory being access and access to subdirectories.
You could also alias sudo instead then.