LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Restrict directory access (https://www.linuxquestions.org/questions/linux-security-4/restrict-directory-access-13714/)

bdu 02-07-2002 12:56 AM

Restrict directory access
 
I want to restrict the access of directory D1 to some users in such a way that they can create the files in D1 but cannot read the existing files.

I tried giving -wx rights to that group of users. The problem is that the users cannot copy files to directory D1 using explorer but a simple 'cp' command from console prompt lets them copy files to this directory. I want the users of this group to be able to use explorer/Konquerer to copy files to Directory D1 but restrict their read access. Can anubody help!!

unSpawn 02-07-2002 12:13 PM

This is because by using "cp" you won't need to "ls" the dir to build the representation of the directory contents, a routine an "explorer"-type app would have.

Btw, maybe you want to clarify what is the reason you want to achiev this, and more, whats the security aspect of it? Not being able to read the dir doesn't mean you can't overwrite files/guess filenames.


All times are GMT -5. The time now is 09:24 PM.