Page 1 of 1 1
Topic Options
#177203 - 2007-06-23 05:52 PM Create user share/folder
RyanSki Offline
Fresh Scripter

Registered: 2007-01-10
Posts: 6
I am looking for something that will create the user/share folder when the login script executes. Please let me know your ideas.


Ah, you can move this to basic scripting. I didn't read before I posted =p


Edited by RyanSki (2007-06-23 05:54 PM)

Top
#177204 - 2007-06-23 08:10 PM Re: Create user share/folder [Re: RyanSki]
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You would have to utilize elevated privileges in order generate such shares automatically. Would be easier to make this part of a user provisioning script thatt he aD admins run, set up username and default pasword, set up email if applicable, set up folder below a general suers share...
_________________________
There are two types of vessels, submarines and targets.

Top
#177206 - 2007-06-24 05:23 AM Re: Create user share/folder [Re: Sealeopard]
oneill Offline
Fresh Scripter

Registered: 2005-03-24
Posts: 27
Loc: Australia

What about sharing the root folder and deep mapping to the user's folder.
e.g.
D:\Users (Shared as "users")
D:\Users\User1

map to \\server_name\users\user1

saves having to create all of those shares. One less step in the whole process and so much easier to maintain.

Top
#177208 - 2007-06-24 09:15 AM Re: Create user share/folder [Re: oneill]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
How about not sharing the root folder and hiding the user share then you don't have any users trying to play games trying to access other folders.


\\SERVER\USERS\USER1$

I can understand and love automation and I've worked in a 70,000+ user network and it really doesn't take more than a minute to create an account and give permissions and it's not like you have a hundred new users a day every day. Sure automate some things but as an Admin I think YOU should be the one creating and managing the user account and folders and shares and permissions, not some automated thing that the user runs themselves.

Keep the shared folder names the same name as the users @UserID and then you can manage all types of things much easier.


You could also do something like this if your stretched for servers and/or space.

\\SERVER\SHARED$\DATA
\\SERVER\SHARED$\Apps
\\SERVER\SHARED$\Users
etc and map when / where needed

Top
#177210 - 2007-06-24 02:30 PM Re: Create user share/folder [Re: NTDOC]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
 Quote:
How about not sharing the root folder and hiding the user share then you don't have any users trying to play games trying to access other folders.
What games? Don't trust your ACEs? Who creates thousands of user shares anymore? That went away with Windows 9x!
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#177212 - 2007-06-24 11:51 PM Re: Create user share/folder [Re: Les]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
I've personally been on half a dozen networks with ten of thousands of users and they're still doing it today. I've recently even been on two networks in Europe and they do it to so not sure what you mean.

Top
#177213 - 2007-06-25 02:02 AM Re: Create user share/folder [Re: NTDOC]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
A half dozen plus two is eight. Eight old school types that were doing it that way out of necessity fifteen years ago and not willing to change. I wouldn't take those kinda numbers to the bank and I certainly wouldn't model my network after them.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#177214 - 2007-06-25 06:43 AM Re: Create user share/folder [Re: Les]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
Well then please provide more details of what you're talking about. Perhaps I'm missing something here that you're aware of and I'm willing to learn new things.

Just saying that regardless of the technology used behind the scenes as far as I know they all still use a hierarchical method for the file system.

If you're talking about DFS that too uses a hierarchical method of file management. So not trying to be coy - trying to understand what you're getting at that is so much better. Unix, FBSD, Linux, Macintosh, AS400, Windows all use a similar method of file storage relationship they each may have a little bit different method of achieving it but in the end they all are quite similar and maintain some type of hierarchical storage.

I don't see where by giving or not giving a user their own home share is "Old School". If that type or style of folder management provides the needs of the company then what's wrong with it? On Terminal Server a user needs a home folder as well.

So please provide more details on what you mean. Thanks.


 Quote:
What games? Don't trust your ACEs?
Oh I trust mine completely, but I DON'T trust other Admins as I can't count the amount of times that someone has given the wrong permissions.

Thinking about what you said further - Are you saying the SHARES are not required due to the ability of of 2000/XP/Vista to do deep mapping without it? Well then I'll agree on that point but there are also times when management and IT doesn't want other users to see or know these other folders exist and hidden shares are not a guarantee but do allow at least some level of hiding in plain site. If Windows was more like Novell then it wouldn't be an issue, but it's not. Politics is always a part of business and Technology alone won't get rid of it.



Edited by NTDOC (2007-06-25 07:16 AM)

Top
#177245 - 2007-06-26 11:20 AM Re: Create user share/folder [Re: NTDOC]
oneill Offline
Fresh Scripter

Registered: 2005-03-24
Posts: 27
Loc: Australia
The Point that I was trying to make is that by creating a share at the root of your directory structure, I usually create a hidden share so the users can't see it, means one less step you have to worry about, one less thing to go wrong.

If you are worried about users seeing other user's folders/shares then enable ABE (Access Based Enumeration) so they can't.

So what do you do if you have to migrate the server or move all of the user's home folders? This is where sharing the root directory really comes in handy, simply recreate the root share somewhere else and copy all of the user's folders.

If every user folder is shared, you have to un-share all of the folders and then re-create the shares, plus configure the share permissions. That is about 2 or 3 steps too many.

I know you can script this but why bother when you don't have to! ;\)

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 693 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.098 seconds in which 0.033 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org