Heineken: Yup, I need. I have some folder sharing on Samba. Now I don't want to share.
Tiger: Okay, you use smbstatus to find the Process ID. Then, you kill those PIDS.
Heineken: Oh it's simple. Why me don't think :D
Example:
root@##:/media# smbstatus
Samba version 3.6.3
PID Username Group Machine
-------------------------------------------------------------------
13578 culi culi g##-laptop-hai (10.10.19.53)
13359 culi culi a##-pc (10.10.20.84)
Service pid machine Connected at
-------------------------------------------------------
IPC$ 13359 a##-pc Fri Jan 3 15:47:48 2014
Tiger 13578 g##-laptop-hai Fri Jan 3 14:51:47 2014
Tiger 13359 a##-pc Fri Jan 3 14:48:07 2014
No locked files
root@##:/media#
root@##:/media# kill -9 13578
root@##:/media# smbstatus
Samba version 3.6.3
PID Username Group Machine
-------------------------------------------------------------------
Service pid machine Connected at
-------------------------------------------------------
No locked files
root@##:/media#
Thank you for reading this article, please a comment if you are interested.
Tiến Phan - R0039
Knowledge is Endless
Sharing for Success
Tiến Phan - R0039
Knowledge is Endless
Sharing for Success
0 nhận xét:
Post a Comment