77 points · by tdurden · 8y ago · 57 comments
Specifically, I need this functionality to make my backup program (Snebu) more useful to Windows users, as it relies on an installed tar implementation on a client to gather files.
If anyone here is skilled in the Windows API and is interested in helping with this, let me know.
The main problem with backup/restore these things is SIDs. Windows ACLs are much more sophisticated then these 6 bits in Linux.
It will work in some cases, e.g. when the owners are, and all the permissions are granted/denied to, a well known (1) group such as "Everyone". Or when all these SIDs are domain users SIDs, and you’re restoring to a PC that’s on the same domain.
It won’t work in many other cases, e.g. when these permissions were granted to some local user and you’ve reinstalled Windows between backup & restore.
That’s why in Windows it is typically considered OK to not bother backing up/restoring these ACLs.
(1) https://msdn.microsoft.com/en-us/library/windows/desktop/aa3...
As for "permissions were granted to some local user", in the tar file format it stores a UID/GID number, as well as a username/groupname, so when restoring to a different system the username takes precedence over the UID number. Could the same idea work on Windows? (Granted, I'd probably have to store this in the PAX header's name/value pairs, due to potentially longer length of the UID numbers).
The other item I've read is that Windows file permissions can be inherited from parent objects, so it may be useful to store those permissions, but not restore them (or give a warning if the effective permissions end up being different due to restoring to a different location).
These days you can use clang so a nice C compiler has returned.
A laughing stock turned into a respectable trend. Well done.
I think with this, PowerShell needs to stop aliasing curl to Invoke-WebRequest by default (or at least try to deprecate that alias).
A deprecation warning would be a good idea, though, to suggest to developers that are using the curl alias to move to iwr.
(Probably a while: command line familiarity is far from a given in Windows)
"GNU Windows" ;-)
(Not all GNU software is under GPL.)
Porting simple UNIX tools from the 70-80s to Windows and making a big fuzz about it? Tar? unzip.exe or whatever equivalent with a gui has been around for ages.
I just can't see how any self-respecting developer would be lured to Windows by this...
I'd still rather run GNU/Linux from the metal up, but my work depends on Windows for legacy data-acquisition systems. Right now, I have an experiment that's running a linux box and windows box side by side in order to get the best of both. Working out hardware access in a VM sounds unpleasant, so I'd love to see the native-windows-GNU implementation extended to X.
* MobaXTerm was usable (on Win7-8, a couple years ago), but IIRC it's surrounded by a faint stench of upsell and I recall being annoyed by its attempt to be a full desktop environment (tabs, file manager, integrated editor, etc). It feels very... windows-y, the X server equivalent of PuTTY.
* VcXsrv had (on Win10, about two weeks ago) a show-stopper bug - windows would fail to redraw outside their original bounds when resized. It also had trouble using modern UI toolkits or themes.
* Cygwin/X is the best, no issues at all if you're in cygwin, but I was unable to get it to cooperate smoothly with bash on windows and ended up deciding that the environment was worth more than the tiny missing features. If you don't need WSL I'd recommend this.
* Xming is what I've settled on. I use the free version, which is a major version behind (6.9 instead of 7.7), but I haven't noticed it lacking anything compared to Cygwin/X. Seems to be just as reliable as Cygwin/X too. Getting it configured was somewhat annoying (had to create xauthority manually, etc), but now that it's set up it's working smoothly.
I am mostly annoyed by two things, both of which are common to the setup and not the chosen tools:
* I have to put up with Windows for window management. I would much prefer something like i3, but I haven't gotten the fullscreen mode to work to my satisfaction.
* Network issues. You must be wired and you must have spare bandwidth. If you're running gigabit ethernet this isn't really an issue, but if you try to do it over wifi you're going to have a bad time.
Compared to running a virtual machine... it really comes down to picking a set of annoyances. VM you have to deal with configurating another machine, it devours resources, integration with the host isn't as good, and it can't tolerate monitor switching at all. Native X you don't get a usable WM. shrug
They tend to work without any issues.