Check who is accessing my shared folders in Linux?

5

1

Is there any utility that shows, who is accessing( has accessed ) my shared folders. I am using samba to share folders with other windows machines.

Jestin Joy

Posted 2011-02-11T02:14:01.850

Reputation: 161

I'd be curious if net rap session can show this information to you. – None – 2011-02-11T02:46:43.610

Answers

2

Log files are in /var/log/samba

BMitch

Posted 2011-02-11T02:14:01.850

Reputation: 484

1

net status sessions

net status shares

Another way is to put utmp = yes in the [global] section of smb.conf. After that, Samba sessions will be listed by the w and who commands, along with SSH connections.

user1686

Posted 2011-02-11T02:14:01.850

Reputation: 283 655

smbstatus does the same job too – Linker3000 – 2011-02-11T08:56:08.410

I am looking for getting the the information about users who accessed my shares. Not only people accessing my shares – Jestin Joy – 2011-02-14T14:18:08.300