Questions and Answers
Amy Rich
Q. My Ultra 10 box running Solaris 7 is a JumpStart server with a Solaris
8 01/00 release image on it. I want the latest features of Solaris, though, so
I downloaded the maintenance upgrade (MU) from SunSolve. Can I patch
my JumpStart image as I originally intended? If so, how? The install_mu
shell script was obviously intended to upgrade a running OS, and I see nothing
in the accompanying documentation of any relevance to upgrading a JumpStart image.
A. No, you cannot easily patch the JumpStart image on your disk. The maintenance updates are provided as a series of patches to the base operating system. What you can do is apply the maintenance update patches on each of your newly jumpstarted machines using one of your post install scripts, just like you would with the recommended patch set.
The best course of action, though, is to just install a new JumpStart image from the latest ISO images instead of using the maintenance updates. That way youll have the new base OS instead of a patched older base OS.
Q. Im creating a bash script thats supposed to do things to peoples home directories. Root runs this script and gives the username as an argument on the command line. In the script, Im trying to use ~username to access the users home directory like this:
#!/usr/local/bin/bash
ls ~$1
Instead of seeing the contents of the users directory, I get the output:
ls: ~username: No such file or directory
Where username is the argument that was passed in to the script. If I hardcode the script, everything works fine:
#!/usr/local/bin/bash
ls ~username
Why isnt it working when I pass in the username, and why do I get an error saying that it cant find ~username when ~username is clearly there and works when its hardcoded? How can I make this work so I can operate on users home directories?
A.<>
|