From owner-freebsd-questions Wed May 3 2:22:12 2000 Delivered-To: freebsd-questions@freebsd.org Received: from rsys001a.roke.co.uk (rsys001a.roke.co.uk [193.118.192.110]) by hub.freebsd.org (Postfix) with ESMTP id CEDF837B8F5 for ; Wed, 3 May 2000 02:22:07 -0700 (PDT) (envelope-from mick.gallagher@roke.co.uk) Received: by rsys001a.roke.co.uk with Internet Mail Service (5.5.2650.21) id ; Wed, 3 May 2000 10:21:56 +0100 Message-ID: From: "Gallagher, Mick" To: "'Chris.Smith@raytheon.co.uk'" , 'Christoph Sold' , 'Lowell Gilbert' Cc: "'questions@freebsd.org'" Subject: Re: Cannot login as root using xdm in 3.4R Date: Wed, 3 May 2000 10:21:55 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi All, Thanks for your help with this problem. Just thought I'd send this note to the list so people can find this information in the question archives. The problem seemed to be a result of both the contents of the .xsession file, and the shell I was using at the time. When logging in as a normal user, there was no problem with going through xdm. The .xsession file consisted of one line: exec startkde; and the default shell for the user was bourne. However, this didn't work so well when logging in as root. The .xsession file was the same, but the default shell was csh. (The contents of .xsession-errors read something like 'can't find startkde'). I can only presume that 'exec' within csh spawned a subshell, and in this case $PATH was not defined. This isn't the whole answer, however. I changed root's .xsession file to something like the following: #!/bin/csh exec startkde Surprisingly, this worked; even though I mistakenly included 'exec' in my revised .xsession file. In this instance, 'exec' could not have spawned another shell with no path defined! Although its all working now, the reason why is still a mystery. And anyway, as Lowell pointed out, perhaps I shouldn't be running X as root anyhow! Thanks for your help. Mick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message