Windows Services for Unix 3.5

Daily Newsletters

Sign up to ZDNet UK's daily newsletter.

Microsoft's Windows Services for Unix will be most useful if you've already made the decision to switch platforms. This free download will also make life easier for Unix experts who need to use a Windows desktop system.… Read full review

Editors' rating:
  • 7 out of 10
7 out of 10
User rating:
  • 7.7 out of 10
7.7 out of 10

Pros

  • Allows Unix applications and tools to be used in Windows environments
  • simplifies file sharing across platforms
  • good command-line administration
  • free to download

Cons

  • Applications may need tweaking to install
  • some components rely on Active Directory

Microsoft wants people to use its operating systems and applications rather than anyone else's. No surprise there. Providing a toolkit to help users migrate from other platforms to Microsoft’s own isn’t exactly unprecedented either. But to provide a toolkit that makes Windows behave like Unix may sound a little far fetched, especially when it contains open-source software. When you consider that all this is given away, it sounds too good to be true. Unfortunately, in some respects this is the case.

Windows Services for Unix (SFU) is a toolkit designed to allow Unix users to integrate with and migrate to a Windows environment without having to throw away applications, scripts and other familiar tools. This typically includes shell scripts to automate various tasks, but can include running applications written for Unix on a Windows machine. Previous versions of SFU have been available, but none is as comprehensive as version 3.5. They’ve also previously been charged for: version 3.5 is a free download, or a minimal-cost CD-ROM.

What you get
SFU 3.5 consists of a POSIX-compliant subsystem, a server and a client for NFS, a Windows-to-POSIX name mapping system, an NIS server and a telnet server for those versions of Windows that don’t already come with one. The POSIX subsystem is meant to be a complete replacement for a Unix environment, and includes the GNU C compiler and libraries. The other components allow the two environments to interoperate if necessary, although if you’re happy treating them as entirely separate systems, you can get away with installing few, if any, of these other components.

Name mapping
The name mapping service manages the relationship between Windows user names and the Unix user names used for the other services provided. This is necessary because of the different models used for user names in the two systems. The service allows one-to-one or many-to-one mapping of users, so that lots of different Windows users can be mapped to the same Unix user. This service underpins all the other Unix-like services provided as part of SFU, and will need installing on most machines on which you want to use SFU if you want to use a single set of credentials for both environments.

NIS server
The NIS server allows the Windows machine on which you’ve installed SFU to act as the NIS master for all the Unix systems on your network. This isn’t the same as participating in an NIS domain using the name mapping service. Instead this uses a Windows Domain controller as the NIS domain master. You need to be using Active Directory to use the NIS server, since an AD container object is used to manage the NIS domain. NIS server supports Unix machines as backup NIS domain servers, but the Windows system has to be in charge. If you do choose to move across to the NIS server, a migration wizard is provided to move your existing user accounts across to Active Directory.

NFS client
The NFS client and server allows Windows and Unix systems to share files with natively. The server allows you to store files that were previously stored on a Unix host on a Window server without needing to install extra software on any Unix clients that need to access those files. Equally, you can use the client service to access files stored on a Unix server. There is also an NFS gateway in SFU, which allows a Windows server to serve files held on an NFS server to native Windows clients. However, you can achieve the same end either by installing the NFS client on users’ machines if there aren’t many of them, or, for more users, by migrating the files to a Windows server and installing the NFS server. One oddity of the NFS client is that since this is a Windows component, the mount command isn’t available under the POSIX subsystem, only the Windows command line. This could possibly cause some problems if your scripts involve mounting NFS volumes -- you’ll have to mount the volumes manually before running the scripts, or invoke a separate Windows batch file to do it. Either way you’ll have to rewrite your script. All the services in SFU can be administered using the Windows management console or via the Windows command line. This latter option allows you to administer the services remotely through the telnet server supplied with SFU (or the one supplied with later versions of Windows). It will also allow automated provisioning of these services on multiple machines -- you can run a batch file to install whatever components you want.

POSIX subsystem
The POSIX subsystem is a third-party product from Interop Systems, called Interix. As standard you’re supplied with Korn and C shells, the GNU C compiler and libraries. Most standard Unix utilities -- grep, awk, sed, for example -- are included with Interix. However, there’s a strange mix of GNU tools, and some provided by Interop Systems, which appear to be versions of BSD tools ported to Interix. This hybrid GNU/BSD environment causes a few minor problems. For instance, the version of tar installed doesn’t read some tar files created in other versions properly, resulting in an error, despite all the files in the archive having been unpacked correctly. This initially caused us some problems when trying to install some pre-packaged applications, but installing the GNU tar program solves this -- another alternative you have is to use a Windows archive application that understands gzipped tar files to unpack the archive. The shells run as Windows console mode applications. They don’t have QuickEdit mode enabled by default, so if you want more Unix-like copy and paste operations, you’ll need to alter the program properties for each shell or command-line application you use. Despite the libraries for X Windows applications being provided as part of Interix, there isn’t an X Server for Windows supplied with SFU. Microsoft points out the large number of free and commercial X Servers already available, and says that if you need to run X applications locally you should obtain one of them.

