Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestion for easy enhancement: enable SeBackupPrivilege #5

Open
assarbad opened this issue Jan 22, 2024 · 3 comments
Open

suggestion for easy enhancement: enable SeBackupPrivilege #5

assarbad opened this issue Jan 22, 2024 · 3 comments

Comments

@assarbad
Copy link
Contributor

NB: this was suggested by a user. Quoting from the email below:


I notice that windirstat, even when run as Administrator, cannot see some folders..
Producing big yellow Unknown (if reporting Unknown is enabled).
Like this:

(image not yet posted, because it may contain some stuff the user would not want here)

The root cause for this lack of access is, in my case, the ACLs of the folders.
But local Administrator should have sufficient privs to observe these right?
Well yes, but those privileges are not by default “Enabled”.

image

The above shows that SeBackupPrivilege is granted (or else it wouldn’t be listed), however it is disabled.

I think, in theory, the local Administrator COULD modify his User Access Token to enable SeBackupPrivilege,
but the more typical approach is that the utility itself asks for enabling of the privilege (if it has been granted).

I think that’s what robocopy does.

If this makes sense, then I’d like to create a ticket requesting this:
Windirstat should attempt to enable SeBackupPrivilege before starting its walk.

Then windirstat could count all of those folders that are now displayed as Unknown.

@assarbad
Copy link
Contributor Author

If we check first that the user has this privilege assigned, before trying to enable it (otherwise an audit alert may result), I think that's a sound idea.

IIRC I did have that in a ticket before at some point.

Either way this should be a configuration option that is default-on, in my opinion. @NoMoreFood any opinion?

That privilege basically allows to skip certain permission checks, somewhat akin to how the owner of an object always is bestowed the WRITE_DAC access, no matter what the SD says.

@NoMoreFood
Copy link
Contributor

NoMoreFood commented Jan 23, 2024

I already have this is my fork (ba5d571) without the proactive eligibilty check or optional setting. I’ll see about adding those.

@NoMoreFood
Copy link
Contributor

NoMoreFood commented Jan 23, 2024

Additional suggestions have now been incorporated. https://github.com/NoMoreFood/windirstat/commit/e80ed21eaa0982826eb0d2c3908c379060ee9a99

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants