Skip to main content

root login bash alias notifications

Comments

6 comments

  • cPanelLauren
    Hello, Is anything added in /root/.bash_profile
    or /root/.bashrc
    ? What are the permissions of /root/.bashrc
    ? stat /root/.bashrc
    0
  • marjwyatt
    No. I've not added anything to those files. Up until a few weeks ago, these notifications weren't happening when I used SSH to login to root. Here are the results of the commend you told me to run: root@server [~]# stat /root/.bashrc File: '/root/.bashrc' Size: 455 Blocks: 8 IO Block: 4096 regular file Device: 16h/22d Inode: 37753620 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2019-11-18 12:24:03.812056593 -0800 Modify: 2019-09-22 09:25:35.560599410 -0700 Change: 2019-09-22 09:25:35.560599410 -0700 Birth: -
    0
  • cPanelLauren
    Whether or not you've added anything to the files, I'd like to know if anything is present within them. The size indicates that there is data within, the permissions are correct.
    0
  • marjwyatt
    Here is the output from /root/.bashrc_profile root@server [~]# cat /root/.bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH
    Here is the output from /root/.bashrc root@server [~]# cat /root/.bashrc # .bashrc # User specific aliases and functions alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi alias composer="php -d allow_url_fopen=On /home/virtuall/composer.phar" source /root/.bashrc alias composer="php -d allow_url_fopen=On /home/virtuall/composer.phar" source /root/.bashrc alias composer="php -d allow_url_fopen=On /home/virtuall/composer.phar" source /root/.bashrc
    0
  • cPanelLauren
    By default the following is present: [root@server ~]# cat /root/.bashrc # .bashrc # User specific aliases and functions alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi
    If you remove those lines at the bottom does the issue persist?
    0
  • marjwyatt
    That did it. Maybe those were added by me when I was trying to implement some software that was supposed to help with updating php code. My bad! Thanks for your help.
    0

Please sign in to leave a comment.