Koozali.org: home of the SME Server

How to prevent programs from running from home drive

Offline bcalder01

  • ***
  • 47
  • +0/-0
How to prevent programs from running from home drive
« on: February 17, 2009, 11:33:23 AM »
Hi all, I hope this is an appropriate place to post this.

I have a user or two who have been running programs from their H: (home) drives. I am looking for a way to prevent ANY .exe's from executing from H:. We are using Kaspersky Workspace Security & perhaps that is where I should be concentrating my attention, but I think I'm probably not the first SME admin to come up against this.

Is there a way to prevent users from storing .exe's on their home drives, for instance? Maybe that's the way to do it, but it's not very flexible.

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: How to prevent programs from running from home drive
« Reply #1 on: February 17, 2009, 11:49:55 AM »

Offline bcalder01

  • ***
  • 47
  • +0/-0
Re: How to prevent programs from running from home drive
« Reply #2 on: February 17, 2009, 04:10:57 PM »
Thanks much for the link, David. I'll look at it ASAP. It looks like it can be distributed to workstations instead of installing individually, so that's great.

Offline bloodshoteye

  • *****
  • 232
  • +0/-0
  • Grateful thanks to SME devs
Re: How to prevent programs from running from home drive
« Reply #3 on: February 19, 2009, 07:48:16 PM »
@bcalder01

It will be useful to some of us if you would please post your results here.

Regards,
SME Server is a fantastic product - thank you!

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: How to prevent programs from running from home drive
« Reply #4 on: February 19, 2009, 10:35:02 PM »
Moving this topic to the General Discussion forum, it is more appropriate there. Thanks!
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline bcalder01

  • ***
  • 47
  • +0/-0
Re: How to prevent programs from running from home drive
« Reply #5 on: February 20, 2009, 10:00:32 AM »
I will do ... it may be some days before I get back to it (lots of fires to put out).

Offline bcalder01

  • ***
  • 47
  • +0/-0
Re: How to prevent programs from running from home drive
« Reply #6 on: February 24, 2009, 12:36:30 PM »
It looks like it's going to work well (still testing with a small group), and best of all, the "Multiple Computers" function works great!

I've got it so that netlogon.bat executes on startup by adding \\<fileserver netbios name>\netlogon\netlogon.bat, but I am prevented from rerunnin gnetlogon.bat after logon, even though I've specified H:\netlogon.bat. I've attached a screengrab - does anyone see anything illogical in it? The first line in the allow list was an attempt to have Trustnoexe to recognize the logged-in user, but doesn't work.

This is merely a small inconvenience - thank you David for pointing me to this app!!

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: How to prevent programs from running from home drive
« Reply #7 on: February 24, 2009, 01:33:50 PM »
Perhaps you need to specify the root netlogon as well - \\servername\netlogon\netlogon.bat.

There's no screen grab attached though.

Offline bcalder01

  • ***
  • 47
  • +0/-0
Re: How to prevent programs from running from home drive
« Reply #8 on: February 24, 2009, 02:09:25 PM »
Doh! Adding the image file didn't work, so here is what I have, by hand. Note that the app lowercases all entries:
Access list:
<file server netbios name>\%user%\netlogon.bat
<file server netbios name>\netlogon\netlogon.bat
c:\archiv~1
c:\archivos de programa
c:\progra~1
c:\program files
c:\windows
h:\netlogon.bat

Deny list:
h:\
« Last Edit: February 24, 2009, 02:13:33 PM by bcalder01 »

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: How to prevent programs from running from home drive
« Reply #9 on: February 24, 2009, 02:12:50 PM »
Just use ImageShack.

Offline bcalder01

  • ***
  • 47
  • +0/-0
Re: How to prevent programs from running from home drive
« Reply #10 on: February 24, 2009, 02:23:05 PM »
Right!!

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: How to prevent programs from running from home drive
« Reply #11 on: February 24, 2009, 02:27:52 PM »
I imagine that your issue is that the application becomes confused when you explicitly deny H: but at the same time explicitly allow H:\netlogon.bat.

Try removing H: from your custom deny list. Applications are blocked by default AFAIK, so there should theoretically be no need for this rule.

Offline bcalder01

  • ***
  • 47
  • +0/-0
Re: How to prevent programs from running from home drive
« Reply #12 on: February 24, 2009, 03:49:52 PM »
I removed H:\, but the issue still exists.

I can explicitly deny .exe's in an allowed path (as stated in the manual), so if I can do that, I'm pretty happy. I'm remapping network drives, so it's only a minor inconvenience that I have to log out & log back in to see the remapped shares, instead of just rerunning netlogon.bat.