Locking a file in Windows?
Discussion
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
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
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
ETA - I accept no responsibility if you get it wrong and lock yourself out of yourpornfiles
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

ETA - I accept no responsibility if you get it wrong and lock yourself out of your
Edited by james_tigerwoods on Thursday 15th April 15:18
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
Why share it to lock it down?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

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
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?
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
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.What is NTFS? Tried following the steps outlined but I don't have the 'permissions' option.
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 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
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!I don't know why it's not greyed out, but it could be that you're not using NTFS.
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?
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.
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.
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff



