Uac – How to define a powershell function which requires elevation?

Since I can’t find any alternative to Linux’ sudo elevation command, I have the following question: How to define a PowerShell function which requires elevation? I mean UAC prompt. Say, such function follows: function system-check {    SFC /ScanNow} System: Windows 8.1 Pro 64-bit PowerShell: Major  Minor  Build  Revision—–  —–  —–  ——–5      0      10586  117 EDIT1:…

Read More

Ubuntu – Linux Group Permissions not being enforced correctly.

I am running Ubuntu 10.04 server and am having some very counter-intuitive experiences with users/groups. For example: sudo touch test_file                    # create empty filesudo groupadd test                      # create ‘test’ groupsudo chown root:test test_file          # change group of file to ‘test’sudo chmod g+rwx test_file              # give write permissions to groupsudo usermod -a -G test {my-user}       #…

Read More