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.




15598 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
5262 posts

Uber Geek

Trusted
Microsoft

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

icacls



15598 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



 
 
 
 


5262 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



15598 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.

5262 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

5262 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)



15598 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.

 
 
 
 




15598 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

786 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..



15598 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 »

Vodafone New Zealand starts two year partnership with LetsPlay.Live
Posted 28-Jan-2020 11:24


Ring launches indoor-only security camera
Posted 23-Jan-2020 17:26


New report findings will help schools implement the digital technologies curriculum content
Posted 23-Jan-2020 17:25


N4L to upgrade & support wireless internet inside schools
Posted 23-Jan-2020 17:22


Netflix releases 21 Studio Ghibli works
Posted 22-Jan-2020 11:42


Vodafone integrates eSIM into device and wearable roadmap
Posted 17-Jan-2020 09:45


Do you need this camera app? Group investigates privacy implications
Posted 16-Jan-2020 03:30


JBL launches headphones range designed for gaming
Posted 13-Jan-2020 09:59


Withings introduces ScanWatch wearable combining ECG and sleep apnea detection
Posted 9-Jan-2020 18:34


NZ Police releases public app
Posted 8-Jan-2020 11:43


Suunto 7 combine sports and smart features on new smartwatch generation
Posted 7-Jan-2020 16:06


Intel brings innovation with technology spanning the cloud, network, edge and PC
Posted 7-Jan-2020 15:54


AMD announces high performance desktop and ultrathin laptop processors
Posted 7-Jan-2020 15:42


AMD unveils four new desktop and mobile GPUs including AMD Radeon RX 5600
Posted 7-Jan-2020 15:32


Consolidation in video streaming market with Spark selling Lightbox to Sky
Posted 19-Dec-2019 09:09



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.