Hello, I would like to know if somebody knows any way to disconnect/logout user only from one share. One of my user is using serveral samba shares. I would like to disconnect him only from one share. I noticed that killing PID of smbd subprocess causes disconnecting from all used shares - I can not afford it, because other shares are used by critical for my user applications. Any suggestions? Thanks a lot! -- View this message in context: http://old.nabble.com/disconnecting-user-from-only-one-share-tp28453207p28453207.html Sent from the Samba - General mailing list archive at Nabble.com.
On Tue, May 04, 2010 at 02:18:09PM -0700, raveenpl wrote:> > Hello, > > I would like to know if somebody knows any way to disconnect/logout user > only from one share. > > One of my user is using serveral samba shares. I would like to disconnect > him only from one share. I noticed that killing PID of smbd subprocess > causes disconnecting from all used shares - I can not afford it, because > other shares are used by critical for my user applications. > > Any suggestions?Check out the smbcontrol message "close-share". Jeremy.
That is conceptually not possible, because "logged in" means that the user is authenticated - and that is always server-wide or even domain-wide (unless you use per-share authentication). If you did kill "his" smbd subprocess, he could connect right back. What you could do is change the permission on that particular share, or better yet, on the underlying directory, to deny him access.> -----Original Message----- > From: samba-bounces at lists.samba.org [mailto:samba- > bounces at lists.samba.org] On Behalf Of raveenpl > Sent: Tuesday, May 04, 2010 2:18 PM > To: samba at lists.samba.org > Subject: [Samba] disconnecting user from only one share > > > Hello, > > I would like to know if somebody knows any way to disconnect/logout > user > only from one share. > > One of my user is using serveral samba shares. I would like to > disconnect > him only from one share. I noticed that killing PID of smbd subprocess > causes disconnecting from all used shares - I can not afford it, > because > other shares are used by critical for my user applications. > > Any suggestions? > > Thanks a lot!