[Samba] Smbstatus/lsof reports root instead of real username
Zoran Ljubisic
powersoft at bj.t-com.hr
Fri Apr 21 08:06:05 GMT 2006
Hi all,
In attachment are two files. testof.sh ( started with parameter app ) is
script that generates testof.txt output. On my network there are few foxprox
users that are using *.app files. Neither lsof, neither smbstatus are
reporting usernames of users actually using this app files. Instead users,
that two commands reports root as user. Therefore I cant find out what user
is using what file.
Sometimes, usernames are reported well.
Is this bug?
Zoran
-------------- next part --------------
server:~ # ./testof.sh app
kljucna rijec = app
smbstatus sa kljucnim rijecima
3197 DENY_WRITE 0x1 RDONLY EXCLUSIVE+BATCH /posao/backup/evident/2006//PROGRAMI/KNJ_IR_X/Knj_ir_x.app Fri Apr 21 09:50:51 2006
3197 DENY_WRITE 0x1 RDONLY NONE /posao/backup/evident/2006//Izbor.app Fri Apr 21 09:39:05 2006
3241 DENY_WRITE 0x1 RDONLY EXCLUSIVE+BATCH /posao/backup/evident/2006//PROGRAMI/KALKULAC/Kalk.app Fri Apr 21 09:51:50 2006
3241 DENY_WRITE 0x1 RDONLY NONE /posao/backup/evident/2006//Izbor.app Fri Apr 21 08:31:53 2006
3241 DENY_WRITE 0x1 RDONLY NONE /posao/backup/evident/2006//PROGRAMI/KNJIG_UR/Knjiga.app Fri Apr 21 08:32:09 2006
3246 DENY_WRITE 0x1 RDONLY EXCLUSIVE+BATCH /posao/backup/evident/2006//PROGRAMI/TEK_IZVJ/MPRIZNRN/Mpriznrn.app Fri Apr 21 09:41:02 2006
3246 DENY_WRITE 0x1 RDONLY EXCLUSIVE+BATCH /posao/backup/evident/2006//PROGRAMI/TEK_IZVJ/Tek_izvj.app Fri Apr 21 09:41:01 2006
smbstatus pid
UID PID PPID C STIME TTY STAT TIME CMD
root 3197 11986 0 08:11 ? S 0:02 /usr/sbin/smbd -D -s /etc/samba/smb.conf
root 3241 11986 0 08:17 ? S 0:02 /usr/sbin/smbd -D -s /etc/samba/smb.conf
root 3246 11986 0 08:19 ? S 0:03 /usr/sbin/smbd -D -s /etc/samba/smb.conf
lsof pid
UID PID PPID C STIME TTY STAT TIME CMD
root 3197 11986 0 08:11 ? S 0:02 /usr/sbin/smbd -D -s /etc/samba/smb.conf
root 3241 11986 0 08:17 ? S 0:02 /usr/sbin/smbd -D -s /etc/samba/smb.conf
root 3246 11986 0 08:19 ? S 0:03 /usr/sbin/smbd -D -s /etc/samba/smb.conf
lsof egrep awk
root ---> /posao/backup/evident/2006/Izbor.app
root ---> /posao/backup/evident/2006/PROGRAMI/KNJ_IR_X/Knj_ir_x.app
root ---> /posao/backup/evident/2006/Izbor.app
root ---> /posao/backup/evident/2006/PROGRAMI/KALKULAC/Kalk.app
root ---> /posao/backup/evident/2006/PROGRAMI/KNJIG_UR/Knjiga.app
root ---> /posao/backup/evident/2006/PROGRAMI/TEK_IZVJ/Tek_izvj.app
root ---> /posao/backup/evident/2006/PROGRAMI/TEK_IZVJ/MPRIZNRN/Mpriznrn.app
------------------------------------------------------------------
server:~ #
More information about the samba
mailing list