ubuntuusers.de

Bashverlauf aktualisiert sich nicht mehr und Einstellungen fehlen nach Neustart

Status: Ungelöst | Ubuntu-Version: Kubuntu 9.10 (Karmic Koala)
Antworten |

MaxReboBand

Anmeldungsdatum:
16. Dezember 2009

Beiträge: 21

Ich habe nun seit längerer Zeit das Problem, dass sich mein Bash-Verlauf nicht mehr nach einem Neustart aktualisiert, sondern immer die gleichen drei alten Befehle enthält. Außerdem kann ich neue ssh-Keys immer nur für eine Sitzung importieren, die Xmodmap setzt sich jedesmal auf den damaligen Stand zurück und Compiz startet auch nicht mit meiner Sitzung. Ich habe das Gefühl, dass die Antwort offensichtlich sein müsste, aber irgendwie komme und komme ich nicht drauf -_- Softwareseitig benutze ich ein stets aktuell gepatchtes kUbuntu mit standard Terminal-Emulator. Danke schonmal für eure Hilfe ☺

Vain

Avatar von Vain

Anmeldungsdatum:
12. April 2008

Beiträge: 2510

Zeig uns doch bitte mal die Ausgabe von:

ls -al ~

Könnte fast wetten, du hast dir mal die Berechtigungen für besagte Dateien versaut und die gehören jetzt root oder so. 😉

MaxReboBand

(Themenstarter)

Anmeldungsdatum:
16. Dezember 2009

Beiträge: 21

