Skip to main content

/etc/profile error when logging in

Comments

4 comments

  • cPanelLauren
    What you're showing me certainly doesn't have a line 1835263 but the issue appears to be in the custom entry here: ;; UID=`/usr/bin/id -ru` fi
    I'm thinking it's missing double quotes " ". How long has this customization been in place?
    0
  • coursevector
    It's not customized. i haven't messed with the profile file at all.
    0
  • cPanelLauren
    I'm not sure in that case but it is certainly modified: [root@server ~]# grep . /etc/profile # /etc/profile # System wide environment and startup programs, for login setup # Functions and aliases go in /etc/bashrc # It's NOT a good idea to change this file unless you know what you # are doing. It's much better to create a custom.sh shell script in # /etc/profile.d/ to make custom changes to your environment, as this # will prevent the need for merging in future updates. pathmunge () { case ":${PATH}:" in *:"$1":*) ;; *) if [ "$2" = "after" ] ; then PATH=$PATH:$1 else PATH=$1:$PATH fi esac }
    cPanel adds it's customizations in the sections noted by comments - the issue in yours though is not in a cPanel specific area and I'm unsure what would have changed that.
    0
  • coursevector
    Is there a way to reset it? I have a script i run on the servers but it only updates /etc/environment to get rid of warnings from Perl for locale issues.
    0

Please sign in to leave a comment.