View previous topic :: View next topic |
Author |
Message |
rev138 l33t
Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Mon Feb 19, 2007 7:05 pm Post subject: Not sure exactly what the problem is... |
|
|
Hi all,
I have a desktop machine set up, which has been going fine for quite a while. Recently, I noticed that Acrobat Reader would not open in KDE. I tried running "acroread" from the console, and it complained that it couldn't determine the present working directory (pwd).
While I was mucking around in the console, I noticed that bash completion wasn't working either. If I type "/" and hit tab, instead of getting a list of the root contents, nothing happens. I can access any of the directories by typing them manually, however.
Oddly, everything works OK as root. I created another non-privileged user, just to make sure that it wasn't specific to the account I was using. No dice on that one.
Even more oddly, those are the only signs that something's wrong. No other programs that I've tried are complaining, or failing to load.
After trying to figure it out for a while, I ended up doing an "emerge -e system", but that didn't help.
This is just bizarre.
Thoughts? _________________ Vermont Free PC
http://www.vtfreepc.org |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Mon Feb 19, 2007 7:16 pm Post subject: |
|
|
Sounds like a permission issue on one of the shell startup scripts. Can you please provide the output of Code: | ls -l /etc/profile* /etc/bash* ~/.bash_* | ? _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
Sokertes n00b
Joined: 14 Oct 2003 Posts: 24
|
Posted: Mon Feb 19, 2007 7:19 pm Post subject: |
|
|
When was the last time you did etc-update
just wondering _________________ No complaints will be allowed. All complaints will be symlinked to /dev/null
All others will be rerouted through iptables |
|
Back to top |
|
|
rev138 l33t
Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Mon Feb 19, 2007 7:32 pm Post subject: |
|
|
Sokertes wrote: | When was the last time you did etc-update |
Right after I re-emerged the entire system. I use dispatch-conf, but same difference.
moocha: I'll report back with that later. _________________ Vermont Free PC
http://www.vtfreepc.org |
|
Back to top |
|
|
rev138 l33t
Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Mon Feb 19, 2007 9:33 pm Post subject: |
|
|
Code: | $ ls -l /etc/profile* /etc/bash* ~/.bash_*
-rw-r--r-- 1 root root 2141 Feb 17 21:22 /etc/profile
-rw-r--r-- 1 root root 2051 Dec 8 14:48 /etc/profile.csh
-rw-r--r-- 1 root root 2161 Feb 18 03:15 /etc/profile.env
-rw------- 1 appleseed users 1842 Feb 18 12:54 /home/appleseed/.bash_history
-rw-r--r-- 1 appleseed users 127 Dec 22 2005 /home/appleseed/.bash_logout
-rw-r--r-- 1 appleseed users 232 Dec 16 18:30 /home/appleseed/.bash_profile
/etc/bash:
total 8
-rw-r--r-- 1 root root 132 Jul 30 2005 bash_logout
-rw-r--r-- 1 root root 2463 Feb 17 21:42 bashrc
/etc/bash_completion.d:
total 12
-rw-r--r-- 1 root root 10586 Dec 21 2005 ooo-wrapper.sh
/etc/profile.d:
total 64
-rwxr-xr-x 1 root root 762 Dec 9 09:58 java-config-2.sh
-rw-r--r-- 1 root root 2399 Dec 22 2005 tcsh-aliases
-rw-r--r-- 1 root root 3597 Dec 22 2005 tcsh-bindkey
-rw-r--r-- 1 root root 45242 Dec 22 2005 tcsh-complete
-rw-r--r-- 1 root root 3271 Dec 22 2005 tcsh-settings |
_________________ Vermont Free PC
http://www.vtfreepc.org |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Mon Feb 19, 2007 9:41 pm Post subject: |
|
|
That looks alright... This is an odd one.
It's almost certainly a permission problem somewhere (stuff working as root but not as a regular user is the typical symptom), but hell if I know where. Perhaps a PAM issue? Are you using pam_console or pam_chroot?
Are you perhaps running any non-"vanilla" system? I.e., things like SELinux, RSBAC, grsec/PaX or otherwise hardened kernels, weird login shells, ...?
Could you also post the output of(although I'll admit it's unlikely to be relevant, but it can't hurt). _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
rev138 l33t
Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Mon Feb 19, 2007 9:48 pm Post subject: |
|
|
Not doing anything fancy. It's a basic desktop for my parents.
Pam is using the default USE flags, which don't include pam_console or pam_chroot.
Code: | # emerge --info
Portage 2.1.2-r9 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r3 i686)
=================================================================
System uname: 2.6.18-gentoo-r3 i686 Pentium III (Coppermine)
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 17 Feb 2007 20:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python: 2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.4-r6
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.61
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -funroll-loops -pipe -mmmx -msse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=pentium3 -funroll-loops -pipe -mmmx -msse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo ftp://194.117.143.72/mirrors/gentoo http://gentoo.netnitco.net"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X arts berkdb bitmap-fonts cdr cli cracklib crypt cups dlloader dri dvd fortran gdbm gpm iconv isdnlog kde kdeenablefinal kdexdeltas libg++ logrotate midi mmx ncurses nptl nptlonly nvidia pam pcre perl ppds pppd python qt readline reflection samba session spl sse ssl tcpd truetype-fonts type1-fonts unicode x86 xorg zlib" ALSA_CARDS="ens1371" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nv"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY |
_________________ Vermont Free PC
http://www.vtfreepc.org |
|
Back to top |
|
|
rev138 l33t
Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Mon Feb 19, 2007 9:49 pm Post subject: |
|
|
The only thing that's not "vanilla" is that I'm using LVM, but I hardly see how that could be relevant. _________________ Vermont Free PC
http://www.vtfreepc.org |
|
Back to top |
|
|
rev138 l33t
Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Wed Feb 21, 2007 12:10 pm Post subject: |
|
|
Other ideas? Anyone? _________________ Vermont Free PC
http://www.vtfreepc.org |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Wed Feb 21, 2007 6:19 pm Post subject: |
|
|
Sorry, for the moment at least I'm fresh out... I empathize with your avatar, if that's any help . _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
rev138 l33t
Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Sun Feb 25, 2007 5:54 pm Post subject: |
|
|
I had a chance to work on it again, and here's what I found:
Code: | # ls -la /
total 28
d-wxr----t 20 root root 520 Dec 9 17:17 .
d-wxr----t 20 root root 520 Dec 9 17:17 .. |
I have no idea how the hell that happened, but I ran and everything's hunky dory.
I won't mark this thread solved, because while it's fixed, the cause is still a mystery to me. _________________ Vermont Free PC
http://www.vtfreepc.org |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Sun Feb 25, 2007 10:12 pm Post subject: |
|
|
Gwah... Well, spank me silly.
I'm thinking it could happen when emerging a buggy package with the sandbox disabled from FEATURES, or it could happen manually by mistake... Weird. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
rev138 l33t
Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Mon Feb 26, 2007 12:47 am Post subject: |
|
|
moocha wrote: | Gwah... Well, spank me silly. |
Sorry, but we've just met.
Thanks for the help though. _________________ Vermont Free PC
http://www.vtfreepc.org |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Mon Feb 26, 2007 11:11 pm Post subject: |
|
|
rev138 wrote: | moocha wrote: | Gwah... Well, spank me silly. |
Sorry, but we've just met. |
rev138 wrote: | Thanks for the help though. | Anytime, don't mention it - as little as it was, though, sorry about that... _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
|