Filesystem
Interix emulates a single-rooted filesystem, which supports hard and symbolic links. The root of the emulated filesystem is the SFU install directory, with Windows drives being represented as devices, so that, for instance, D: is /dev/fs/D -- if you need files from separate Windows volumes to appear at more convenient points in the Interix filesystem, you’ll have to link them manually. There are some issues with paths and file names containing spaces, in that some Unix programs aren’t able to read some paths properly, even though spaces are generally allowed in Unix filenames, and the shells provided are able to work with them. Perl is the only scripting language supplied with SFU. You can install Perl under the Unix environment, and ActiveState Perl for Windows is also provided, so you can run Perl programs in either system. However, the two don’t really interoperate, so that libraries installed in one environment aren’t necessarily available in the other. Some clever tweaking of symbolic links will make this possible, but it’s not the default configuration. Interix is claimed to be fully POSIX compliant, and we can’t challenge that claim. However, it seems that this may not be enough to make it easy to move applications from your existing Unix platform to Interix. In our tests, GNU applications don’t necessarily configure, compile and install without tweaking. We couldn’t get the standard Unix distribution of Python to install, for example, despite a successful compilation. The fact that Interop Systems has made available special packages for many GNU applications is evidence that porting applications to SFU may not be as straightforward as is claimed.

Alternatives
There are alternatives available for running Unix applications on Windows, but they rarely include the other services that Microsoft is providing here. It might be possible to assemble a similar toolkit yourself from third-party components, but that’s more work than just downloading SFU. Alternatively, you could mix-and-match the components from SFU and other toolkits to get the combination you need -- in many cases, you don’t even need to install the components on the same machine to get the same facilities. Windows Services for Unix 3.5 will be useful to developers working in a mixed environment, since you’re able to run scripts on your desktop that would otherwise have to be run on a separate host. Similarly, Unix system administrators can use some of SFU’s components to perform tasks in the same way as with their Unix machines. If you depend heavily on the GNU toolkit for your work, you may be less than impressed with SFU, since you’ll have a job on getting many packages to install correctly -- it’s not impossible, but a certain amount of tweaking will be needed. SFU is interesting as a glimpse of the way Microsoft is taking Windows -- more command-line administration being one example. It’s unlikely to be the deciding factor in mass migrations from existing Unix installations to Windows, but if you’ve already made a decision to move to a purely Windows environment, SFU will ease the pain somewhat. If you want to use Windows for some jobs that would otherwise need a Unix machine, SFU is a neat toolkit, but there are others available.

Images

Related stories

Member reviews

If you are genuinely moving Unix systems to Linux, then there are some useful features, such as the NFS client. It is a shame that isn't built into the Windows core, but there are obvious reasons why.

Lets be honest though. Most people are migrating from Windows to Linux on servers. In that scenario, and even if migrating from *nix to Windows, there are better alternatives which are also free and deserve a mention.

The first is cygwin, and the second is colinux, which is new but very usable. They both deserve a full review and should be evaluated as better alternatives to SFU. You will probably end up using cygwin and SFU rather than SFU alone, even if just to use X.

Member's rating:
  • 6.70 out of 10
6.70 out of 10
13 April, 2004 15:48
Reply

For me the most attractive aspect of WSU is that it has good support for Japanese out of the box (with the Japanese edition) without diddling around.

15 April, 2004 03:46
Reply

I can run native Unix scripts on my Windows machine. And it is free! If they can add X Windows server onto it, then I'll say "That is one of the best additions to Microsoft Windows!". I really like Windows. I really like Unix shells and scripting. Thanks to Microsoft for putting them together and providing it for free.

Member's rating:
  • 8.00 out of 10
8.00 out of 10
5 July, 2004 03:36
Reply

I've been happy with it for running scripts. Porting source is not easy. However, all of the applications I wanted were available from the Interix tool library. The NFS support was useful too.

Member's rating:
  • 8.50 out of 10
8.50 out of 10
11 September, 2004 16:30
Reply

Post your comment

In order to post a comment you need to be registered and logged in.

You can also log in with Facebook. Log in or create your ZDNet UK account below

  • Login

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Community FAQ

Get ZDNet UK's daily newsletter

Enter your email address to sign up

ZDNet UK Live

Jack Strain

Just gimme a map to the fridge. :D