OK, hier:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
insgesamt 580               
drwxrwxrwx  57 philipp philipp 20480 2010-04-27 14:10 .
drwxr-xr-x   4 root    root     4096 2010-04-02 11:15 ..
drwxr-xr-x   2 philipp philipp  4096 2010-04-19 01:42 .acetoneiso
drwx------   3 philipp philipp  4096 2010-04-02 12:07 .adobe     
drwxrwxrwx   2 philipp philipp  4096 2010-04-19 18:38 Art        
drwxrwxrwx   3 philipp philipp  4096 2010-04-19 18:35 Barbarossa 
drwxrwxrwx   3 philipp philipp  4096 2010-04-02 23:55 Bilder     
-rw-rw-rw-   1 philipp philipp  1708 2010-04-25 16:15 .BOINC Manager
drwx------   8 philipp philipp  4096 2010-04-17 19:23 .cache        
drwxr-xr-x   9 philipp philipp  4096 2010-04-11 17:29 .cddb         
drwxr-xr-x  18 philipp philipp  4096 2010-04-19 23:31 .config       
drwx------   3 philipp philipp  4096 2010-04-06 14:25 .cooliris     
drwx------   3 philipp philipp  4096 2010-04-02 11:20 .dbus         
-rw-rw-rw-   1 philipp philipp    68 2010-04-19 17:03 .directory    
-rw-rw-rw-   1 philipp philipp    22 2010-04-02 12:36 .dmrc         
drwxrwxrwx   3 philipp philipp  4096 2010-04-27 13:50 Dokumente     
drwx------   2 philipp philipp  4096 2010-04-19 01:23 .dosbox       
drwxrwxrwx   2 philipp philipp 12288 2010-04-25 19:00 Downloads     
drwxr-xr-x   8 philipp philipp  4096 2010-04-11 22:04 .dvdcss       
lrwxrwxrwx   1 philipp philipp   124 2010-04-02 11:15 .ecryptfs -> /home/.ecryptfs/philipp/.ecryptfs
-rw-rw-rw-   1 philipp philipp    16 2010-04-02 18:03 .esd_auth                                     
-rw-rw-rw-   1 philipp philipp 14289 2010-04-22 23:07 feelinglucky.png                              
drwxr-xr-x   3 philipp philipp  4096 2010-04-07 20:58 Firefly                                       
drwxr-xr-x   2 philipp philipp  4096 2010-04-19 17:55 .fontconfig                                   
drwxr-xr-x   2 philipp philipp  4096 2010-04-02 13:48 .fonts                                        
drwx------   3 philipp philipp  4096 2010-04-27 12:04 .gconf                                        
drwx------   2 philipp philipp  4096 2010-04-21 15:26 .gconfd                                       
drwx------   4 philipp philipp  4096 2010-04-05 21:32 .gegl-0.0                                     
drwxr-xr-x  22 philipp philipp  4096 2010-04-12 01:52 .gimp-2.6                                     
-rw-rw-rw-   1 philipp philipp     0 2010-04-08 20:43 .gksu.lock                                    
drwx------   3 philipp philipp  4096 2010-04-12 15:51 .gnome                                        
drwx------   3 philipp philipp  4096 2010-04-07 00:32 .gnome2                                       
drwx------   2 philipp philipp  4096 2010-04-03 14:58 .gnome2_private                               
drwx------   3 philipp philipp  4096 2010-04-06 08:40 .gnupg                                        
drwxr-xr-x   2 philipp philipp  4096 2010-04-06 23:50 .gstreamer-0.10                               
-rw-rw-rw-   1 philipp philipp    50 2010-04-02 11:20 .gtkrc-2.0-kde4                               
drwx------   2 philipp philipp  4096 2010-04-02 17:54 .gvfs                                         
-rw-rw-rw-   1 philipp philipp   193 2010-04-18 17:10 .ICEauthority                                 
drwx------   6 philipp philipp  4096 2010-04-02 12:19 .kde                                          
drwxrwxrwx   2 philipp philipp  4096 2010-04-21 14:46 Keys                                          
-rw-rw-rw-   1 philipp philipp  1297 2010-04-25 18:05 .kobodlrc                                     
drwxr-xr-x   3 philipp philipp  4096 2010-04-02 11:21 .local                                        
drwxrwxrwx   2 philipp philipp  4096 2010-04-27 13:50 .lyx                                          
lrwxrwxrwx   1 philipp philipp   124 2010-04-27 13:50 .lyxpipe.in -> /tmp/kde-philipp/kile482TaP/.lyxpipe.in
lrwxrwxrwx   1 philipp philipp   124 2010-04-27 13:50 .lyxpipe.out -> /tmp/kde-philipp/kile482TaP/.lyxpipe.out
drwxrwxrwx   3 philipp philipp  4096 2010-04-02 12:07 .macromedia                                             
drwxrwxrwx   4 philipp philipp  4096 2010-04-06 14:24 .mozilla                                                
drwxrwxrwx   2 philipp philipp  4096 2010-04-10 17:50 .mplayer                                                
drwxrwxrwx   4 philipp philipp  4096 2010-04-03 15:01 .multisync
drwxr-xr-x 445 philipp philipp 65536 2010-04-11 18:54 Musik
drwxr-xr-x   2 philipp philipp  4096 2010-04-02 11:20 Öffentlich
drwxrwxrwx   3 philipp philipp  4096 2010-04-03 15:21 .openoffice.org
drwxrwxrwx   4 philipp philipp  4096 2010-04-03 15:02 .opensync-0.22
drwxrwxrwx  16 philipp philipp 12288 2010-04-25 18:56 .opera
drwxrwxrwx   3 philipp philipp  4096 2010-04-02 12:07 .pki
lrwxrwxrwx   1 philipp philipp   124 2010-04-02 11:15 .Private -> /home/.ecryptfs/philipp/.Private
-rw-rw-rw-   1 philipp philipp   675 2010-04-02 11:15 .profile
drwx------   2 philipp philipp  4096 2010-04-27 12:00 .pulse
-rw-rw-rw-   1 philipp philipp   256 2010-04-02 11:21 .pulse-cookie
drwxrwxrwx   2 philipp philipp  4096 2010-04-02 14:41 .qt
drwxrwxrwx   2 philipp philipp  4096 2010-04-05 21:32 .quiteinsane_gimp_plugin
-rw-rw-rw-   1 philipp philipp  1849 2010-04-25 19:00 .recently-used
-rw-rw-rw-   1 philipp philipp  2688 2010-04-12 02:08 .recently-used.xbel
-rw-rw-rw-   1 philipp philipp    66 2010-04-04 14:01 .selected_editor
drwxrwxrwx   2 philipp philipp  4096 2010-04-17 19:25 Skripte
drwxrwxrwx   4 philipp philipp  4096 2010-04-14 22:55 .Skype
drwxrwxrwx   2 philipp philipp  4096 2010-04-19 23:09 .ssh
-rw-rw-rw-   1 philipp philipp     0 2010-04-02 11:26 .sudo_as_admin_successful
drwxrwxrwx   4 philipp philipp  4096 2010-04-02 15:29 .thumbnails
drwx------   4 root    root     4096 2010-04-27 13:40 .Trash-0
drwxrwxrwx  10 philipp philipp  4096 2010-04-24 21:29 Uni
drwxrwxrwx   2 philipp philipp  4096 2010-04-02 11:25 .update-manager-core
drwxrwxrwx   2 philipp philipp  4096 2010-04-02 11:20 Vorlagen
drwxrwxrwx   2 philipp philipp  4096 2010-04-07 19:35 .wapi
drwxrwxrwx   4 philipp philipp  4096 2010-04-18 21:29 .wine
-rw-rw-rw-   1 philipp philipp   163 2010-04-27 13:50 .Xauthority
drwxrwxrwx   3 philipp philipp  4096 2010-04-10 17:36 .xine
-rw-rw-rw-   1 philipp philipp 13802 2010-04-21 11:23 .Xmodmap
-rw-rw-rw-   1 philipp philipp 13833 2010-04-21 11:23 .Xmodmap~
-rw-------   1 philipp philipp 19815 2010-04-27 14:13 .xsession-errors

