Holla@feddit.org to Software Gore@lemmy.world · 11 days agoMy ThinkPad got posessedfeddit.orgimagemessage-square15fedilinkarrow-up1122arrow-down13
arrow-up1119arrow-down1imageMy ThinkPad got posessedfeddit.orgHolla@feddit.org to Software Gore@lemmy.world · 11 days agomessage-square15fedilink
minus-squareHolla@feddit.orgOPlinkfedilinkarrow-up2·10 days 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-210 days 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-210 days 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·6 days agoYou could also alias sudo instead then.
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.