Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Oct 1998 18:36:11 -0800 (AKDT)
From:      Steve Howe <groggy@iname.com>
To:        Ghulum Dastgir <Ghulam_Dastgir@uk.ibm.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: new users and headaches
Message-ID:  <Pine.BSF.3.96.981004182419.478F-100000@abc.xyz.net>
In-Reply-To: <5060100024178032000002L022*@MHS>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 4 Oct 1998, Ghulum Dastgir wrote:

> after adding a new user I see that there is nothing in the new user's home
> directory. So when I try starting X windows (as the new user) with startx/xinit

newer versions of FBSD list dotfiles with "ls",
however, since you do not list your version,
try "ls -a" in your users directories.
if you used "adduser" to add users,
you should have basic init files
(dotfiles) by default.

> it says command not found (X already works as root).

if X works as root, then check all your permissions.
X doesn't require any init files in a users home
directory via "startx".  open up startx and make
sure it, and everything inside, has the correct
permissions.  if it works as root, it works.
also check your PATH variable.

> Given that i have nothing in the new user's home directory does this probably
> explain why I can't start X? I thought that using adduser automatically copied

no.

> over the basic, already installed utilities from root to the new user. But this

it copies them from a "skeleton" directory, not /root
see /usr/share/skel.

> does not appear to be the case.
> Why?

you may have answered "no" to adduser's query,
or you may have deleted the skel directory/files.

> So do I now have to go about copying everything that i use in root to the new
> user? This would include X, emacs, gcc etc in my case.

this is a bad question.  most of your work should be
done as a user.  only use root to edit config files,
and maybe check/perform system related functions.

> Also when i echo $PATH as this new user  i get /usr/bin:/bin. Does this also
> explain things.

yes.  this explains a lot.  startx is in /usr/X11R6/bin.
it's always good to study what is involved in firing
up a UNIX system first.  it's more frustrating to
backtrack (ie, playing around in userland until
you have a problem).


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.981004182419.478F-100000>