2 hours ago by Jack Strain via Facebook on Indoor navigation coming to a mobile near you soon
dede0202

Hello ALL USERS OF THE PIRATE BAY I WOULD PUT AN EXPLANATION ON PIRACY Story Idea ILLIGALE AND SHARING THOSE THAT NET Dissent NOT WELL BUT TO CA...

10 hours ago by dede0202 on The Pirate Bay infringes copyright, High Court decides
Sungwoo

do You know that? it can install 4G Ram. So i buy 4g and install It work! I can run call of duty 4,6,7 [Modern war... 1,2,3] Call of duty 1 was...

11 hours ago by Sungwoo on Loose Ends - Upgrading the Aspire One 522
itsajob

2. Bad idea. Making up patch cables loses you your commission from the cable supplier. 3. If you tidy up, other people can understand where the...

17 hours ago by itsajob on Ten IT jobs to save up for those rare lulls
Roberto_Store

Now On Sale, Unlocked iPhone 4S / Galaxy Note In Factory Box. Roberto-Techie(UK) ”Now on Sales” Smartphone, Android,Tablets,Gadget &...

20 hours ago by Roberto_Store on Samsung Galaxy S III lined up for sale
Paul Smyth

Is this classic FUD? One thing I would definitely have notice is a Mozilla threat to stop supporting GNU/Linux.

22 hours ago by Paul Smyth via Facebook on Firefox rapid release improves Fedora Linux
UnderINK

I agree with the previous commenter wholeheartedly. I couldn't say it better myself. This is very 'Big Brother'. And while I agree with protecting...

1 day ago by UnderINK on European e-identity plan to be unveiled this month
Simon Bisson and Mary Branscombe

Nice to see that Turing's idea of a general purpose computer doing once-hardware-powered tasks in software is now universal ;-) Mary

1 day ago by Simon Bisson and Mary Branscombe on Software with everything
Jason Burchell

seriously now. I've only bothered to read a small bit of the comments. do me and the rest of the world a favour. stop saying it does not work or...

1 day ago by Jason Burchell via Facebook on Music industry negotiating over 24-bit downloads
Philip Charles Cohen

Read about it and weep, John Donahoe ... In addition to Visa’s V.me, there is now MasterCard’s PayPass digital wallet soon to arrive; another...

2 days ago by Philip Charles Cohen via Facebook on PayPal takes phone-based payments to the high street
apexwm

Leslie Satenstein : Where have you ever seen Mozilla even mention this? Firefox is the most popular browser in the GNU/Linux OS, so I don't see...

2 days ago by apexwm on Firefox rapid release improves Fedora Linux
songmaster

SHleG: Do you remember building a clockwork scorpion kit (I'm pretty sure I have a photo of it somewhere) — I think it was called something like...

2 days ago by songmaster on Software with everything
Chris Wortman

Good I love Yahoo! Their search engine is getting better than Google as of late. I find more of what I want on the first page, and usually within...

2 days ago by Chris Wortman via Facebook on Linux Mint 13 ramps up for KDE release
PatrickG

openhgs has made the point for Windows 8 multiple monitors without realising it! With Windows 7 you have to switch the mouse and so your focus...

2 days ago by PatrickG on Windows 8 could speed multi-monitor uptake
Leslie Satenstein

Mozilla has threatened to stop supporting Linux. I guess that UBUNTU is going with another browser. I indicated that if Mozilla stops supporting...

2 days ago by Leslie Satenstein via Facebook on Firefox rapid release improves Fedora Linux
Andy Bolstridge

Much as I abhor Microsoft's licensing practices, this is almost certainly down to purchasing IT equipment via 3rd party consultants - you get the...

2 days ago by Andy Bolstridge via Facebook on 6 million wasted licences and £1,200 PCs: welcome to government IT
Jack Schofield

@openhgs Windows users have had multiple desktops since Linus started writing Linux. They just haven't shipped as standard because not enough...

3 days ago by Jack Schofield on Windows 8 could speed multi-monitor uptake
Jack Schofield

@Phil at Cloud4 What, Microsoft gets £1,200 per PC and £1,622 per server? Gosh, I'm amazed....

3 days ago by Jack Schofield on 6 million wasted licences and £1,200 PCs: welcome to government IT
craigsc

You guys have no idea what is going on at Autonomy. Autonomy could have been a much more profitable organization. The sales operations at Autonomy...

3 days ago by craigsc on HP cuts 27,000 staff as Autonomy chief Lynch leaves
Moley

How does this impact on dual or multi booting? Seems to me to more or less prohibit this, from Windows 8 anyway. Will Grub 2 recognise Windows 8,...

3 days ago by Moley on Windows 8 start-up speed forces USB boot workaround