View Single Post

   
  #5 (permalink)  
Old 01-16-2008, 09:59 AM
Ben
 
Posts: n/a
Default Re: Possible to telnet to miniroot?

ICE wrote:
> "David E. Grove" <david_grove@correct.state.ak.us> wrote in message
> news:11n4l0u5lrfob79@corp.supernews.com...
>
>>Is it possible to telnet into a system booted from CDROM into single user
>>mode? ('boot cdrom -s') If so, how is it done? How can one make the
>>miniroot writeable? To execute 'svcadm enable inetd' requires a writeable
>>root, right?

>
>
> Well, if you think about it: boot *cdrom* -s
>
> This means your root fs is on the CD you're booting from. So it isn't
> writable...
>
>
>>I have a headless V480. I 'boot cdrom -s' using the RSC console. I
>>configure a network interface. If I try to enable inetd, I get:
>>
>># svcadm enable inetd
>>svcadm: svc:/network/inetd:default: Repository read-only.

>
>
> Again you're booting from a CD-*ROM*.


Hold on a sec ... see the "-t" switch to "svcadm enable ..." (might want
to look at the "-r" switch too).

svcadm(1M)

enable [-rst] {FMRI|pattern}...
....
If the -t option is specified, svcadm temporarily enables each service
instance. Temporary enable only lasts until reboot. This action requires
permission to modify the “restarter_actions” property group of the
service instance (see smf_security(5)).
....

>
> However, the single-user mode in general does not mean you can't configure a
> network interface or run network services. Your basic problem is you can't
> make a configuration change with a read-only root fs. If you're willing to


Right, he can't make a *permanent* change like that while online with a
read-only fs ... see above.

> invest the time and have the appropriate infrastructure, you could
> conceivably make your own bootable CD image which uses DHCP / BOOTP to
> obtain network configuration, initialise an interface and run some service
> (such as telnet).
>
> Better still, setup a jumpstart server and do: boot net -s.
>
> This will bring you to single-user (without performing any kind of
> installation). And since your root fs will then be a NFS mount (which, btw,
> implies a configured network interface), you can either pre-configure the
> required network service(s) or (again, not recommended) make NFS image
> writable and perform any configuration on the fly (using anon=0 as a share
> option).
>

Reply With Quote