Try this: If A and B are in the same group, the directory and files in question should be owned by the group and group write set (something like mode 775 (directories) or 664 (files)). That way A or B can remove the files.
But then B can write to the directory, which he states is prohibited.
Try this: file is placed in directory "foo", which is user-owned by A and group-owned by group G (which B does not belong to), permissions 775. User B does his transmission of the file, and then uses a SGID-to-group-G copy of "rm" to remove the file.
Large data centers are industrial scale operations using as much electricity as a small town and hence they need Data center Rack Security and sometimes are a significant source of air pollution in the form of diesel exhaust.Effective data center operation requires a balanced investment in both the facility and the housed equipment.
Comments 8
Reply
Reply
Reply
Try this: file is placed in directory "foo", which is user-owned by A and group-owned by group G (which B does not belong to), permissions 775. User B does his transmission of the file, and then uses a SGID-to-group-G copy of "rm" to remove the file.
Reply
userB hostname = (root) /bin/rm -f /path/to/file
as userB:
sudo /bin/rm -f /path/to/file
Reply
Reply
Reply
Reply
Leave a comment