45
votes
Accepted
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 ...
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 ...
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 ...
2
votes
Accepted
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 ...
1
vote
Accepted
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 ...
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 ...
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/...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
permissions × 4445linux × 819
files × 452
chmod × 349
users × 261
sudo × 256
ubuntu × 241
acl × 228
group × 207
directory × 194
filesystems × 190
mount × 181
root × 178
security × 166
debian × 163
centos × 157
ssh × 132
bash × 125
apache-httpd × 124
samba × 117
chown × 107
umask × 99
shell-script × 91
nfs × 89
rsync × 86