LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Find users how read/write/delete in a directory (https://www.linuxquestions.org/questions/linux-newbie-8/find-users-how-read-write-delete-in-a-directory-599522/)

aclica 11-14-2007 04:41 AM

Find users how read/write/delete in a directory
 
How I find users that read/write/delete in a directory ?

I want to know the user (name, IP, something) how read/write/delete in a particular directory

chrism01 11-14-2007 05:50 AM

I think you are asking about permissions eg
drwxrwxrwx
which broken down means
d this is a dir file
rwx u - user/owner has read/write/execute
rwx g - group access is read/write execute
rwx o - others/world has read/write/execute

See the chmod cmd to alter permissions
eg
chmod u-x filename
means remove x (execute) perm for user (aka owner)
see here http://rute.2038bug.com/node17.html.gz for more info, in fact that on-line manual is invaluable, you should bookmark and read it.

Dinithion 11-14-2007 06:01 AM

I'm not sure I understand what you want. Anyhow in a terminal window you can type:
ls -l
to get a list of files/folders and their userrights. I.e.
drwx------ 3 lamename users 4096 2007-10-15 18:35 Desktop

In a directory you only don't have read/write/delete, it's read/write/execute. read is to read it's content, write is to modify the content of the folder (Create and delete files/folders. So if a user got write access to a directory the user can actually delete files, even if the user doesn't have any access to the actual file.) and execute, to be able to open the folder (cd to it) read 'man chmod' to understand the userrights better.

If you use a GUI, you could right-click on the folder and click on properties or something.. I don't use it to often, so I really don't remember.

aclica 11-14-2007 06:23 AM

Is a directory mount with samba

aclica 11-14-2007 06:41 AM

I what to know in any moment the user (or users) that read/write/delete in this directory .I think I have to make some log file to colect informations but I don't know how.


All times are GMT -5. The time now is 04:20 PM.