[SPARCbook] Shell?

Scott D. Yelich scott at scottyelich.com
Mon Jan 24 13:49:02 CST 2000


-----BEGIN PGP SIGNED MESSAGE-----

On Mon, 24 Jan 2000, Sunder wrote:
> root:x:0:1:Super-User:/:/sbin/sh
>                         ^^^^^^^^
> However, you're right.  Without /usr, you don't have fsck, mount, or format,
> and you can't just copy them over to /sbin because they're dynamically linked,
> which leaves you a single option: boot from CDROM to fix stuff:

remote [6]> uname -a
SunOS remote.spy.org 5.6 Generic_105181-16 sun4m sparc Tadpole_S3GS
remote [7]> ls /sbin
autopush     ifconfig     mount        rc5          su.opie.old  umount
bpgetfile    init         mountall     rc6          su.static    umountall
dhcpagent    ipf          rc0          rcS          sulogin      uname
dhcpinfo     ipfstat      rc1          sh           swapadd
fdisk        ipnat        rc2          soconfig     sync
hostconfig   jsh          rc3          su           uadmin

> So you know what, fuck it, and just set it to /usr/local/bin/bash and don't
> worry, because like Lion said, you won't be doing very much anyway. :)

If you're local to the machine and have a cdrom, who cares...
boot cdrom -s is your friend.

If you have a shell on it and net access, then you can do a root 'sploit.

Personally, the only reason I see to change root's shell is for interactive
logins.. and I've been typing "exec tcsh" (or thereabouts) for so long,
I don't see what the issue is with changing the base default shell.

Scott


-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBOIysrh4PLs9vCOqdAQHTYwP+IYvyKeGGcbiCKyNKnHcuUMJyFyIenUgT
hgrcxu4S6extTHiQMwdDWToUel9D3fBpf2W/AeOmukzKamh/wnu3gLMqFYrVNhc/
rFTiDL+poNbrXchmv9IKtbaNVNrTzgO64tu/eJnbYCjjl4q1vr3LYeXVIPdMzvvj
hry648PMKYI=
=0JG9
-----END PGP SIGNATURE-----







More information about the SPARCBook mailing list