ok so if they're that great how do I make a folder where two users can have write access to it, but not anyone else, and if user 1 creates a file user 2 should also be able to read/write that file, including folders?
I just told you 2 posts ago. Add them to a common group, make that group the owner of the parent directory and set the SGID bit. Now any files created in that directory will have the same group as the parent directory.
Code:
username@mypc:/tmp$ umask
0007
username@mypc:/tmp$ mkdir blah
username@mypc:/tmp$ ls -ld blah/
drwxrwx--- 2 username username 6 Aug 1 19:53 blah/
username@mypc:/tmp$ chgrp disk blah/
username@mypc:/tmp$ ls -ld blah/
drwxrwx--- 2 username disk 6 Aug 1 19:53 blah/
username@mypc:/tmp$ cd blah/
username@mypc:/tmp/blah$ touch test1
username@mypc:/tmp/blah$ ls -l test1
-rw-rw---- 1 username username 0 Aug 1 19:53 test1
username@mypc:/tmp/blah$ cd ..
username@mypc:/tmp$ chmod g+s blah/
username@mypc:/tmp$ touch blah/test2
username@mypc:/tmp$ ls -l blah/test*
-rw-rw---- 1 username username 0 Aug 1 19:53 blah/test1
-rw-rw---- 1 username disk 0 Aug 1 19:54 blah/test2
Now what if I also want another user to only have read only access to the files in that same folder? Or perhaps a user that can create new files but not delete them. Yeah, I just threw a monkey wrench into the whole thing now.
Yes, you would probably need an ACL to handle the extra read-only user, but that's simple enough although I don't know the setfacl syntax off the top of my head so I'm not going to type that out for you. Having a user only be able to delete files they've created is handled by the sticky bit, just like in /tmp.
But convoluted examples like you just provided should be avoided in both worlds and are better handled by proper business processes. And most things don't work well with your "create new files but not delete them" rights because even apps like Word fail outright with permissions like that because of their use of temporary files in the working directory. And not letting me delete files is pointless if I can write to the file itself because I can just as easily open the file, delete all of the contents and save it again.
Yes, NTFS permissions are more granular and flexible but that comes at a pretty huge price and virtually no one uses them like that.
In general I prefer Linux over Windows, but permissions is one aspect that always frustrates me if I want anything slightly advanced.
This article pretty much echos all my feelings towards the Linux permissions:
http://marc.perkel.com/2005/04/04/unix-file-permissions-suck/
I haven't read the link yet, but I stand by my original statement of "you're doing it wrong" if you're running into trouble this often. KISS because the more complexity you add the more difficult it is to understand and the more it costs to maintain. If you want to keep coming up with scenarios that make your life miserable, be my guest, but don't bitch when the system doesn't work the way you want when what you want doesn't make any sense.