Print this page
NEX-15378 login scripts shouldn't run "quota"
Reviewed by: Alexander Eremin <alexander.eremin@nexenta.com>
Reviewed by: Roman Strashkin <roman.strashkin@nexenta.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
NEX-15378 login scripts shouldn't run "quota"
Reviewed by: Alexander Eremin <alexander.eremin@nexenta.com>
Reviewed by: Roman Strashkin <roman.strashkin@nexenta.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
NEX-3202 remove machid commands
Reviewed by: Peter Tribble <peter.tribble@gmail.com>
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/nsadmin/login.csh
          +++ new/usr/src/cmd/nsadmin/login.csh
↓ open down ↓ 10 lines elided ↑ open up ↑
  11   11  # and limitations under the License.
  12   12  #
  13   13  # When distributing Covered Code, include this CDDL HEADER in each
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
       21 +
       22 +#
  21   23  # Copyright 1998 Sun Microsystems, Inc.  All rights reserved.
  22      -# Use is subject to license terms.
  23      -# Copyright 2015 Nexenta Systems, Inc. All rights reserved.
       24 +# Copyright 2017 Nexenta Systems, Inc.
  24   25  #
  25   26  
  26   27  # The initial machine wide defaults for csh.
  27   28  
  28   29  if ( $?TERM == 0 ) then
  29   30          if ( `uname -p` == "i386" ) then
  30   31                  setenv TERM sun-color
  31   32          else
  32   33                  setenv TERM sun
  33   34          endif
↓ open down ↓ 6 lines elided ↑ open up ↑
  40   41                  endif
  41   42          endif
  42   43  endif
  43   44  
  44   45  #
  45   46  # use less(1) as the default pager for the man(1) command.
  46   47  #
  47   48  setenv PAGER "/usr/bin/less -ins"
  48   49  
  49   50  if (! -e .hushlogin ) then
  50      -        /usr/sbin/quota
  51   51          /bin/cat -s /etc/motd
  52   52          /bin/mail -E
  53   53          switch ( $status )
  54   54          case 0: 
  55   55                  echo "You have new mail."
  56   56                  breaksw;
  57   57          case 2: 
  58   58                  echo "You have mail."
  59   59                  breaksw;
  60   60          endsw
  61   61  endif
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX