nwhunter Posted July 4, 2006 Posted July 4, 2006 Hello,I'm offering for network share program for windows XP. My imagine is: server has folder for each user, requiring login with password on access + some folders for anonymous access (global one for everyone). Each client can see user list on server, login to account, upload, download data and so on. It should be shell extension for windows explorer or program window with drag & drop, copy &paste support (for IT newbies)Problem of normal windows share: I can't have password for each share item, only one password for everything (guest account) And there should be optional remote administration over webbrowser (to add client, change password etc.)Thanks for advances!
allen2 Posted July 4, 2006 Posted July 4, 2006 You're using windows shares in the wrong way. Microsoft designed it for authenficated users. The guest account is only here for special purpose which are not your case.You simply need to create a local group (we'll name it share1_users ) on your computer. Then create a share (we'll name it share1), set share permissions to users (the default group) with full control. Then set ntfs permissions on this share share1 to allow share1_users to list only. Then create a dir named common with ntfs permissions to allow share1_users to modify. Then create users add them to group share1_users and create a folder for each one in the share share1 and modify NTFS permissions to allow only one user to modify on this folder ( one user for each folder).
nwhunter Posted July 4, 2006 Author Posted July 4, 2006 (edited) Thank you very much! Is there way how to logout currently user viewing share and is possible to login in one window user1 and in second window user2? Maybe I have user some special winapi functions?+ Can I change error message box "Access denied" when is another user loged to login prompt dialog?(maybe with registry change, or hook api function which calls network enum?) Edited July 4, 2006 by nwhunter
allen2 Posted July 5, 2006 Posted July 5, 2006 You can't login twice at time but you can disconnect and reconnect. If you connected via connect a network share, you should be able to easily disconnect the same way. If you connected another way (via explorer), do a net use from command line it should display the current connection if there are still some connection to the computer where you enabled share1, you won't be able to reconnect with another user. You'd need to net use * /d to remove all connected resource and the should be able to connect again to share1 with another user.
nwhunter Posted July 5, 2006 Author Posted July 5, 2006 (edited) Thanks again. I decided to make shell extension for explore which will add to it's menu item with "Company network" with sub menu contains: "Connect as user", "Logout". I got idea with listbox and users in it, but is possible remotely enumerate users from group on another computer? I don't think its possible wihout admin login for server = thats makes problems again I noticed printer needs to have loged user too, thats again too bad! Edited July 5, 2006 by nwhunter
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now