Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to do mass share of directories

Status
Not open for further replies.

andrew12

IS-IT--Management
Jun 28, 2002
56
GB
Hello,

I have created a number of user folders on an NTFS partition. Is there a way of automatically sharing these folders so users can map to them via a login script.

Also(and this might be pushing it) is there a way of automatically giving the relevant user ids change permission to the folders?

Thank You

Andy
 
You could create a batch file and use a utility called RMTSHARE. This may be part of nt4 resource kit.

Batch file would look something like this.

@echo off
rmtshare \\fbs02\accounts$=F:\DATA\shared\accounts /GRANT "accounts dept":f /GRANT "domain admins":f

Where accounts$ is the name of the share on server fbs02 and you grant the group "accounts dept" and "domain admins" FULL rights.

You can assign any rights, such as change etc.

Find RMTSHARE and check documentation that comes with it.

Regards
 
If you want a simple solution then you should download one of the many shareware utilities that allows you to click and share an entire folder in seconds!

I used to use the tedious RMTSHARE command untility until I found a GUI version.However, you still need to use CACLS to enforce the security permissions should you need to.

jono



A good fortune may forbode a bad luck, which may in turn disguise a good fortune.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top