trick17

Avatar von trick17

Anmeldungsdatum:
17. Dezember 2008

Beiträge: 201

Vain schrieb:

Könnte fast wetten, du hast dir mal die Berechtigungen für besagte Dateien versaut und die gehören jetzt root oder so. 😉

Schlimmer noch → in der Ausgabe fehlt die .bash_history ganz!

Gruß,

Pa_trick17

Vain

Avatar von Vain

Anmeldungsdatum:
12. April 2008

Beiträge: 2510

Huch.

Naja, jedenfalls sieht es auf den ersten Blick nicht nach Rechteproblem aus. Schade. 😉

So auf Anhieb weiß ich da auch nicht weiter. Vielleicht enthüllt etwas hiervon noch was:

id
env
shopt
cat ~/.profile

MaxReboBand

(Themenstarter)

Anmeldungsdatum:
16. Dezember 2009

Beiträge: 21

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
philipp@philipps:~$ id
uid=1000(philipp) gid=1000(philipp) Gruppen=4(adm),20(dialout),24(cdrom),46(plugdev),104(lpadmin),114(admin),117(sambashare),1000(philipp)
philipp@philipps:~$ env                                                                                                                   
KDE_MULTIHEAD=false                                                                                                                       
SSH_AGENT_PID=1792                                                                                                                        
DM_CONTROL=/var/run/xdmctl                                                                                                                
GPG_AGENT_INFO=/tmp/gpg-ufEol4/S.gpg-agent:1793:1                                                                                         
TERM=xterm                                                                                                                                
DESKTOP_STARTUP_ID=                                                                                                                       
SHELL=/bin/bash                                                                                                                           
XDG_SESSION_COOKIE=48104e847a72c131faa6d21f4bb5b6b8-1272392665.373318-2129758968                                                          
XDM_MANAGED=method=classic                                                                                                                
KONSOLE_DBUS_SERVICE=:1.74                                                                                                                
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/philipp/.gtkrc-2.0:/home/philipp/.gtkrc-2.0-kde4:/home/philipp/.kde/share/config/gtkrc-2.0         
GTK_RC_FILES=/etc/gtk/gtkrc:/home/philipp/.gtkrc::/home/philipp/.kde/share/config/gtkrc                                                   
GS_LIB=/home/philipp/.fonts                                                                                                               
WINDOWID=75497497                                                                                                                         
KDE_FULL_SESSION=true                                                                                                                     
USER=philipp                                                                                                                              
LIBGL_DRIVERS_PATH=/usr/lib/dri                                                                                                           
SSH_AUTH_SOCK=/tmp/ssh-bfVpUk1733/agent.1733                                                                                              
SESSION_MANAGER=local/philipps:@/tmp/.ICE-unix/1890,unix/philipps:/tmp/.ICE-unix/1890                                                     
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games                                                              
DESKTOP_SESSION=kde                                                                                                                       
PWD=/home/philipp                                                                                                                         
KDE_SESSION_UID=1000                                                                                                                      
LANG=de_DE.UTF-8                                                                                                                          
KONSOLE_DBUS_SESSION=/Sessions/1                                                                                                          
COLORFGBG=15;0                                                                                                                            
HOME=/home/philipp                                                                                                                        
SHLVL=1                                                                                                                                   
LANGUAGE=                                                                                                                                 
KDE_SESSION_VERSION=4                                                                                                                     
XCURSOR_THEME=oxy-white                                                                                                                   
LOGNAME=philipp                                                                                                                           
XDG_DATA_DIRS=/usr/share:/usr/share:/usr/local/share                                                                                      
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-hVDD5b5gn4,guid=e41afc3bcbbe7deaac61508a4bd72bda                                         
WINDOWPATH=7                                                                                                                              
PROFILEHOME=                                                                                                                              
DISPLAY=:0.0                                                                                                                              
QT_PLUGIN_PATH=/home/philipp/.kde/lib/kde4/plugins/:/usr/lib/kde4/plugins/                                                                
_=/usr/bin/env                                                                                                                            
philipp@philipps:~$ shopt                                                                                                                 
autocd          off                                                                                                                       
cdable_vars     off                                                                                                                       
cdspell         off                                                                                                                       
checkhash       off                                                                                                                       
checkjobs       off                                                                                                                       
checkwinsize    on                                                                                                                        
cmdhist         on                                                                                                                        
compat31        off                                                                                                                       
compat32        off                                                                                                                       
dirspell        off                                                                                                                       
dotglob         off                                                                                                                       
execfail        off                                                                                                                       
expand_aliases  on                                                                                                                        
extdebug        off                                                                                                                       
extglob         on                                                                                                                        
extquote        on                                                                                                                        
failglob        off                                                                                                                       
force_fignore   on                                                                                                                        
globstar        off                                                                                                                       
gnu_errfmt      off                                                                                                                       
histappend      off                                                                                                                       
histreedit      off                                                                                                                       
histverify      off                                                                                                                       
hostcomplete    off                                                                                                                       
huponexit       off                                                                                                                       
interactive_comments    on                                                                                                                
lithist         off                                                                                                                       
login_shell     off                                                                                                                       
mailwarn        off                                                                                                                       
no_empty_cmd_completion off                                                                                                               
nocaseglob      off
nocasematch     off
nullglob        off
progcomp        on
promptvars      on
restricted_shell        off
shift_verbose   off
sourcepath      on
xpg_echo        off
philipp@philipps:~$ cat ~/.profile
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
        . "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

