Solved

Network share log folder permissions

Posted on 2014-11-24
3
186 Views
Last Modified: 2014-12-02
I've been asked by management to log IM chats.  I've already got the logon script and gpo that will edit the registry keys and point the IM client to save the log files to a network share folder that is created when the logon script is run.

Now my concern is end users snooping around the network and finding this folder and reading everyone else's IM chats.  Chances are slim that this will even be noticed but if one person finds it this could be a huge problem.

So I would like to know how to setup permissions on the log folder that will allow the script to run and create the user folder but set permission in a way that will only allow the user and domain admins to have access to their folder.  The user folder should also allow the user with access to this folder to write but not view/read/delete/edit the log files it creates in this folder.

Any help will be appreciated.
0
Comment
Question by:Fveng
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
NVIT earned 500 total points
ID: 40462826
Hi Fveng...

I did a test of that link I gave you on your last topic, i.e. http://community.spiceworks.com/scripts/show/2522-windows-user-share-exclusive-access

It seems to work. But, I think it needs adjustments, depending on the users/groups in your network. For example, in the folder I tested, the Domain Users was still able to see the contents. But, I didn't want this. So, I added a line below the "icacls %1\%2 /remove "CREATOR OWNER" line.

icacls %1\%2 /remove "CREATOR OWNER" /T /C /Q 2>NUL

REM Remove the Domain Users permission as it's not needed.
icacls %1\%2 /remove "Domain Users" /T /C /Q 2>NUL

Open in new window


This worked. A domain user was still able to see the user folder but not the contents. I can't remember but I think there's a setting or fix for that but that's another topic.

Just customize that line for your use, adding your users/groups as needed.

To run it on all the folders, use something like:

for /d %%a in (*.*) do (
  echo Filename.bat E:\Shares\UserProfiles %%a
)

Open in new window

0
 

Author Comment

by:Fveng
ID: 40463164
Can't this be done just using windows permissions rather than a login script?  Sorry I'm not a script guy and the correct permissions could be set on the parent folder rather than a script.
0
 
LVL 23

Expert Comment

by:NVIT
ID: 40463205
If you mean using the Security tab, you'll have to enter each user manually.

If users have full control of their folder, they should be able to manually revise the rights as needed.

The batch file in this topic must be run by the domain admin. If all your users already ran the Shoretel script from your other topic they now have a chat folder. All that's left is for you as domain admin to run this batch file once and you'd be done.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now