Quote:> Did you actually use SMIT to change that login shell? AIX tends
>to get really bent out of shape when people manually edit /etc/passwd...
I know that this is what IBM wants you to believe, but it is definitely
not true. As a matter of fact, this goes for all administrative data
files on the system. SMIT is not a magic program. The only difference
is that most of the time SMIT really knows what it is doing (which is
not always the case with people who operate RS/6000s these days). I
never use SMIT to add or delete users, change their shells or home
directories, for example. I have *NEVER* experienced a problem related
to this, and there is no reason why I should; knowledgeable IBM-people
(although hard to find) will confirm this. Believe it or not, AIX is
(even if IBM messed around with it *A LOT*) still UNIX. Almost all
standard procedures you have learned on other UNIX systems will work,
unless of course those procedures themselves were vendor-specific. In
a similar way, AIX has a lot of vendor-specific peculiarities, where the
knowledge of managing these is also useless on other machines.
Quote:> Since you don't have ANY other user accounts (from which you could
>have su'd to root) your best bet is to haul out the ol' boot/diag floppies
>and just do a RESTORE from a tape or other machine (or have your IBM
>service-person do it).
My suggestion on handling this situation would be this:
1) Turn the key to the Diagnostic position.
2) Use the appropriate media you have installed the
system from, or, if you have already created boot
floppies from this release of the system, use those
(they're faster than tape). DO NOT USE A DIFFERENT
RELEASE OF THE BOOTMEDIA THAN IS INSTALLED ON THE
SYSTEM UNLESS YOU KNOW ****EXACTLY**** WHAT YOU
ARE DOING!!! Insert this bootmedia in the appropriate
drive.
3) This one hurts, but do it anyway: Hit the yellow
reset button (you may need to hit it *twice*). Don't
worry, the filesystem will survive -- your machine is
idle anyway, so there isn't too much activity on the
filesystem anyway. Boot until you get the Installation
menu.
4) Select "Perform System Maintenance" from the menu. This
will give you a standalone shell. Note that the system
is running from a RAM disk at this point. It has no idea
about your filesystems yet.
5) Depending on your OS-release, you may need to type either
/etc/continue or getrootvg (3.2. will tell you to do this,
so if you see just a prompt, /etc/continue is a good bet).
These commands will mount all your filesystems (or at least
those that are vital, to be exact), which you can access
and modify then. I.e. remove a root password that you have
forgotten, or change the shell back to what it was ... you
get my drift. Note that you are still working with a very
limited system, though -- be prepared that you may have to
use "ed" to modify any files :) :) :)
I could split up point 5) if I wanted to, but I don't think it's
necessary at this point. Basically what happens is a importvg, a
varyonvg, fsck if necessary and then a mount. I feel a lot more
comfortable doing it manually than with the provided scripts. But
that's just me, I suppose :) :) :)
Chris,
who will give
telephone support
to anyone from the
Los Angeles area even
in the middle of the
night, provided they
buy him lunch at Gladstone's
the next time he gets there :)
--
SOFTPRO doesn't speak for me, and I do not speak for SOFTPRO. So what?