45 votes

Regular user is able to modify a file owned by root

This is happening because of two things: vim (at least in this case) and sed, when doing in place editing, actually delete the original file and then create a new one with the same name. the ability ...
terdon's user avatar
  • 238k
16 votes

Regular user is able to modify a file owned by root

vim cannot modify the file, but if it has write access to the directory that file is linked to and either you own that directory or the t bit in its permissions is not set, then it can delete it and ...
Stéphane Chazelas's user avatar
3 votes

sudo rm -rf /* is not working

You're trying to remove all files and directories from the system. This includes /proc and /sys, which are virtual filesystems provided by the kernel and contain files that cannot be deleted. As an ...
Chris Davies's user avatar
2 votes

sticky bit on files and directories

This is a case of RTFM From man 1 chmod: Restricted Deletion Flag or Sticky Bit The restricted deletion flag or sticky bit is a single bit, whose interpretation depends on the file type. For ...
waltinator's user avatar
  • 4,709
1 vote

sshd: Authentication refused: bad ownership or modes for directory /data

You should set /data and its subdirectories to be owned by root with permissions 0755 (rwxr-xr-x). Alternately, you can disable this permissions check by setting StrictModes to "no" in the ...
Kenster's user avatar
  • 3,350
1 vote

sticky bit on files and directories

For executable files, this is the resident bit. It can be set by the administrator to tell the OS to keep the program code in swap space even if it is not running at the moment. Modern Operating ...
Jörg W Mittag's user avatar
1 vote

Delete all files without user permissions

Disclaimer: I'm the current author of rawhide (rh) (see https://github.com/raforg/rawhide) With rawhide (rh) you can do: rh -UUU data 'f && !ur && !uw && !ux' -UUU unlinks/...
raf's user avatar
  • 161

Only top scored, non community-wiki answers of a minimum length are eligible