[Samba] process owner

Alaa Mail Alaa at netman.dk
Tue Dec 10 15:45:02 GMT 2002


Hi

how can I find which user using (openning) a file in windows machine from unix via samba

for example if  I have the following file which is a outlook file and it open by a user in my network

prompt> ls -l outlook.pst
-rw-rw----   1 aaa      mannet   1130496 Mar 21  2002

when I use fuser  

prompt> fuser -fu outlook.pst
I get the following process 

outlook.pst:      760094o(root)

then when I try to grep the above process 

prompt> ps -ef |grep 760094 

I get the following 
root     760094 530920  0.0   Dec 09 ??           0:22.33 sbin/smbd -D


which owned by the root

regards
Alaa




More information about the samba mailing list