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. |
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). |
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 |
All times are GMT -5. The time now is 05:39 AM. |