James B. Byrne
2014-May-28 16:55 UTC
[CentOS] /etc/bash_completion.d/git generates permissions errors
I did a yum update to my desktop machine as root this morning and now my regular logon account sees this whenever I press the enter key: etc/audisp/audispd.conf: Permission denied etc/audisp/plugins.d/af_unix.conf: Permission denied etc/audisp/plugins.d/syslog.conf: Permission denied etc/audit/audit.rules: Permission denied etc/audit/auditd.conf: Permission deniedetc/dhcp/dhclient.d/ntp.sh: Permission denied etc/libvirt/libvirt.conf: Permission denied etc/libvirt/libvirtd.conf: Permission denied etc/libvirt/lxc.conf: Permission denied etc/libvirt/nwfilter/allow-arp.xml: Permission denied etc/libvirt/nwfilter/allow-dhcp-server.xml: Permission denied etc/libvirt/nwfilter/allow-dhcp.xml: Permission denied etc/libvirt/nwfilter/allow-incoming-ipv4.xml: Permission denied etc/libvirt/nwfilter/allow-ipv4.xml: Permission denied etc/libvirt/nwfilter/clean-traffic.xml: Permission denied . . . etc/lvm/backup/vg_vhost04: Permission denied etc/lvm/backup/vg_xnet241: Permission denied etc/lvm/backup/vg_xnet242: Permission denied etc/lvm/backup/vg_xnet243: Permission denied etc/ntp/crypto/pw: Permission denied etc/selinux/targeted/modules/active/base.pp: Permission denied etc/selinux/targeted/modules/active/commit_num: Permission denied etc/selinux/targeted/modules/active/file_contexts: Permission denied etc/selinux/targeted/modules/active/file_contexts.homedirs: Permission denied etc/selinux/targeted/modules/active/file_contexts.local: Permission denied etc/selinux/targeted/modules/active/file_contexts.template: Permission denied . . . root/iaxmodem-debuginfo-1.2.0-1.el6.x86_64.rpm: Permission denied root/ifcfg-br0: Permission denied root/ifcfg-br1: Permission denied root/ifcfg-eth0: Permission denied root/ifcfg-eth0:xxx: Permission denied root/ifcfg-eth1: Permission denied root/install.log: Permission denied root/install.log.syslog: Permission denied root/internal_call.trace: Permission denied root/iptables.gateway.revised: Permission denied root/iptables.gway01.20130517: Permission denied root/iptables.inet09-2012-12-31: Permission denied root/jcameron-key.asc: Permission denied root/locale_en_CA at yyyy-mmm-dd.tar.gz: Permission denied root/more_or_less_commands.txt: Permission denied root/named.conf.bind-9.8.2-default-2013-07-04: Permission denied root/named.conf.inet01-dns01-2013-07-04: Permission denied root/named.conf.inet03-dnm-2013-07-04: Permission denied root/pg_hba.conf: Permission denied root/pg_ident.conf: Permission denied root/pgadmin.log: Permission denied root/pgdg-91-centos.repo: Permission denied root/ping_host.sh: Permission denied root/ping_http.sh: Permission denied root/postgresql.conf: Permission denied root/root_voinet09.tgz: Permission denied root/rsync_control.tgz: Permission denied root/rsync_inet01.sh: Permission denied root/rsync_inet02.sh: Permission denied root/rsync_inet03.sh: Permission denied root/rsync_inet04.sh: Permission denied root/rsync_inet05.sh: Permission denied root/rsync_inet06.sh: Permission denied root/rsync_inet07.sh: Permission denied root/rsync_inet08.sh: Permission denied root/rsync_inet09.sh: Permission denied root/rsync_voinet09_freepbx.sh: Permission denied root/rsync_xnet241_home_byrnejb.sh: Permission denied root/ttyS0.conf: Permission denied root/vimsetup.tgz: Permission denied root/virtinstallscript: Permission denied root/voinet01_pki.tgz: Permission denied root/xTuple-3.8.2-linux-installer.run: Permission denied I traced this back to this statement in ~/.bash_profile source /etc/bash_completion.d/git Removing this statement allows new terminal sessions for my regular account to work as they did before - in other words without the massive list of permissions errors. This file comes from the git package in base: $ yum provides /etc/bash_completion.d/git . . . 129 packages excluded due to repository priority protections git-1.7.1-3.el6_4.1.x86_64 : Fast Version Control System Repo : base Matched from: Filename : /etc/bash_completion.d/git My question is: what is in /etc/bash_completion.d/git that is causing this? -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3
James B. Byrne
2014-May-28 17:04 UTC
[CentOS] /etc/bash_completion.d/git generates permissions errors
On Wed, May 28, 2014 12:55, James B. Byrne wrote:> I did a yum update to my desktop machine as root this morning and now my > regular logon account sees this whenever I press the enter key: >> > My question is: what is in /etc/bash_completion.d/git that is causing this? >I discovered that it is something that /etc/bash_completion.d/git puts into $PS1. Pesetting the PS1 back to its original settings clears the problem. -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3
Daniel J Walsh
2014-May-28 17:45 UTC
[CentOS] /etc/bash_completion.d/git generates permissions errors
On 05/28/2014 12:55 PM, James B. Byrne wrote:> I did a yum update to my desktop machine as root this morning and now my > regular logon account sees this whenever I press the enter key: > > etc/audisp/audispd.conf: Permission denied > etc/audisp/plugins.d/af_unix.conf: Permission denied > etc/audisp/plugins.d/syslog.conf: Permission denied > etc/audit/audit.rules: Permission denied > etc/audit/auditd.conf: Permission deniedetc/dhcp/dhclient.d/ntp.sh: Permission > denied > etc/libvirt/libvirt.conf: Permission denied > etc/libvirt/libvirtd.conf: Permission denied > etc/libvirt/lxc.conf: Permission denied > etc/libvirt/nwfilter/allow-arp.xml: Permission denied > etc/libvirt/nwfilter/allow-dhcp-server.xml: Permission denied > etc/libvirt/nwfilter/allow-dhcp.xml: Permission denied > etc/libvirt/nwfilter/allow-incoming-ipv4.xml: Permission denied > etc/libvirt/nwfilter/allow-ipv4.xml: Permission denied > etc/libvirt/nwfilter/clean-traffic.xml: Permission denied > > . . . > > etc/lvm/backup/vg_vhost04: Permission denied > etc/lvm/backup/vg_xnet241: Permission denied > etc/lvm/backup/vg_xnet242: Permission denied > etc/lvm/backup/vg_xnet243: Permission denied > etc/ntp/crypto/pw: Permission denied > etc/selinux/targeted/modules/active/base.pp: Permission denied > etc/selinux/targeted/modules/active/commit_num: Permission denied > etc/selinux/targeted/modules/active/file_contexts: Permission denied > etc/selinux/targeted/modules/active/file_contexts.homedirs: Permission denied > etc/selinux/targeted/modules/active/file_contexts.local: Permission denied > etc/selinux/targeted/modules/active/file_contexts.template: Permission denied > > . . . > > root/iaxmodem-debuginfo-1.2.0-1.el6.x86_64.rpm: Permission denied > root/ifcfg-br0: Permission denied > root/ifcfg-br1: Permission denied > root/ifcfg-eth0: Permission denied > root/ifcfg-eth0:xxx: Permission denied > root/ifcfg-eth1: Permission denied > root/install.log: Permission denied > root/install.log.syslog: Permission denied > root/internal_call.trace: Permission denied > root/iptables.gateway.revised: Permission denied > root/iptables.gway01.20130517: Permission denied > root/iptables.inet09-2012-12-31: Permission denied > root/jcameron-key.asc: Permission denied > root/locale_en_CA at yyyy-mmm-dd.tar.gz: Permission denied > root/more_or_less_commands.txt: Permission denied > root/named.conf.bind-9.8.2-default-2013-07-04: Permission denied > root/named.conf.inet01-dns01-2013-07-04: Permission denied > root/named.conf.inet03-dnm-2013-07-04: Permission denied > root/pg_hba.conf: Permission denied > root/pg_ident.conf: Permission denied > root/pgadmin.log: Permission denied > root/pgdg-91-centos.repo: Permission denied > root/ping_host.sh: Permission denied > root/ping_http.sh: Permission denied > root/postgresql.conf: Permission denied > root/root_voinet09.tgz: Permission denied > root/rsync_control.tgz: Permission denied > root/rsync_inet01.sh: Permission denied > root/rsync_inet02.sh: Permission denied > root/rsync_inet03.sh: Permission denied > root/rsync_inet04.sh: Permission denied > root/rsync_inet05.sh: Permission denied > root/rsync_inet06.sh: Permission denied > root/rsync_inet07.sh: Permission denied > root/rsync_inet08.sh: Permission denied > root/rsync_inet09.sh: Permission denied > root/rsync_voinet09_freepbx.sh: Permission denied > root/rsync_xnet241_home_byrnejb.sh: Permission denied > root/ttyS0.conf: Permission denied > root/vimsetup.tgz: Permission denied > root/virtinstallscript: Permission denied > root/voinet01_pki.tgz: Permission denied > root/xTuple-3.8.2-linux-installer.run: Permission denied > > I traced this back to this statement in ~/.bash_profile > > source /etc/bash_completion.d/git > > Removing this statement allows new terminal sessions for my regular account to > work as they did before - in other words without the massive list of > permissions errors. This file comes from the git package in base: > > $ yum provides /etc/bash_completion.d/git > . . . > 129 packages excluded due to repository priority protections > git-1.7.1-3.el6_4.1.x86_64 : Fast Version Control System > Repo : base > Matched from: > Filename : /etc/bash_completion.d/git > > > My question is: what is in /etc/bash_completion.d/git that is causing this? > >Are you running with a confined user? id -Z? Is this an SELinux issue?
Reasonably Related Threads
- make install ignoring PREFIX for bash_completion
- Re: make install ignoring PREFIX for bash_completion
- Re: make install ignoring PREFIX for bash_completion
- Configuration problem installing backport to jessie
- [nbdkit PATCH] build: Allow 'make install' into non-root --prefix: bash-completion