Locking a file in Windows?
Author
Discussion

MattW

Original Poster:

1,076 posts

314 months

Thursday 15th April 2010
quotequote all
Hi all,

Quick question (or at least I hope it is), does anyone know how to lock a file in windows?

I have right clicked on the file I want to lock and clicked on 'sharing and security'. In the pop up box that comes up is the section I want i.e. a comand that says tick the box below to make this folder and its sub folder private, but it is shaded out and I can't tick it.

Any ideas how I get around this?

Cheers

Matt

tegwin

1,682 posts

236 months

Thursday 15th April 2010
quotequote all
Use something like Win-Rar and put the file inside a password protected .zip perhaps?

randlemarcus

13,646 posts

261 months

Thursday 15th April 2010
quotequote all
What are you actually trying to do?

NTFS Security will stop anyone who isn't you viewing it, until they assume ownership of the file, and look at it. If its decent pr0n, zip it, and password encrypt the zip file wink

james_tigerwoods

16,347 posts

227 months

Thursday 15th April 2010
quotequote all
Right-click the folder you want to share and select "Properties." This opens a configuration window that sets permissions.

Select the "Sharing" tab. Check the selection that is labeled "Share this folder." Enter a share name alias for the folder. An alias name is what users see when they browse your computer for shared folders.

Click the "Permissions" button. This opens a new window where you can set read, write, and modify permissions. It also gives you the ability to specify users for explicit access.

Click the "Add" button to include a user in the permissions list. Select a user from the list of network clients and click "Ok." This takes you back to the main permission window.

Give the user permissions by click the check boxes in the second window. Read access allows users to view the files available in the share. Users are not able to edit files with only read permissions. Check the "Write" box to allow users to edit files in the directory.

Select the "Everyone" group and click "Remove." The "Everyone" group gives everyone on the network access to the directory. Removing this group gives your directory better security.

Click the "Ok" button once you've added the users and groups you want to have access. Changes take effect immediately, so rebooting is not necessary.

That should cover it smile




ETA - I accept no responsibility if you get it wrong and lock yourself out of your pornfiles

Edited by james_tigerwoods on Thursday 15th April 15:18

illmonkey

19,827 posts

228 months

Thursday 15th April 2010
quotequote all
james_tigerwoods said:
Right-click the folder you want to share and select "Properties." This opens a configuration window that sets permissions.

Select the "Sharing" tab. Check the selection that is labeled "Share this folder." Enter a share name alias for the folder. An alias name is what users see when they browse your computer for shared folders.

Click the "Permissions" button. This opens a new window where you can set read, write, and modify permissions. It also gives you the ability to specify users for explicit access.

Click the "Add" button to include a user in the permissions list. Select a user from the list of network clients and click "Ok." This takes you back to the main permission window.

Give the user permissions by click the check boxes in the second window. Read access allows users to view the files available in the share. Users are not able to edit files with only read permissions. Check the "Write" box to allow users to edit files in the directory.

Select the "Everyone" group and click "Remove." The "Everyone" group gives everyone on the network access to the directory. Removing this group gives your directory better security.

Click the "Ok" button once you've added the users and groups you want to have access. Changes take effect immediately, so rebooting is not necessary.

That should cover it smile
Why share it to lock it down?

Also, you can quite easily take ownership of NTFS folders if you wish, getting around the security levels. I can also quite easily crack passwords on ZIP and RAR files...

Edited by illmonkey on Thursday 15th April 15:20

MattW

Original Poster:

1,076 posts

314 months

Thursday 15th April 2010
quotequote all
Trying to lock a folder that contains sensitive info about members of my team e.g. salary info - POrn would be far more interesting!

What is NTFS? Tried following the steps outlined but I don't have the 'permissions' option.

james_tigerwoods

16,347 posts

227 months

Thursday 15th April 2010
quotequote all
Ok, I copied it from a website, but it's something that I'd've done for sharing too.

I don't know why it's not greyed out, but it could be that you're not using NTFS.

Is it a shared computer then? Do you have specific users that log on with different accounts to the machine?

Edited by james_tigerwoods on Thursday 15th April 15:30

illmonkey

19,827 posts

228 months

Thursday 15th April 2010
quotequote all
MattW said:
Trying to lock a folder that contains sensitive info about members of my team e.g. salary info - POrn would be far more interesting!

What is NTFS? Tried following the steps outlined but I don't have the 'permissions' option.
NTFS is the HDD file system, if its XP or newer its most likly running it.

To get the permissions tab, open explorer and press TOOLS along the top, then FOLDER OPTIONS, then the VIEW tab, scroll to the bottom and untick "Use Simple file sharing (recommended)"

MattW

Original Poster:

1,076 posts

314 months

Thursday 15th April 2010
quotequote all
Yes, although its not docked at the moment.

What is NTFS?

james_tigerwoods

16,347 posts

227 months

Thursday 15th April 2010
quotequote all
If it's shared and you use different logons and assuming that the others don't have administrator rights, then the document in "My Documents" should keep it simple enough.

Failing that, if it's an Excel Spreadsheet, why not just put a password on the file?

Landlord

12,689 posts

287 months

Thursday 15th April 2010
quotequote all
MattW said:
What is NTFS?
I tihnk people have been avoiding answering this because it's not that easy to explain - and it's relevance - to a layman (assuming you are such).

It's basically a particular type "file system/structure" that brings with it the facility to lock files.

Do you know what version of Windows you are using?

Edit: Ooops, didn't see illmonkey's reply.

Edited by Landlord on Thursday 15th April 15:59

TonyToniTone

3,928 posts

279 months

Thursday 15th April 2010
quotequote all
james_tigerwoods said:
Ok, I copied it from a website, but it's something that I'd've done for sharing too.

I don't know why it's not greyed out, but it could be that you're not using NTFS.
James you are giving duff info.. the OP want to set permissions on a file to secure it and you are tell him to share it out!


OP is the file or folder you want to secure on the network or your PC?

If it's on your PC where is it located?



james_tigerwoods

16,347 posts

227 months

Thursday 15th April 2010
quotequote all
I meant, at the last, the the laptop was shared - not the directory.

The OP has said that it's a shared laptop - I think.

As I said - If it's a shared laptop and you use different logons and assuming that the others don't have administrator rights, then the document in "My Documents" should keep it simple enough.