

But as soon as john wants to delete a file, the user gets a permission rm The write permissions are given, as all these files have read-write permissions for owner, group and others ( chmod 666). rw-rw-rw- 1 logstash logstash 6679 Feb 9 16:29 Our local user "john" has access to the local /log/dev directory and can successfully list all the files in this ls -la But even this is sometimes not enough, as the following example shows. It doesn't matter whether this user is owner or part of the group ownership of the file in question. Basically the user needs to have write permissions on the file. To delete a file or directory, the ownership and permissions are required.

Published on February 10th 2022 - Listed in Linux Unix

Cannot remove: Permission denied to delete file on local Linux file system, even with write permissions
