Eric C
asked on
Enforce share permissions on a shared computer
Scenario:
- One Windows 10 Workstation having a single user name and password. Not on a domain. One profile, meaning 4 employees log into this computer using the same user name and password.
- One Synology NAS set up (for now) only as a file server. On the server we set up 4 user accounts. Each employee has his own login and password for the NAS. And user permissions on the NAS dictate who sees what (on the NAS).
The Problem:
The FIRST windows user that tries to connect to the NAS, will be prompted for his login. He enters his login and password, does NOT check the box 'remember my login info' and clicks OK.
As long as this Windows computer is running (no one has restarted or logged out), Windows will remember the login info for that connection to the NAS.
I want to provide an option that allows the user to DISCONNECT from the NAS folder:
- without deleting the mapped drive
- without making them log out of windows
Is there a script I can write, or a command I can run, that will
- disconnect from the NAS
- allow the next person to walk up to that same shared computer
- when he double-clicks on the mapped drive to the NAS, he is prompted for HIS login and password
So to recap - while the 4 users can log into and share one windows 10 computer, and they all use the same user name and password, it's the NAS I want to control access to, through separate logins. So, one password for the windows computer, but 4 passwords for the NAS. Windows is remembering the user name entered by the previous user. The only way around it is to log out of windows. I am looking for a way to get windows to 'forget' the active session's connection to the nas without having to log out and log back into windows.
- One Windows 10 Workstation having a single user name and password. Not on a domain. One profile, meaning 4 employees log into this computer using the same user name and password.
- One Synology NAS set up (for now) only as a file server. On the server we set up 4 user accounts. Each employee has his own login and password for the NAS. And user permissions on the NAS dictate who sees what (on the NAS).
The Problem:
The FIRST windows user that tries to connect to the NAS, will be prompted for his login. He enters his login and password, does NOT check the box 'remember my login info' and clicks OK.
As long as this Windows computer is running (no one has restarted or logged out), Windows will remember the login info for that connection to the NAS.
I want to provide an option that allows the user to DISCONNECT from the NAS folder:
- without deleting the mapped drive
- without making them log out of windows
Is there a script I can write, or a command I can run, that will
- disconnect from the NAS
- allow the next person to walk up to that same shared computer
- when he double-clicks on the mapped drive to the NAS, he is prompted for HIS login and password
So to recap - while the 4 users can log into and share one windows 10 computer, and they all use the same user name and password, it's the NAS I want to control access to, through separate logins. So, one password for the windows computer, but 4 passwords for the NAS. Windows is remembering the user name entered by the previous user. The only way around it is to log out of windows. I am looking for a way to get windows to 'forget' the active session's connection to the nas without having to log out and log back into windows.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Please close the original question and award points first.
ASKER
Agreed, that is fair. Let me try this and get back to you.
Working solution by NVIT has not been followed up on by asker.
ASKER
In other words:
1. User double-clicks on the icon
2. Windows prompts user for login (if they're not already authenticated)
3. shared folder is mapped to drive 'M'