[SunHELP] Root and csh.

Syam Mohan sunhelp at sunhelp.org
Thu Dec 14 05:41:00 CST 2000


Dear Gary,

If root is allowed FTP acces, you can FTP the /etc/passwd file to any
UNIX machine. Then edit the file and change the shell back to sh. Then
FTP it again to the Workstation. Hope this should solve your problem.


Thanks and regards

Syam Mohan

HCL Infosystems Ltd.
India

> 
> Message: 4
> Date: Tue, 12 Dec 2000 16:35:24 -0800
> To: sunhelp at sunhelp.org
> From: Gary Ren <gangren at scripps.edu>
> Subject: [SunHELP] (no subject)
> Reply-To: sunhelp at sunhelp.org
> 
> Hello, Friends,
> 
> I wander if I can received a your great help on the Solaris 8 workstation?
> 
> I made a big trouble today.
> 
> I change sh to csh in /etc/passwd, but I forgot to change the path from 
> /sbin/sh to /bin/csh. After I logout, I never got a chance to login as root 
> by anyway. It shows that can't find shell and reject me. I know if I boot 
> from CD and mount / to any other directory could chance this file. But the 
> problem is how I can shutdown the machine by command. I don't want to plug 
> power off.
> 
> Do you know any solution to shutdown the workstation by command? Any 
> suggestion is very appreciated.
> 
> Thanks very much for your suggestion
> 
> with my best regards,
> 
> Gary
> 
> 
> 
> 
> --__--__--
> 
> Message: 5
> From: "Scanlan, Brian (5188)" <Brian.Scanlan at digifone.com>
> To: "'sunhelp at sunhelp.org'" <sunhelp at sunhelp.org>
> Subject: RE: [SunHELP] (no subject)
> Date: Wed, 13 Dec 2000 01:08:08 -0000
> Reply-To: sunhelp at sunhelp.org
> 
> Hi there,
> 
> I take it that you changed root's account shell to csh.
> 
> This is generally a bad idea. Not only did you mess up your
> system, you run the risk of not being able to get into the system
> should you be in the situation where you don't have boot media
> and your shared librarys are inaccessable - /sbin/sh is a static binary,
> meaning it depends on no other librarys to work. This is not the case
> with /usr/bin/csh. You should leave root's shell alone, either create a
> root2
> account with csh as it's shell, or simply type "exec csh" when you login as
> root. You are running the risk of getting into further hassle later.
> 
> Are there other users on the system that you can login as? You could
> su to root then, and run a valid shell from there. Else, if you can ssh/rsh
> in 
> as root (not enabled by default?), you could execute a valid shell by
> specifying
> it.
> 
> Else, you have to take the system down and boot off alternative media.
> 
> Why don't you want to power it off, it's only a workstation.
> 
> Hope this helps!
> Brian.
> 
> 
> 
> > -----Original Message-----
> > From:	Gary Ren [SMTP:gangren at scripps.edu]
> > Sent:	13 December 2000 00:35
> > To:	sunhelp at sunhelp.org
> > Subject:	[SunHELP] (no subject)
> > 
> > Hello, Friends,
> > 
> > I wander if I can received a your great help on the Solaris 8 workstation?
> > 
> > I made a big trouble today.
> > 
> > I change sh to csh in /etc/passwd, but I forgot to change the path from 
> > /sbin/sh to /bin/csh. After I logout, I never got a chance to login as
> > root 
> > by anyway. It shows that can't find shell and reject me. I know if I boot 
> > from CD and mount / to any other directory could chance this file. But the
> > 
> > problem is how I can shutdown the machine by command. I don't want to plug
> > 
> > power off.
> > 
> > Do you know any solution to shutdown the workstation by command? Any 
> > suggestion is very appreciated.
> > 
> > Thanks very much for your suggestion
> > 
> > with my best regards,
> > 
> > Gary
> > 
> > 
> > 
> > _______________________________________________
> > SunHELP maillist  -  SunHELP at sunhelp.org
> > http://www.sunhelp.org/mailman/listinfo/sunhelp
> 
> --__--__--
> 
> Message: 6
> Date: Tue, 12 Dec 2000 23:46:38 -0500 (EST)
> From: Alan Rubin <rubin at ezy.net>
> To: sunhelp at sunhelp.org
> Subject: [SunHELP] missing device
> Reply-To: sunhelp at sunhelp.org
> 
> We have restored filesystems from tape to a new server of same
> architecture (M) as where the data comes from.  The disk appears clean,
> the ufsrestore seems to work fine, and no problems with installing the
> boot block occur.  When I try to boot this new system it says that
> /dev/dsk/c0t3d0s4 (/usr) does not exist and falls down miserably.  I have
> checked that dev files and entries in /devices exist for this partition on
> the root disk, but that doesn't seem to matter.  This is Solaris 2.6.  Any
> suggestions?
> 
> alan
> 
> _________________
> *Alan Rubin*
> Sun/Unix/Networking/ISP/Web Writing
> Email:rubin at ezy.net 
> 
> 
> 
> --__--__--
> 
> Message: 7
> Date: Tue, 12 Dec 2000 09:56:24 +0300
> From: "Kalyandurga, Mohammed I" <KALYANMI at mail.aramco.com.sa>
> To: sunhelp at sunhelp.org
> Subject: [SunHELP] NAT
> Reply-To: sunhelp at sunhelp.org
> 
> This message is in MIME format. Since your mail reader does not understand
> this format, some or all of this message may not be legible.
> 
> --Boundary_(ID_0ZavTLyB1EGJ/rw7mjFogA)
> Content-type: text/plain; charset="iso-8859-1"
> 
> Is there any package otherthan IPFILTER to do NAT in Solaris 7.  I use Ultra
> 10. Any help is appriciated..
> 
> Mohammed Ilyas K.
> 
> 
> 
> --Boundary_(ID_0ZavTLyB1EGJ/rw7mjFogA)
> Content-type: text/html; charset="iso-8859-1"
> Content-transfer-encoding: quoted-printable
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
> <HTML>
> <HEAD>
> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
> charset=3Diso-8859-1">
> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
> 5.5.2650.12">
> <TITLE>NAT</TITLE>
> </HEAD>
> <BODY>
> 
> <P><FONT SIZE=3D2 FACE=3D"Arial">Is there any package otherthan =
> IPFILTER to do NAT in Solaris 7.  I use Ultra 10. Any help is =
> appriciated..</FONT>
> </P>
> 
> <P><FONT SIZE=3D2 FACE=3D"Arial">Mohammed Ilyas K.</FONT>
> </P>
> <BR>
> 
> </BODY>
> </HTML>
> 
> --Boundary_(ID_0ZavTLyB1EGJ/rw7mjFogA)--
> 
> --__--__--
> 
> Message: 8
> From: "Ian Hall-Beyer" <ihblists at nerdherd.net>
> To: "sunhelp at sunhelp.org" <sunhelp at sunhelp.org>
> Date: Thu, 13 Dec 2001 00:22:33 -0700
> Subject: Re: [SunHELP] NAT
> Reply-To: sunhelp at sunhelp.org
> 
> 
> <HTML formatting removed>
> 
> > Is there any package otherthan IPFILTER to do NAT in Solaris 7. 
> 
> I believe Checkpoint's FireWall-1 product can do NAT. Sun also sells a
> Sun-branded version of FW-1.
> 
> -Ian
> --
> 
> "The French language, which the French used to learn very well, did not exist for the sake of conveying information, for communicating men's common needs; it was indistinguishable from historical consciousness. Frenchness is defined by participation in this language, its literature and the entire range of effects it produces."
> 
>                                 -- Allan Bloom
>                                    The Closing of The American Mind
> 
> 
> 
> --__--__--
> 
> Message: 9
> From: "Will Mc Donald" <wmcdonald at orctel.co.uk>
> To: <sunhelp at sunhelp.org>
> Subject: Re: [SunHELP] missing device
> Date: Wed, 13 Dec 2000 10:17:24 -0000
> Reply-To: sunhelp at sunhelp.org
> 
> This might be obvious but what's in /etc/vfstab ? If the disks/partitions
> have shifted on the new box the vfstab from the old machine might need to be
> changed to reflect this.
> 
> Will.
> 
> ----- Original Message -----
> From: Alan Rubin <rubin at ezy.net>
> To: <sunhelp at sunhelp.org>
> Sent: Wednesday, December 13, 2000 4:46 AM
> Subject: [SunHELP] missing device
> 
> 
> > We have restored filesystems from tape to a new server of same
> > architecture (M) as where the data comes from.  The disk appears clean,
> > the ufsrestore seems to work fine, and no problems with installing the
> > boot block occur.  When I try to boot this new system it says that
> > /dev/dsk/c0t3d0s4 (/usr) does not exist and falls down miserably.  I have
> > checked that dev files and entries in /devices exist for this partition on
> > the root disk, but that doesn't seem to matter.  This is Solaris 2.6.  Any
> > suggestions?
> >
> > alan
> >
> 
> 
> --__--__--
> 
> Message: 10
> Date: Wed, 13 Dec 2000 05:58:14 -0500 (EST)
> From: Alan Rubin <rubin at ezy.net>
> To: sunhelp at sunhelp.org
> Subject: Re: [SunHELP] missing device
> Reply-To: sunhelp at sunhelp.org
> 
> checked that.  it is looking for the correct partition.  it says the
> device is not found, can't mount, etc.  then, it cant find /sbin/swap and
> all of the other commands and fails to boot.  (btw, what does boot -b give
> me?)
> 
> alan
> 
> 
> On Wed, 13 Dec 2000, Will Mc Donald wrote:
> 
> > This might be obvious but what's in /etc/vfstab ? If the disks/partitions
> > have shifted on the new box the vfstab from the old machine might need to be
> > changed to reflect this.
> > 
> > Will.
> > 
> > ----- Original Message -----
> > From: Alan Rubin <rubin at ezy.net>
> > To: <sunhelp at sunhelp.org>
> > Sent: Wednesday, December 13, 2000 4:46 AM
> > Subject: [SunHELP] missing device
> > 
> > 
> > > We have restored filesystems from tape to a new server of same
> > > architecture (M) as where the data comes from.  The disk appears clean,
> > > the ufsrestore seems to work fine, and no problems with installing the
> > > boot block occur.  When I try to boot this new system it says that
> > > /dev/dsk/c0t3d0s4 (/usr) does not exist and falls down miserably.  I have
> > > checked that dev files and entries in /devices exist for this partition on
> > > the root disk, but that doesn't seem to matter.  This is Solaris 2.6.  Any
> > > suggestions?
> > >
> > > alan
> > >
> > 
> > _______________________________________________
> > SunHELP maillist  -  SunHELP at sunhelp.org
> > http://www.sunhelp.org/mailman/listinfo/sunhelp
> > 
> > 
> 
> _________________
> *Alan Rubin*
> Sun/Unix/Networking/ISP/Web Writing
> Email:rubin at ezy.net 
> 
> 
> 
> --__--__--
> 
> Message: 11
> From: "Will Mc Donald" <wmcdonald at orctel.co.uk>
> To: <sunhelp at sunhelp.org>
> Subject: Re: [SunHELP] missing device
> Date: Wed, 13 Dec 2000 11:16:49 -0000
> Reply-To: sunhelp at sunhelp.org
> 
> I'm a bit stumped then. Have you tried booting off CD to single user mode
> then manually mounting that partition?
> 
> ----- Original Message -----
> From: Alan Rubin <rubin at ezy.net>
> 
> > checked that.  it is looking for the correct partition.  it says the
> > device is not found, can't mount, etc.  then, it cant find /sbin/swap and
> > all of the other commands and fails to boot.  (btw, what does boot -b give
> > me?)
> >
> > alan
> 
> 
> 
> --__--__--
> 
> Message: 12
> Date: Wed, 13 Dec 2000 06:25:01 -0500 (EST)
> From: Alan Rubin <rubin at ezy.net>
> To: sunhelp at sunhelp.org
> Subject: Re: [SunHELP] missing device
> Reply-To: sunhelp at sunhelp.org
> 
> yes, i restored the data from tape via single user from cdrom.  checked
> all of the partitions and everything seems fine.
> 
> alan
> 
> On Wed, 13 Dec 2000, Will Mc Donald wrote:
> 
> > I'm a bit stumped then. Have you tried booting off CD to single user mode
> > then manually mounting that partition?
> > 
> > ----- Original Message -----
> > From: Alan Rubin <rubin at ezy.net>
> > 
> > > checked that.  it is looking for the correct partition.  it says the
> > > device is not found, can't mount, etc.  then, it cant find /sbin/swap and
> > > all of the other commands and fails to boot.  (btw, what does boot -b give
> > > me?)
> > >
> > > alan
> > 
> > 
> > _______________________________________________
> > SunHELP maillist  -  SunHELP at sunhelp.org
> > http://www.sunhelp.org/mailman/listinfo/sunhelp
> > 
> > 
> 
> _________________
> *Alan Rubin*
> Sun/Unix/Networking/ISP/Web Writing
> Email:rubin at ezy.net 
> 
> 
> 
> --__--__--
> 
> Message: 13
> From: Henry Buford III <henry.buford at veritas.com>
> To: sunhelp at sunhelp.org
> Subject: RE: [SunHELP] how do i terminate xterm windows when exit from app
> 	lication
> Date: Wed, 13 Dec 2000 08:44:35 -0500
> Reply-To: sunhelp at sunhelp.org
> 
> Giam,
> 	What does the one have to do with the other?  Are you saying that
> you want for your process to kill its parent upon exiting?  Wouldn't this
> cause more problems than it is likely so solve or is there something about
> your environment that I simply don't understand?
> 
> 
> Henry Buford, III 
> MCP, MCP+I, MCSE, Sun Certified Solaris Admin I
> VERITAS Software
> Senior Technical Support Analyst 
> VERITAS Technical Services
> Tech Support: 1-800-634-4747 
> http://support.veritas.com 
> "Ask me about SupportNOW!" -> http://supportnow.support.veritas.com"
> 
> -----Original Message-----
> From: Giam Pham [mailto:gpham at onebox.com]
> Sent: Tuesday, December 12, 2000 7:07 PM
> To: sunhelp at sunhelp.org
> Subject: [SunHELP] how do i terminate xterm windows when exit from
> application
> 
> Hi,
> 
> Curently my application is launched thru an xterm session, I would like
> the xterm session automatically kill when I exit from my application.
> Any help would be appreciated.
> 
> thx
> --
> Giam Pham
> gpham at onebox.com - email
> (202) 777-2648 x1538 - voicemail/fax
> 
> 
> 
> __________________________________________________
> FREE voicemail, email, and fax...all in one place.
> Sign Up Now! http://www.onebox.com
> 
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
> 
> --__--__--
> 
> Message: 14
> Date: Wed, 13 Dec 2000 08:00:54 -0600
> From: Jeff Howie <Jeff.Howie at federated.ca>
> To: sunhelp at sunhelp.org
> Subject: Re: [SunHELP] how do i terminate xterm windows when exit from application
> Reply-To: sunhelp at sunhelp.org
> 
> On Tue, Dec 12, 2000 at 04:06:33PM -0800, Giam Pham wrote:
> > Curently my application is launched thru an xterm session, I would like
> > the xterm session automatically kill when I exit from my application.
> > Any help would be appreciated.
> 
> If the app is launched like this:
> 
> $ xterm -e my-app &
> 
> Or from within the same xterm:
> 
> $ exec my-app
> 
> Then the xterm closes upon termination of the application.
> 
> --
> thks.jeff
> 
> --__--__--
> 
> Message: 15
> Date: Wed, 13 Dec 2000 09:11:32 -0600
> From: Bill Bradford <mrbill at mrbill.net>
> To: rescue at sunhelp.org, sunhelp at sunhelp.org
> Subject: [SunHELP] MRTG and Sun's snmpd
> Reply-To: sunhelp at sunhelp.org
> 
> Anybody using MRTG and Sun's SNMPD (with Solaris 8) to measure
> ethernet incoming/outgoing traffic?  I've already got MRTG 
> graphing sendmail activity, but now ethernet would be nice too..
> 
> Bill
> 
> -- 
> Bill Bradford       |    "Do you expect me to talk?"
> mrbill at mrbill.net   |    "No, Mr. Bond, I expect you to die!"
> Austin, TX          |        -- "Goldfinger", 1964
> 
> --__--__--
> 
> Message: 16
> From: "Rob Staab" <rstaab at etrana.com>
> To: <sunhelp at sunhelp.org>
> Subject: RE: [SunHELP] (no subject)
> Date: Wed, 13 Dec 2000 10:40:47 -0500
> Reply-To: sunhelp at sunhelp.org
> 
> How about logging in as another user and running su root -c /sbin/sh? That
> will grant you a root shell and you can fix the problem.
> 
> - Rob
> 
> > -----Original Message-----
> > From: sunhelp-admin at sunhelp.org [mailto:sunhelp-admin at sunhelp.org]On
> > Behalf Of Gary Ren
> > Sent: Tuesday, December 12, 2000 7:35 PM
> > To: sunhelp at sunhelp.org
> > Subject: [SunHELP] (no subject)
> >
> >
> > Hello, Friends,
> >
> > I wander if I can received a your great help on the Solaris 8 workstation?
> >
> > I made a big trouble today.
> >
> > I change sh to csh in /etc/passwd, but I forgot to change the path from
> > /sbin/sh to /bin/csh. After I logout, I never got a chance to
> > login as root
> > by anyway. It shows that can't find shell and reject me. I know if I boot
> > from CD and mount / to any other directory could chance this
> > file. But the
> > problem is how I can shutdown the machine by command. I don't
> > want to plug
> > power off.
> >
> > Do you know any solution to shutdown the workstation by command? Any
> > suggestion is very appreciated.
> >
> > Thanks very much for your suggestion
> >
> > with my best regards,
> >
> > Gary
> >
> >
> >
> > _______________________________________________
> > SunHELP maillist  -  SunHELP at sunhelp.org
> > http://www.sunhelp.org/mailman/listinfo/sunhelp
> >
> 
> 
> --__--__--
> 
> Message: 17
> From: "Mr. Laghari" <leghari at hyd.paknet.com.pk>
> To: <sunhelp at sunhelp.org>
> Date: Wed, 13 Dec 2000 08:49:45 +0500
> Subject: [SunHELP] How to install NIC (RTL8029AS ) in Solaris 7  (intel)
> Reply-To: sunhelp at sunhelp.org
> 
> This is a multi-part message in MIME format.
> 
> ------=_NextPart_000_0045_01C064E1.A4549640
> Content-Type: text/plain;
> 	charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
> 
> i have Solaris 7 (intel) , i want to install NIC (RTL8029 AS) i =
> configure it the folowing way
> but it is not resonding.
> 
> # vi /kernel/drv/nei.conf
>    name=3D"nei" parent=3D'isa' reg=3D0x1, 0xe400, 0x1e interrupts=3D10;
> (my NIC I/O range in E400- E41 and IRQ=3D10)
> 
> # vi /etc/hosts
> 192.240.250.1 myserver
> 
> # vi /etc/hostname.nei0
> myserver
> 
> # vi /etc/netmasks
> 192.240.0.0 255.255.255.0
> 
> # touch /reconfigure
> 
> # init 6
> 
> After this configuration the system  duraing boot process it show these =
> type  flowing message=20
> 
> *RPC bindkey myserver faild to genrate host
> *Snmpdx : unable toget my IP address gethostlog mail
> 
> when i type flowing command=20
> 
> # ifconfig -a  ( the out put is flowing)
> nei0: flags=3D842 <BROADCAST, RUNNING, MULTICAST> mtu 1500
> inet 0.0.0.0 netmask 0
> ether 0:0:1c:a:87:47
> 
> #ifconfig  192.240.250.1 255.255.255.0
> nei0: flags=3D850 <POINTOPOINT, RUNNING, MULTICAST> mtu 1500
> inet 192.240.250.1----> 255.255.255.0  netmask ffffff00
> ether 0:0:1c:a:87:47
> =20
> so please tell how to configure it
> 
> Mustafa Laghari=20
> 
> ------=_NextPart_000_0045_01C064E1.A4549640
> Content-Type: text/html;
> 	charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META content=3D"text/html; charset=3Diso-8859-1" =
> http-equiv=3DContent-Type>
> <META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=3D#ffffff>
> <DIV><FONT face=3DArial size=3D2>i have Solaris 7 (intel) , i want to =
> install NIC=20
> (RTL8029 AS) i configure it the folowing way<BR>but it is not=20
> resonding.</FONT></DIV>
> <DIV> </DIV>
> <DIV><FONT face=3DArial size=3D2># vi =
> /kernel/drv/nei.conf<BR>  =20
> name=3D"nei" parent=3D'isa' reg=3D0x1, 0xe400, 0x1e =
> interrupts=3D10;<BR>(my NIC I/O=20
> range in E400- E41 and IRQ=3D10)</FONT></DIV>
> <DIV> </DIV>
> <DIV><FONT face=3DArial size=3D2># vi /etc/hosts<BR>192.240.250.1=20
> myserver</FONT></DIV>
> <DIV> </DIV>
> <DIV><FONT face=3DArial size=3D2># vi =
> /etc/hostname.nei0<BR>myserver</FONT></DIV>
> <DIV> </DIV>
> <DIV><FONT face=3DArial size=3D2># vi /etc/netmasks<BR>192.240.0.0=20
> 255.255.255.0</FONT></DIV>
> <DIV> </DIV>
> <DIV><FONT face=3DArial size=3D2># touch /reconfigure</FONT></DIV>
> <DIV> </DIV>
> <DIV><FONT face=3DArial size=3D2># init 6</FONT></DIV>
> <DIV> </DIV>
> <DIV><FONT face=3DArial size=3D2>After this configuration the =
> system  duraing=20
> boot process it show these type  flowing message </FONT></DIV>
> <DIV> </DIV>
> <DIV><FONT face=3DArial size=3D2>*RPC bindkey myserver faild to genrate=20
> host<BR>*Snmpdx : unable toget my IP address gethostlog =
> mail</FONT></DIV>
> <DIV> </DIV>
> <DIV><FONT face=3DArial size=3D2>when i type flowing command =
> </FONT></DIV>
> <DIV> </DIV>
> <DIV><FONT face=3DArial size=3D2># ifconfig -a  ( the out put is=20
> flowing)<BR>nei0: flags=3D842 <BROADCAST, RUNNING, MULTICAST> mtu=20
> 1500<BR>inet 0.0.0.0 netmask 0<BR>ether 0:0:1c:a:87:47</FONT></DIV>
> <DIV> </DIV>
> <DIV><FONT face=3DArial size=3D2>#ifconfig  192.240.250.1=20
> 255.255.255.0<BR>nei0: flags=3D850 <POINTOPOINT, RUNNING, =
> MULTICAST> mtu=20
> 1500<BR>inet 192.240.250.1----> 255.255.255.0  netmask =
> ffffff00<BR>ether=20
> 0:0:1c:a:87:47<BR> <BR>so please tell how to configure =
> it</FONT></DIV>
> <DIV> </DIV>
> <DIV><FONT face=3DArial size=3D2>Mustafa Laghari =
> </FONT></DIV></BODY></HTML>
> 
> ------=_NextPart_000_0045_01C064E1.A4549640--
> 
> 
> 
> --__--__--
> 
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
> 
> 
> End of SunHELP Digest
> 




More information about the SunHELP mailing list