Skip to main content
1 of 4
Mark
  • 203
  • 3
  • 9

Is it possible to run a bash command from Windows via a samba connection?

Now, before you finish thinking "Dear God! why would you want to allow that?!?", I'm wondering if it's possible.

What I'm trying to solve, could be solved in other ways, but this puts it in the functional realm of other, non *nix-y admins at my work place.

What I want to achieve is: Have a shortcut / file / what-have-you be able to be double clicked (to run it), over a samba connection, and have umount /path/to/ext-drive executed.

This could fall on it's face in many areas, one of course being the aforementioned "Why?!!?!", and I've just remembered that the mount is done via root's cron, so it may not even be able to be unmounted via some other named smb user.

Practically, I'm thinking of linking to a .sh file outside of the shares in an attempt to isolate anything with execute away from samba user tinkering.

Any thoughts?

Mark
  • 203
  • 3
  • 9