35
2
I have a backup upload script that scp’s files to another server using the user upload
. Another script on the target server then chown’s these to another user and sets the file mode to 755
.
If I then SSH into the target server using the upload
user, I’m able to delete the chowned files. Shouldnt they be read only?
Here is what a file looks like on the target server, and the user upload
is able to delete it.
-rwxr-xr-x 1 maciekish maciekish 650M Nov 1 01:07 2014-11-01-data.tar.bz2
The user upload
was just added using useradd
and is not a part of the maciekish
group.
When trying to delete the file as upload
via ssh I get the question whether I want to delete “write protected regular file” and I’m able to say Y
and delete it.
4
Essentially a duplicate of Why can
– G-Man Says 'Reinstate Monica' – 2014-11-03T17:29:56.417rm
remove read-only files?