[Bug 225482] New: $HOME/.profile is not read during bash startup
https://bugzilla.novell.com/show_bug.cgi?id=225482 Summary: $HOME/.profile is not read during bash startup Product: openSUSE 10.2 Version: RC 5 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jfunk@funktronics.ca QAContact: qa@suse.de User .profile files are no longer being sourced during login. I only just noticed this, so I don't know how long this has been going on. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225482 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |werner@novell.com |screening@forge.provo.novell| |.com | Severity|Normal |Minor -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225482 werner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME ------- Comment #1 from werner@novell.com 2006-12-04 01:21 MST ------- A real bash login shell does read the ~/.profile, try out strace -e open bash -l with this I see on opensuSE 10.2: [...] open("/suse/werner/.bash_profile", O_RDONLY) = -1 ENOENT (No such file or directory) open("/suse/werner/.bash_login", O_RDONLY) = -1 ENOENT (No such file or directory) open("/suse/werner/.profile", O_RDONLY) = 3 --- SIGCHLD (Child exited) @ 0 (0) --- --- SIGCHLD (Child exited) @ 0 (0) --- open("/suse/werner/.bash_history", O_RDONLY) = 3 open("/suse/werner/.bash_history", O_RDONLY) = 3 --- SIGCHLD (Child exited) @ 0 (0) --- open("/etc/inputrc", O_RDONLY) = 3 open("/suse/werner/.inputrc", O_RDONLY) = 3 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225482 jfunk@funktronics.ca changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | ------- Comment #2 from jfunk@funktronics.ca 2006-12-04 11:01 MST ------- Ok. It does get read on bash -l, but not when I start KDE. None of variables I've set in my .profile are available in a Konsole. If I run bash -l, the variables are available. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225482 werner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO Info Provider| |jfunk@funktronics.ca ------- Comment #3 from werner@novell.com 2006-12-05 02:56 MST ------- Normally a X session is started by xdm/kdm/gdm with the help of /etc/X11/xdm/Xsession. Within this script you'll find a shell function exec_login() which excutes the login shell of the user with the script /etc/X11/xdm/sys.xsession. If the users has its own ~/.xsession of its own ~/.xinitrc this will executed instead. Long words,short sence: this works flawless for me with and without my own ~/.xsession. Please provide more informations, without I'm not able what is different in your personal setup. You may also try a new and therefore virgin user to see if this normally works. Beside this all changes within ~/.profile during a running Xsession is only active after a fresh login or youhave to modify the konsole setup to use a login shell. You may also add a line . $HOME/.profile in ~/.bashrc if you want that all shell, even nologin shells, should know about the newest changes of ~/.profile. Beside this: only environment variables should be set within ~/.profile ... shell functions, shell aliases should always be set within ~/.bashrc because those things will not be exported througout several programs and scripts. For testing you may use the line set -x on the first empty line within /etc/X11/xdm/Xsession and read the log files /var/log/kdm.log and ~/.xsession-errors. Beside this you may add a line export FOOBAR profile to your personal ~/.profile and try to detect _after_ a fresh login yif you can add the line echo $FOOBAR with the result `profile'. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225482 jfunk@funktronics.ca changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|jfunk@funktronics.ca | ------- Comment #4 from jfunk@funktronics.ca 2006-12-05 11:28 MST ------- Ah. It is fine on my local box. I really only noticed the problem after I upgraded a dev server I use a lot through NX. I'm pretty sure my CVSROOT was being set in my .profile before when logging in through NX, but it stopped after I upgraded it. I could be wrong, however. It might have never worked and I was just working on repos I had checked out before I started logging in through NX. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225482 werner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WORKSFORME ------- Comment #5 from werner@novell.com 2006-12-06 03:07 MST ------- Hmmm .. AFAIK NX is used to login over a thin client (X terminal), isn't it? For this you may have to enable the terminal within /etc/X11/xdm/Xservers an also allow port 6000 and above by not using `-nolisten tcp'. As long as the NX connection uses the chooser, XDMCP, and the home from the server it should work in a transparent way, which is, beside speed, the same behaviour as on the local system. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225482 jfunk@funktronics.ca changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | ------- Comment #6 from jfunk@funktronics.ca 2006-12-06 16:00 MST ------- Not quite. NX authenticates over ssh and initiates an X server directed into an X proxy. This allows you to "suspend" a session by disconnecting the NX client from the proxy. Here's what a session looks like, courtesy of pstree (hopefully it won't look too bad): -sshd -o PidFile=/var/run/sshd.init.pid |-sshd | `-sshd | `-nxnode /usr/bin/nxnode --startsession | |-nxnode /usr/bin/nxnode --startsession | | |-nxnode /usr/bin/nxnode --startsession | | | `-nxagent -persistent -D -name ... | | |-nxnode /usr/bin/nxnode --startsession | | `-tee /home/jfunk/.nx/C-arthur-1004-4C88E72D99AEF5DE2FCC5C88D6DC3D6B/session | `-nxnode /usr/bin/nxnode --startsession | `-startkde /opt/kde3/bin/startkde | `-kwrapper ksmserver `-sshd `-sshd `-nxserver /usr/bin/nxserver -c /usr/bin/nxserver I've discovered that it definitely used to work in 10.0 and now it does not. I had to type "export CVS_RSH=ssh" at least 5 times today. :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225482 werner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |werner@novell.com, sndirsch@novell.com AssignedTo|werner@novell.com |sndirsch@novell.com Status|REOPENED |NEW Summary|$HOME/.profile is not read |$HOME/.profile is not read during under FreeNX |during bash startup |(was: $HOME/.profile is not read during bash | |startup) ------- Comment #7 from werner@novell.com 2006-12-07 03:59 MST ------- See `man 5 sshd_config' keyword PermitUserEnvironment and/or add CVS_RSH=ssh to your file ~/.ssh/environment on the remote system. Currently it is not allowed to export the enviroment over a ssh connection due security risks. Beside the problem of using an ssh connection it could be a FreeNX problem of not using a login shell of the user in the same way as the xdm does this with /etc/X11/xdm/Xsession -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225482 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225482 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Minor |Enhancement Priority|P5 - None |P2 - High ------- Comment #8 from sndirsch@novell.com 2006-12-21 09:57 MST ------- Sounds like an enhancement for FreeNX to me. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225482 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 - High |P3 - Medium -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225482 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 - Medium |P5 - None -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225482 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eich@novell.com ------- Comment #9 from sndirsch@novell.com 2007-05-11 01:57 MST ------- JFYI. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225482 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mhopf@novell.com ------- Comment #10 from sndirsch@novell.com 2007-05-12 04:42 MST ------- JFYI, Matthias. This is a bugreport, which is assigned to Egbert/me or with Egbert/me in CC or reported by Egbert/me. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225482#c11
--- Comment #11 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=225482#c12
Stefan Dirsch
participants (1)
-
bugzilla_noreply@novell.com