[Samba] How to see loging of the user

Sebastian Held sebastian.held at gmx.de
Tue Jan 3 10:14:14 GMT 2006


you can use the utmp logging feature.
Place the following options in the global group of smb.conf:
utmp = Yes
utmp directory = /var/log/samba/utmp
wtmp directory = /var/log/samba/wtmp

mkdir -p /var/log/samba/utmp
mkdir -p /var/log/samba/wtmp
touch /var/log/samba/utmp/utmpx
touch /var/log/samba/wtmp/wtmpx

This should do the trick. The command last -f /var/log/samba/wtmp/wtmpx shows 
you the infos.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba/attachments/20060103/7a807c3d/attachment.bin

More information about the samba mailing list