Jump to content

Password protected folders (with runas command)


banan2
 Share

Recommended Posts

Hello.

I've been working on a method to password protect files on my network, even after I've logged in with username and password.

This is how I do it:

1. I create a user with username "otheruser" in Active Directory on my server.

2. I make a shared folder on my server called "securefolder".

3. I remove all users from the NTFS rights on the folder "securefolder" and I add the user "otheruser" to the list. That makes "otheruser" the only user with rights to the folder.

4. I make a shortcut, with the following path:

runas /user:mydomain\otheruser "explorer.exe \\server1\share\securefolder"

In theory it should try to open that folder with the user "otheruser", and request the password for the user "otheruser". If the password is correct, it should open the folder, if not it should not open the folder.

When I click the shortcut, it asks me for the password, and I enter the right password, but I get another error:

RUNAS ERROR: Unable to run - explorer.exe \\server1\share\securedfolder
1385: Logon failure: the user has not been granted the requested logon type at this computer

Does anyone know what the problem could be?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy