[SunHELP] Re: SunHELP digest, Vol 1 #963 - 4 msgs
praveena k
sunhelp at sunhelp.org
Wed Apr 18 13:41:15 CDT 2001
HI admins
How do i make root equalent user , someone told that edit the /etc/passwd
and create use the root id for the new root user .
can u explain me clearly , i have nis running on the same machine , does it
effects the maps ??
second option is use SUDO , where do i get SUDO Software and how to use it ,
it is free downloable , if so can you tell me the site
thanks for your cooperation
//kumar
>From: sunhelp-request at sunhelp.org
>Reply-To: sunhelp at sunhelp.org
>To: sunhelp at sunhelp.org
>Subject: SunHELP digest, Vol 1 #963 - 4 msgs
>Date: Wed, 18 Apr 2001 12:01:06 -0500 (CDT)
>
>Send SunHELP mailing list submissions to
> sunhelp at sunhelp.org
>
>To subscribe or unsubscribe via the World Wide Web, visit
> http://www.sunhelp.org/mailman/listinfo/sunhelp
>or, via email, send a message with subject or body 'help' to
> sunhelp-request at sunhelp.org
>
>You can reach the person managing the list at
> sunhelp-admin at sunhelp.org
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of SunHELP digest..."
>
>
>Today's Topics:
>
> 1. Re: Changing Root's Shell (Jan Johansson)
> 2. RE: Changing Root's Shell (Adam Douglass)
> 3. Re: Changing Root's Shell (James Fogg)
> 4. Re: Changing Root's Shell (Les)
>
>--__--__--
>
>Message: 1
>Date: Wed, 18 Apr 2001 12:39:02 +0200
>From: Jan Johansson <janj-sunhelp at wenf.org>
>To: sunhelp at sunhelp.org
>Subject: Re: [SunHELP] Changing Root's Shell
>Reply-To: sunhelp at sunhelp.org
>
>[ The lines have been broken for your ejoyment.]
>
>On Wed, Apr 18, 2001 at 09:59:56AM -0000, ES Srinivas wrote:
> >By changing the root's shell what are the things which get
> >affected in general?Can someone tell what are the procedures to
> >follow/to take care while changing the shell for the root user
> >which does'nt hamper the normal performance of the OS(Solaris
> >7).
>
>Do not change roots shell, you will be sorry at 5:00 in the
>morning.
>
>Set up a user with uid 0 and the alternate shell you whish to
>have, for example "toor" and put it after root in your
>/etc/passwd.
>
>If you do not trust me on the "Do not do" issue, watch the
>mailing archives of all unix list for all that have gone down
>that road and failed.
>
>
>
>--__--__--
>
>Message: 2
>From: "Adam Douglass" <ns.douglass.adam at mrj.com>
>To: <sunhelp at sunhelp.org>
>Subject: RE: [SunHELP] Changing Root's Shell
>Date: Wed, 18 Apr 2001 07:20:25 -0400
>Reply-To: sunhelp at sunhelp.org
>
>Trust me, you do not want to do this. One of my fellow "sysads" did this
>and
>yesterday much to his dismay he found that he could no longer log into his
>machines. Setting up another account with a UID of 0 is a much better idea.
>
>Adam Douglass
>System Administrator
>Veridian Information Solutions
>
> >>Hi All
> >>By changing the root's shell what are the things which get affected in
>general?Can someone tell
> >>what are the procedures to follow/to take care while changing the shell
>for the root user which
> >>does'nt hamper the normal performance of the OS(Solaris 7).
> >>Thanks in Advance
> >>Srinivas
>
> >>_____________________________________________________
> >>Chat with your friends as soon as they come online. Get Rediff Bol at
> >>http://bol.rediff.com
>
>
>
>
> >>_______________________________________________
> >>SunHELP maillist - SunHELP at sunhelp.org
> >>http://www.sunhelp.org/mailman/listinfo/sunhelp
>
>
>--__--__--
>
>Message: 3
>From: James Fogg <jfogg at vicinity.com>
>Organization: Vicinity Corporation
>To: sunhelp at sunhelp.org
>Subject: Re: [SunHELP] Changing Root's Shell
>Date: Wed, 18 Apr 2001 08:39:18 -0400
>Reply-To: sunhelp at sunhelp.org
>
>4 out of 5 sysadmins surveyed recommend sh for root.
>
>Why? many reasons, but one that bit me was the different resource
>requirements
>of the very slim, sexy and simple sh compared to the bloated, memory
>hogging,
>cpu eating bash. If you have a sick machine or a fork bombed process you
>might
>be able to comfortably navigate your system using sh. Bash/others would
>weight
>more heavilly on a handicapped system.
>
>Instead, exec /usr/local/bin/bash (substitute path/shell as needed) and you
>can
>change shells on the fly. To leave your shell, type exit and your back at
>sh.
>
>If you feel compelled to change any users shell, edit /etc/passwd and
>change
>the shell defined at the end of the line for that user. Hint, don't leave
>any
>blank lines at the end of passwd, many systems don't like it. Use vi/vim to
>avoid accidental blank lines (emacs and others may not be configured to
>show
>eof).
>
>On Wed, 18 Apr 2001, THOU SPAKE:
> > Hi All
> > By changing the root's shell what are the things which get affected
>in
>general?Can someone tell what are the procedures to follow/to take care
>while
>changing the shell for the root user which does'nt hamper the normal
>performance of the OS(Solaris 7). > Thanks in Advance > Srinivas >
> > _____________________________________________________
> > Chat with your friends as soon as they come online. Get Rediff Bol at
> > http://bol.rediff.com
> >
> >
> >
> >
> > _______________________________________________
> > SunHELP maillist - SunHELP at sunhelp.org
> > http://www.sunhelp.org/mailman/listinfo/sunhelp
>--
>
>
>
>--__--__--
>
>Message: 4
>From: "Les" <les at cdproc.com>
>To: <sunhelp at sunhelp.org>
>Subject: Re: [SunHELP] Changing Root's Shell
>Date: Wed, 18 Apr 2001 10:39:52 -0500
>Reply-To: sunhelp at sunhelp.org
>
>IMHO here are the reasons to leave the root shell as the
>installer leaves it. I'm pretty sure that on some version of
>AIX for example, the default shell is ksh.
>
>Assuming that your normal path includes /usr/bin and /sbin
>and that both directories and all the library files are available,
>there should be no issue.
>However, if you look at /etc/passwd you will note that on Sol7 the
>path
>for root's shell is specified as /sbin/sh.
>If you change it to ksh for example and, for ANY reason, some of the
>dynamically
>linked files for ksh are not available, ksh blows up instantly when
>invoked.
>If /usr happens to be a separate filesystem and is not mounted,
>ksh blows up. You can't even do fsck to fix it.
>I am sure that if you viewed this as critical, and you have source, you
>could create
>a statically linked version of ksh or csh or bash or whatever, but it's
>hardly worth the effort.
>Even if you copy the shell to /sbin it is still dynamically linked.
>As you see below, /sbin/sh and /usr/bin/sh are not links to the same file
>either.
>By all means I would create another ID 0 user.
>Please note the linking and inodes from a listing of the files on a
>clean install of Sol7:
>
>for i in /sbin/sh /usr/bin/sh /sbin/ksh /usr/bin/ksh
>do
>ls -l $i
>ls -li $i
>file $i
>echo
>done
>
>-r-xr-xr-x 2 bin root 257444 Sep 1 1998 /sbin/sh
> 341272 -r-xr-xr-x 2 bin root 257444 Sep 1 1998 /sbin/sh
>/sbin/sh: ELF 32-bit MSB executable SPARC Version 1, statically
>linked, stripped
>
>-r-xr-xr-x 3 bin root 91668 Oct 6 1998 /usr/bin/sh
> 126691 -r-xr-xr-x 3 bin root 91668 Oct 6 1998
>/usr/bin/sh
>/usr/bin/sh: ELF 32-bit MSB executable SPARC Version 1, dynamically
>linked, stripped
>
>/sbin/ksh: No such file or directory
>/sbin/ksh: No such file or directory
>/sbin/ksh: cannot open: No such file or directory
>
>-r-xr-xr-x 2 bin bin 192764 Oct 6 1998 /usr/bin/ksh
> 126698 -r-xr-xr-x 2 bin bin 192764 Oct 6 1998
>/usr/bin/ksh
>/usr/bin/ksh: ELF 32-bit MSB executable SPARC Version 1, dynamically
>linked, stripped
>
>I'll shut up now
>Les
>
>_______________________________________________________
>From: "Adam Douglass" <ns.douglass.adam at mrj.com>
>Subject: RE: [SunHELP] Changing Root's Shell
>
>
>Trust me, you do not want to do this. One of my fellow "sysads" did this
>and
>yesterday much to his dismay he found that he could no longer log into his
>machines. Setting up another account with a UID of 0 is a much better idea.
>
>Adam Douglass
>System Administrator
>Veridian Information Solutions
>
> >>Hi All
> >>By changing the root's shell what are the things which get affected in
>general?Can someone tell
> >>what are the procedures to follow/to take care while changing the shell
>for the root user which
> >>does'nt hamper the normal performance of the OS(Solaris 7).
> >>Thanks in Advance
> >>Srinivas
>
>
>
>
>--__--__--
>
>_______________________________________________
>SunHELP maillist - SunHELP at sunhelp.org
>http://www.sunhelp.org/mailman/listinfo/sunhelp
>
>
>End of SunHELP Digest
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
More information about the SunHELP
mailing list