PC Review


Reply
Thread Tools Rate Thread

How can I print NTFS perms of all shares on Server?

 
 
OscarVogel
Guest
Posts: n/a
 
      10th Apr 2006
How do I print out a list of NTFS permissions for files & folders with-in
each shared folder on a Windows 2000 Server?

I want to check to make sure that permissions are set correctly. So I tried
clicking on each shared folder & viewing the Security tab. (All SHARE perms
are Full Control for Everyone). But all that clicking that takes way too
long, especially if I try to write down the permissions. There's got to be
an easier way (w/out buying 3rd party software). Is there a Resource Kit
utility? Is there a native command line utility?

I'll really appreciate any suggestions on how to do this right. Thanks!


 
Reply With Quote
 
 
 
 
Chriske911
Guest
Posts: n/a
 
      10th Apr 2006
> How do I print out a list of NTFS permissions for files & folders
> with-in each shared folder on a Windows 2000 Server?


> I want to check to make sure that permissions are set correctly. So I
> tried clicking on each shared folder & viewing the Security tab. (All
> SHARE perms are Full Control for Everyone). But all that clicking
> that takes way too long, especially if I try to write down the
> permissions. There's got to be an easier way (w/out buying 3rd party
> software). Is there a Resource Kit utility? Is there a native
> command line utility?


> I'll really appreciate any suggestions on how to do this right.
> Thanks!


take a look at the CACLS command

you can pipe this to a text file and then do with it as you please

grtz


 
Reply With Quote
 
OscarVogel
Guest
Posts: n/a
 
      10th Apr 2006
I don't see how to use cacls to get NTFS perms for folders only, or maybe
just one folder. Using "cacls *" tells me more than I want to know. Do you
know if there's a way for it to return perms for either a particular folder,
or for all folders, but not files?

But anyway, yes the CACLS command is sure better than licking on each shared
folder's Security tab. So thanks for solving my problem.


"Chriske911" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>> How do I print out a list of NTFS permissions for files & folders with-in
>> each shared folder on a Windows 2000 Server?

>
>> I want to check to make sure that permissions are set correctly. So I
>> tried clicking on each shared folder & viewing the Security tab. (All
>> SHARE perms are Full Control for Everyone). But all that clicking that
>> takes way too long, especially if I try to write down the permissions.
>> There's got to be an easier way (w/out buying 3rd party software). Is
>> there a Resource Kit utility? Is there a native command line utility?

>
>> I'll really appreciate any suggestions on how to do this right. Thanks!

>
> take a look at the CACLS command
>
> you can pipe this to a text file and then do with it as you please
>
> grtz
>
>



 
Reply With Quote
 
OscarVogel
Guest
Posts: n/a
 
      10th Apr 2006
Disregard my last reply. I see now after looking at the print out that
"cacls *" DOES in fact print out just the perms of each shared folder. For
now, that's exactly what I want. Thanx!


"Chriske911" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>> How do I print out a list of NTFS permissions for files & folders with-in
>> each shared folder on a Windows 2000 Server?

>
>> I want to check to make sure that permissions are set correctly. So I
>> tried clicking on each shared folder & viewing the Security tab. (All
>> SHARE perms are Full Control for Everyone). But all that clicking that
>> takes way too long, especially if I try to write down the permissions.
>> There's got to be an easier way (w/out buying 3rd party software). Is
>> there a Resource Kit utility? Is there a native command line utility?

>
>> I'll really appreciate any suggestions on how to do this right. Thanks!

>
> take a look at the CACLS command
>
> you can pipe this to a text file and then do with it as you please
>
> grtz
>
>



 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      11th Apr 2006

"OscarVogel" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> How do I print out a list of NTFS permissions for files & folders with-in
> each shared folder on a Windows 2000 Server?
>
> I want to check to make sure that permissions are set correctly. So I

tried
> clicking on each shared folder & viewing the Security tab. (All SHARE

perms
> are Full Control for Everyone). But all that clicking that takes way too
> long, especially if I try to write down the permissions. There's got to

be
> an easier way (w/out buying 3rd party software). Is there a Resource Kit
> utility? Is there a native command line utility?
>
> I'll really appreciate any suggestions on how to do this right. Thanks!
>
>


I knocked together this little batch file that will do the trick.
In stage 1 it pops up a notepad that gives you the opportunity
to review your shares list and remove those that are inappropriate.

Line1 @echo off
Line2 if exist perms.txt del perms.txt
Line3
Line4 net share | find ":" | find /i /v "Default share" | find /i /v "IPC$"
| find /i /v "spooled" | find /i /v "Remote Admin" | find /i /v "print$" >
shares.txt
Line5 notepad shares.txt
Line6
Line7 for /F "tokens=2*" %%a in ('type shares.txt') do call :Sub %%a %%b
Line8 echo Share permissions are now stored in perms.txt.
Line9 goto :eof
Line10
Line11 :Sub
Line12 set dir=%1
Line13 :loop
Line14 shift
Line15 if "%1"=="" goto cacls
Line16 set dir=%dir% %1
Line17 goto loop
Line18
Line19 :cacls
Line20 cacls "%dir%" >> perms.txt


 
Reply With Quote
 
=?Utf-8?B?SXJpc2hJbk96UHJvZg==?=
Guest
Posts: n/a
 
      11th Apr 2006
Get DumpSec (Free software) from http://www.systemtools.com/free.htm

I used it to document all my shares and folders permissions and to create an
exceptions list before migrating a file server. It's a very useful tool. I'd
have spent hours trying to find out everything without it.

:-)
 
Reply With Quote
 
BD
Guest
Posts: n/a
 
      11th Apr 2006
>But anyway, yes the CACLS command is sure better than licking on each shared
>folder's Security tab. So thanks for solving my problem.


I agree. Your monitor will get all gukky.

*sorry - couldn't resist*

BD

 
Reply With Quote
 
blablamijnadres@hotmail.com
Guest
Posts: n/a
 
      24th Apr 2006
Hi,

Have a look at Permission Analyzer:
http://www.PermissionAnalyzer.com

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reset NTFS Perms? Troy Bruder Windows XP General 5 19th Mar 2005 04:39 PM
Changing NT printer perms on server with XP--get security error Boom Windows XP Print / Fax 0 20th May 2004 06:14 PM
Re: clear explaination of share perms vs nfts perms Bill Adragna Microsoft Windows 2000 Networking 1 28th Aug 2003 07:12 AM
Re: clear explaination of share perms vs nfts perms Jim Peterson Microsoft Windows 2000 Networking 1 28th Aug 2003 07:05 AM
Moving Shares and perms. Troy Bruder Microsoft Windows 2000 0 28th Jul 2003 06:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:33 AM.