From owner-freebsd-questions Tue Oct 12 5: 8:42 1999 Delivered-To: freebsd-questions@freebsd.org Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id 788D414EB1 for ; Tue, 12 Oct 1999 05:08:19 -0700 (PDT) (envelope-from sheldonh@axl.noc.iafrica.com) Received: from sheldonh (helo=axl.noc.iafrica.com) by axl.noc.iafrica.com with local-esmtp (Exim 3.037 #1) id 11b0io-000Pd2-00; Tue, 12 Oct 1999 14:08:02 +0200 From: Sheldon Hearn To: Cyril Brion Cc: freebsd-questions@FreeBSD.ORG Subject: Re: help please In-reply-to: Your message of "Tue, 12 Oct 1999 13:47:37 +0200." <38031FD9.D22680E@saios.com> Date: Tue, 12 Oct 1999 14:08:02 +0200 Message-ID: <98519.939730082@axl.noc.iafrica.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 12 Oct 1999 13:47:37 +0200, Cyril Brion wrote: > I can create a new user with adduser, but when the user is logged with > his log name, he cannot do operations like create a file, or compile a > .c file,... because its directory is write protected. So the obvious question is _why_ is the user's home directory not writable to the user? You're the only person who can answer this. :-) Possible answers are: 1) You selected a read-only filesystem for the user's home directory. Don't do that. :-) 2) You selected an invalid home directory for the user. Unlikely, but make sure that the home directory exists. You can do this by searching the file /etc/passwd for the username: grep ^username: /etc/passwd e.g.: grep ^sheldonh: /etc/passwd sheldonh:*:1000:0:Sheldon Hearn:/home/sheldonh:/usr/local/bin/bash Check the second-last field. You can check the permissions of your user's home directory with this command: ls -ld /path/to/home/directory e.g.: ls -ld /home/sheldonh drwxr-xr-x 21 sheldonh wheel 2048 Oct 12 14:06 /home/sheldonh > to change this manually from root? As root, you can change the user's home directory with the ``chpass'' command: chpass username Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message