Date: Sun, 2 Jun 1996 14:46:55 GMT From: James Raynard <fqueries@jraynard.demon.co.uk> To: sahmad@interlog.com Cc: questions@freebsd.org Subject: Re: FreeBSD question Message-ID: <199606021446.OAA11429@jraynard.demon.co.uk> In-Reply-To: <199606020325.XAA18803@gold.interlog.com> (sahmad@interlog.com)
next in thread | previous in thread | raw e-mail | index | archive | help
> Dear Support, I am having some difficulty with FreeBSD 2.10 in that > whenever Just a quick clarification here - this isn't a Support Desk, just a mailing list where a few people try and help out in their spare time. > I log in as root, I cannot run X-windows via the startx command. The error > I get is 'command not found'. However, when I log in as any other user and This is because the directory where the startx binary lives is not in root's path. You can fix this by editing root's .cshrc file to add /usr/X11R6/bin to the list of directories in the path entry. However, it's normally regarded as good practice not to run commands as root unless you really have to - any mistakes can be very expensive! 8-) Most people start X as themselves and then open a xterm, use the 'su' command to become root in that xterm and do everything else as themselves - the root xterm's always there if you need it. > type startx it works. I have tried going to the directory containing the > startx file/command but it doesnt work as long as I'm longed in as root. A > few other commands also fail to work when I login as root. This is despite > the fact that the files have rwx permissions for all users. Unlike MSDOS, the current directory is not searched in Unix unless it's in the path. In fact, root should *never* have the current directory in the path, as it is a potential security hole. -- James Raynard, Edinburgh, Scotland | http://freefall.freebsd.org/~jraynard/ james@jraynard.demon.co.uk | jraynard@freebsd.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606021446.OAA11429>