LinuxQuestions.org
Review your favorite Linux distribution.
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 10-04-2009, 11:40 PM   #1
b-RAM
Member
 
Registered: Apr 2009
Distribution: OpenSuse, Slackware
Posts: 70

Rep: Reputation: 15
how to read lsof output command many file open by root ???


Hi all, need advice please, why sometimes when i typed:
lsof | grep /datasamba(directory samba for user client)
there is show output what files are open but many of that files indicated
open by root which actually supposed opened by user samba,
here is the output:

smbd 5023 root 19r DIR 8,17 4096 26673200 /datasamba/hrga03/Documents/2009/data2009.xls
smbd 5023 root 26rR REG 8,17 26624 58523714 /datasamba/ngelink01/JOHAN/Block.doc
smbd 5023 root 27uW REG 8,17 163840 26673284 /datasamba/hrga03/Documents/2009/data qu 2009/File-checked.xls
smbd 5061 eng03 25r DIR 8,17 12288 57163817 /datasamba/engineering/Others/DataTY/test.dwg

Is there any reason why when hrga03 open file data2009.xls when i typed
command lsof show like that ?

Thanks a lot.
 
Old 10-05-2009, 12:40 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,374

Rep: Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383
Do an

ls -l

on the file and find out who really owns it.
You've got 3 sets of permissions; ugo in symbolic notation, aka user (owner), group, other(world).
 
Old 10-05-2009, 02:40 AM   #3
b-RAM
Member
 
Registered: Apr 2009
Distribution: OpenSuse, Slackware
Posts: 70

Original Poster
Rep: Reputation: 15
Sorry chrism01, i mean not to find the owner of directory or files but users who accessed the directory or files cause when using lsof
command.

I can use command smbstatus to check what files that users opened but i just curious about lsof command which produce some kind like that output
i had attached on my previous post.

Thank's a lot for your reply and help chrism01.

cheers,
b-RAM
 
  


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
[SOLVED] append command output to file by giving command in terminal sumeet inani Linux - Newbie 4 07-03-2009 10:36 AM
using lsof command rheosiva Linux - Newbie 2 04-02-2009 01:36 AM
using lsof command rheosiva Linux - Security 1 04-01-2009 08:56 AM
Active connections conundrum involving lsof / netstat output uncle-c Linux - Newbie 8 12-09-2007 10:56 AM
lsof not listing 'all' open file crowster Linux - General 7 06-04-2006 06:41 AM

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

All times are GMT -5. The time now is 10:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration