Re: [CentOS] /etc/bashrc causing probs..

2011-01-14 Thread John Doe
From: Roland RoLaNd r_o_l_a_...@hotmail.com any idea how to prevent bashrc to execute the below to a no login shell ? or any other advice for that matter. Maybe try: if shopt -q login_shell; then ... fi JD ___ CentOS mailing list

[CentOS] /etc/bashrc causing probs..

2011-01-13 Thread Roland RoLaNd
Hello,i've appended the below to /etc/bashrc, which is causing an error once i try to rsync using ssh to this specific box.any idea how to prevent bashrc to execute the below to a no login shell ? or any other advice for that matter. if [ $(id -u) -eq 0 ];then # you are rootecho

Re: [CentOS] /etc/bashrc causing probs..

2011-01-13 Thread Nicolas Thierry-Mieg
Roland RoLaNd wrote: Hello, i've appended the below to /etc/bashrc, which is causing an error once i try to rsync using ssh to this specific box. any idea how to prevent bashrc to execute the below to a no login shell ? or any other advice for that matter. you might try putting your block of

Re: [CentOS] /etc/bashrc causing probs..

2011-01-13 Thread Kai Schaetzl
That belongs in /root/.bashrc. Editing /etc/bashrc is not a good idea because it can get overwritten by an update. Kai -- Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mailing list CentOS@centos.org