Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




15225 posts

Uber Geek

Trusted
Subscriber

# 164280 4-Feb-2015 07:26
Send private message

I've recently started using W10 alongside W7, file permissions have been a bit of a pain. I would sometimes have to go back into W7 to change permissions so I could take ownership of files in W10 then change permissions there.

Yesterday I took an image of my W7 drive with Macrium Reflect free, tried something that accidentally deleted the W7 partition, then tried to restore it. Unfortunately the image (and another I took at the same time) is corrupt. So I no longer have the option to go back into W7 and change permissions. I could reinstall of course but I'll probably just run with a brand new fresh install of W10.

What I'm after is a way to bulk assign the same owner and permissions to every file on a disk. I know you should in theory just right click the root folder and change it there, but various things come up:
 - Recycle bins from the two windows versions seem incompatible so I have to hit "ignore" about 5000 times.
 - Some folders deep in the tree seem to have odd permissions and don't want to be changed.

Is there a way to say "set this owner and permissions for every file on this disk without asking me a bunch of questions"?

Create new topic
5168 posts

Uber Geek

Trusted
Microsoft

  # 1230906 4-Feb-2015 07:38
One person supports this post
Send private message

icacls



15225 posts

Uber Geek

Trusted
Subscriber

  # 1230909 4-Feb-2015 07:50
Send private message

So something like this will recursively give USERNAME ownership and full permissions to all files on a drive? Will this work on any computer and any drive to take permissions? Makes NTFS seem pretty insecure...

icacls d:\* /setowner USERNAME /c /t
icacls d:\* /grant USERNAME:F /c /t



 
 
 
 


5168 posts

Uber Geek

Trusted
Microsoft

  # 1230910 4-Feb-2015 07:57
Send private message

NTFS is not insecure. you need to have permissions to set permissions



15225 posts

Uber Geek

Trusted
Subscriber

  # 1230913 4-Feb-2015 08:10
Send private message

So if I try to set permissions on files I don't explicitly have access to I won't be able get them with icacls?

What happens in the scenario that permissions are locked down on a data disk to give full permissions to just "john" but no permissions to anyone else, the OS fails and is reinstalled, and you need to give a user on the new OS "fred" ownership and permissions to the files?

I of course have backups but I would rather not have to do that.

5168 posts

Uber Geek

Trusted
Microsoft

  # 1230925 4-Feb-2015 08:32
Send private message

if ICACLS is failing to take ownership, then you need to take ownership using TAKEOWN

5168 posts

Uber Geek

Trusted
Microsoft

  # 1230926 4-Feb-2015 08:34
Send private message

and in terms of security, this isn't insecure.  You can take ownership as you have local physical access to the disk
If you wanted to stop someone from being able to rip out your disks and put them in another machine, looking into EFS (encrypting file system) or BDE (BitLocker drive encryption)



15225 posts

Uber Geek

Trusted
Subscriber

  # 1230930 4-Feb-2015 08:38
Send private message

I'll try ICACLS this evening, i'll look into TAKEOWN if it doesn't work thanks. Good point about physical access. I do have sensitive data encrypted.

 
 
 
 




15225 posts

Uber Geek

Trusted
Subscriber

  # 1234404 11-Feb-2015 06:44
Send private message

Is there an easy way to say "remove all existing permissions, set all files and folders to use inherited permissions"?

JWR

779 posts

Ultimate Geek


  # 1234428 11-Feb-2015 08:33

timmmay: Is there an easy way to say "remove all existing permissions, set all files and folders to use inherited permissions"?


You mean like...  right click -> properties -> security tab -> advanced button?

You can take ownership, add/remove permissions, inheritance etc..



15225 posts

Uber Geek

Trusted
Subscriber

  # 1234429 11-Feb-2015 08:35
Send private message

JWR: You mean like...  right click -> properties -> security tab -> advanced button?

You can take ownership, add/remove permissions, inheritance etc..


When you do that if there are files way down the tree that have difference permission or ownership it doesn't tend to take. After a bit more reading I'm thinking TAKEOWN then ICACLS /reset should probably do the job.

Create new topic



Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Microsoft New Zealand Partner Awards results
Posted 18-Oct-2019 10:18


Logitech introduces new Made for Google keyboard and mouse devices
Posted 16-Oct-2019 13:36


MATTR launches to accelerate decentralised identity
Posted 16-Oct-2019 10:28


Vodafone X-Squad powers up for customers
Posted 16-Oct-2019 08:15


D Link ANZ launches EXO Smart Mesh Wi Fi Routers with McAfee protection
Posted 15-Oct-2019 11:31


Major Japanese retailer partners with smart New Zealand technology IMAGR
Posted 14-Oct-2019 10:29


Ola pioneers one-time passcode feature to fight rideshare fraud
Posted 14-Oct-2019 10:24


Spark Sport new home of NZC matches from 2020
Posted 10-Oct-2019 09:59


Meet Nola, Noel Leeming's new digital employee
Posted 4-Oct-2019 08:07


Registrations for Sprout Accelerator open for 2020 season
Posted 4-Oct-2019 08:02


Teletrac Navman welcomes AI tech leader Jens Meggers as new President
Posted 4-Oct-2019 07:41


Vodafone makes voice of 4G (VoLTE) official
Posted 4-Oct-2019 07:36


2degrees Reaches Milestone of 100,000 Broadband Customers
Posted 1-Oct-2019 09:17


Nokia 1 Plus available in New Zealand from 2nd October
Posted 30-Sep-2019 17:46


Ola integrates Apple Pay as payment method in New Zealand
Posted 25-Sep-2019 09:51



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.