@trick 17: Das ist so beabsichtigt, hatte die Datei verschoben, um zu testen ob es an der liegt. Sie wird bei den nächsten Eingaben einfach wieder hergestellt.

Jetzt das Interessante: Obwohl ich diese Datei verschoben habe taucht wieder die alte History auf...

DrScott Team-Icon

Ehemalige
Avatar von DrScott

Anmeldungsdatum:
7. Juli 2005

Beiträge: 6018

Wohnort: Nürnberg

Jetzt das Interessante: Obwohl ich diese Datei verschoben habe taucht wieder die alte History auf...

Dieser Teil ist klar: Wenn Du ein Terminal startest (genauer: Wenn Du eine bash startest), dann wird von der bash die Datei .bash_history eingelesen und im Speicher um die jeweiligen Befehle erweitert. Erst beim Beenden der bash wird die Datei wieder gespeichert.

Das bedeutet auch: Sind mehrere shells offen, so "gewinnt" die, die zuletzt geschlossen wird.

Ich fürchte aber, dass damit noch nicht alle Effekte erklärt werden können, oder?

trick17

Avatar von trick17

Anmeldungsdatum:
17. Dezember 2008

Beiträge: 201

Hattest du auch eine .bashrc im Homeordner und gibt es dort eine Stelle

shopt -s histappend

?

was sagt

echo $HISTFILE $HISTCMD $HISTFILESIZE

?

Antworten |