I've got a NAS running and I'd like to somehow make some of the folders and files invisible to certain users only. For example, if I 'ls' a directory, I want to see files 'a', 'b', and 'c'. But if another user does 'ls' in the same directory, I only want them to be able to see 'a' listed.
I know I can use 'chmod +700' to make certain files not able to be read/written, but the filename would still appear in a 'ls'.
I know I can put certain files inside of a '.hidden' file in the folder, but then it would be hidden from myself as well.
Is what I'm trying to do possible?
Edit : I'd also like to mention that the users that connect to the NAS could be coming from Windows or Mac operating systems. So hopefully the solution would work for users from those systems also..
Bookmarks