How can I use, preferably a single chmod
command, which will allow any user to create a file in a directory but only the owner of their file (the user who created it) can delete their own file but no one else's in that directory.
I was thinking to use:
chmod 755 directory
As the user can create a file and delete it, but won't that allow the user to delete other people's files?
I only want the person who created the file to be able to delete their own file. So, anyone can make a file but only the person who created a file can delete that file (in the directory).