Ask a Question related to Sun Solaris, Design and Development.

  1. #1

    Default profile contents

    I want to remove /usr/ucb from my PATH . I can not find /usr/ucb in my
    profile . from where it comes ?


    # echo $PATH
    /usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/bin:/usr/ucb
    #
    #ident "@(#)profile 1.18 98/10/03 SMI" /* SVr4.0 1.3 */

    # The profile that all logins get before using their own .profile.

    trap "" 2 3
    export LOGNAME PATH

    if [ "$TERM" = "" ]
    then
    if /bin/i386
    then
    TERM=sun-color
    else
    TERM=sun
    fi
    export TERM
    fi

    # Login and -su shells get /etc/profile services.
    # -rsh is given its environment in its .profile.

    case "$0" in
    -sh | -ksh | -jsh)

    if [ ! -f .hushlogin ]
    then
    /usr/sbin/quota
    # Allow the user to break the Message-Of-The-Day only.
    trap "trap '' 2" 2
    /bin/cat -s /etc/motd
    trap "" 2

    /bin/mail -E
    case $? in
    0)
    echo "You have new mail."
    ;;
    2)
    echo "You have mail."
    ;;
    esac
    fi
    esac

    umask 022
    trap 2 3
    ehab Guest

  2. Similar Questions and Discussions

    1. How to profile FMS
      There are so many settings in the config files, many of which do not tell you why you would change them (asside from a simple "changing this changes...
    2. Listing contents of a directory folder to contents ofdirectory
      cfdirectory listing... Here is my problem... I am listing directorys and when each directory is listed I want to list the contents of that...
    3. ICC Profile
      I have noticed several previous on this topic and have done all that has been said so far but with no success. When I load Photoshop (v7.0.1) I...
    4. No Profile
      Not excatly sure what you're intention is. Profile is required. It will be created when you setup user accounts. "John" <john.tse@sfgov.org>...
    5. profile
      On Fri, 20 Jun 2003 12:48:14 +1200, c_n_nz@hotmail.com wrote: btw: the latest version of pkg-get, also looks in /usr/sfw/bin for wget. Which if...
  3. #2

    Default Re: profile contents

    Before going to your question, go and learn about proper behaviour in the
    usenet; about crossposting without a followup, for example.

    ehab wrote:
    > I want to remove /usr/ucb from my PATH . I can not find /usr/ucb in my
    > profile . from where it comes ?
    Probably set in one of the global config-files in /etc. Grep through them.

    Uli


    Ulrich Eckhardt Guest

  4. #3

    Default Re: profile contents

    In article <b4f59294.0307120426.1c79806f@posting.google.com >,
    [email]hpy_azizy@yahoo.com[/email] (ehab) writes:
    > I want to remove /usr/ucb from my PATH . I can not find /usr/ucb in my
    > profile . from where it comes ?
    Doesnt matter. Leave the system files alone.
    Any change you make can/may be overwritten with a patch or upgrade
    and anyway its just not a good habit to develop.
    Create your OWN .profile and/or your own development environment
    xterm/dtterm for those "special" occasions.

    In /.profile you can do:
    # unset your PATH
    PATH=""
    # reset the PATH and export
    PATH=/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/bin
    export PATH

    This assumes that the shell you use will source .profile..
    > # echo $PATH
    > /usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/bin:/usr/ucb
    Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139