LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-14-2007, 04:41 AM   #1
aclica
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Rep: Reputation: 0
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

Last edited by aclica; 11-14-2007 at 06:21 AM.
 
Old 11-14-2007, 05:50 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,389

Rep: Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774
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.
 
Old 11-14-2007, 06:01 AM   #3
Dinithion
Member
 
Registered: Oct 2007
Location: Norway
Distribution: Slackware 14.1
Posts: 446

Rep: Reputation: 59
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.
 
Old 11-14-2007, 06:23 AM   #4
aclica
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Is a directory mount with samba
 
Old 11-14-2007, 06:41 AM   #5
aclica
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Deny Users to Delete, but Allow Write/Read and Exec ManRSA Linux - Security 3 11-21-2006 02:02 AM
Allow two users write access, but not delete jimieee Linux - General 4 03-29-2005 08:37 AM
vsftpd: allow users to write and delete files me3 Linux - Software 4 03-04-2005 07:22 PM
samba guest directory once write then no delete ilnli Linux - Networking 1 08-30-2004 01:36 AM
How to Read, Write, Execute but not Delete r042wal Linux - Software 6 06-07-2003 11:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration