26
6
I have a file with the following permissions:
root:data
, and chmod
set to 775.
My normal user, let's call him boby, is in the data
group.
Why can't I delete the file with the user boby?
rwxrwxr-x 18 root data 4096 2011-12-30 22:02 storage my user is in the group data but can't write into storage
Isn't
/dev/null
read-only? How can you copy from it? – Aaron Franke – 2018-11-05T22:45:44.170I have drwxrwxr-x on the directory, I think it has something to do with the d in front – danidacar – 2011-12-30T19:55:23.850
2@user56301 d just indicates that this file is a directory. What's the ownership of the directory? – Karlson – 2011-12-30T19:58:39.537
drwxrwxr-x 18 root data – danidacar – 2011-12-30T19:59:13.083
Try running as user
boby
the following:cd <directory> ; touch test_file ; rm test_file
– Karlson – 2011-12-30T20:02:04.390@user56301 can you create a file in that directory? if you can not, then you definitely can't delete a file there. – Rich Homolka – 2011-12-30T20:03:11.100
Permission denied, the user is in the group, the dir has write permission for the directory, but I can't create file. If I use 777 it works( as expected ) – danidacar – 2011-12-30T20:03:57.383