Hi all!
I'm a newbie about FreeBSD, and I'm trying to set up a Samba server. The problem is not strictly connected to Samba, but is in general with the permissions of the files/directory in FreeBSD. In short, I need some folders where some users (all the ones that belongs to the folders group) can list, execute, copy/create, and rename all the files, but only the owner of the file could delete it.
For example, I have user1 and user2, both in the group test, and I have the folder images. I want that both users can open and list the folder, both can copy some files in the folder, and both can rename all the files in the folder (because both are in the group test), BUT only the owner of the files can delete his files.
That's why I like that someone could change the names of the pictures even if aren't its files, but only the owner of the images (the one who have copied the files in the directory) could delete them.
If I set the permissions to the folder with the sticky bit, only the owner of the file can delete it, but also only the owner can rename it!
If I set the permissions to the folder like rwxrwx--- everyone in the group can rename the files, but also everyone can delete it...
Don't know if there is a solution or if it's not possible...
Thanks in advance.
I'm a newbie about FreeBSD, and I'm trying to set up a Samba server. The problem is not strictly connected to Samba, but is in general with the permissions of the files/directory in FreeBSD. In short, I need some folders where some users (all the ones that belongs to the folders group) can list, execute, copy/create, and rename all the files, but only the owner of the file could delete it.
For example, I have user1 and user2, both in the group test, and I have the folder images. I want that both users can open and list the folder, both can copy some files in the folder, and both can rename all the files in the folder (because both are in the group test), BUT only the owner of the files can delete his files.
That's why I like that someone could change the names of the pictures even if aren't its files, but only the owner of the images (the one who have copied the files in the directory) could delete them.
If I set the permissions to the folder with the sticky bit, only the owner of the file can delete it, but also only the owner can rename it!
If I set the permissions to the folder like rwxrwx--- everyone in the group can rename the files, but also everyone can delete it...
Don't know if there is a solution or if it's not possible...
Thanks in advance.