UGlee
2016-Aug-12 06:48 UTC
[Samba] Is it possible to send a message to samba client from samba vfs module?
For some reason, I want to write a VFS module to prevent user from deleting certain folder or files. I want to do it in a user-friendly way. For example, the client pops up a dialog, saying something on why he/she cannot fulfill the operation. If not all client works, I hope at least the Windows File Explorer will do. Is it possible? matianfu
Jeremy Allison
2016-Aug-12 17:44 UTC
[Samba] Is it possible to send a message to samba client from samba vfs module?
On Fri, Aug 12, 2016 at 06:48:36AM +0000, UGlee via samba wrote:> For some reason, I want to write a VFS module to prevent user from deleting > certain folder or files. I want to do it in a user-friendly way. For > example, the client pops up a dialog, saying something on why he/she cannot > fulfill the operation. If not all client works, I hope at least the Windows > File Explorer will do. > > Is it possible?Not really. There's no way for a server to asynchronously notify a client with specific text when an operation fails.
Herb Lewis
2016-Aug-12 17:49 UTC
[Samba] Is it possible to send a message to samba client from samba vfs module?
Couldn't you do something like the "net send" command? On 08/12/2016 10:44 AM, Jeremy Allison via samba wrote:> On Fri, Aug 12, 2016 at 06:48:36AM +0000, UGlee via samba wrote: >> For some reason, I want to write a VFS module to prevent user from deleting >> certain folder or files. I want to do it in a user-friendly way. For >> example, the client pops up a dialog, saying something on why he/she cannot >> fulfill the operation. If not all client works, I hope at least the Windows >> File Explorer will do. >> >> Is it possible? > Not really. There's no way for a server to asynchronously notify > a client with specific text when an operation fails. >
Possibly Parallel Threads
- Is it possible to send a message to samba client from samba vfs module?
- Calling an external API as quickly as possible
- Bootstrapping confidence intervals
- Smarter flac / samba VFS module possible?
- [LLVMdev] Is it possible to use the SimpleRegisterCoalescing pass in an iterative way?