From owner-freebsd-questions Wed Dec 8 18: 3:30 1999 Delivered-To: freebsd-questions@freebsd.org Received: from relay.securify.com (relay.securify.com [207.5.63.61]) by hub.freebsd.org (Postfix) with SMTP id 6521B1555E for ; Wed, 8 Dec 1999 18:03:27 -0800 (PST) (envelope-from jill@securify.com) Received: by relay.securify.com; id SAA05277; Wed, 8 Dec 1999 18:02:28 -0800 Received: from unknown(10.5.63.6) by relay.securify.com via smap (V5.5) id xma005256; Wed, 8 Dec 99 18:01:49 -0800 Received: from securify.com (vg-49.securify.com [10.5.63.49]) by dude.securify.com (8.8.7/8.8.7) with ESMTP id SAA21446 for ; Wed, 8 Dec 1999 18:01:48 -0800 Message-ID: <384F0D99.492DD70@securify.com> Date: Wed, 08 Dec 1999 18:02:01 -0800 From: Jill R Pelavin Reply-To: jill@securify.com Organization: isg X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.5-15 i686) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: pw problem- can't get it to work Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm trying to use pw to add users (as I want to call this in a script) and I am experimenting with it on the command line. for example, I have typed: # pw useradd jill -m -s bash the output I get is: Password for jill is: anaoentuhaotuenh pw: no default shell available or defined then I try to cd to the homedir that -m was supposed to create. # cd /home/jill No such file or directory and when I use the command: su -- jill I get the error: su: unknown login : jill does anybody know why this is happening? my pw.conf file, which is located in /etc, is included below (i generated the file with the command pw useradd -D) I'm running freebsd 3.3 thanks! -Jill --------------------------------------------------- # # pw.conf - user/group configuration defaults # # Password for new users? no=nologin yes=loginid none=blank random=random defaultpasswd = "random" # Reuse gaps in uid sequence? (yes or no) reuseuids = "no" # Reuse gaps in gid sequence? (yes or no) reusegids = "no" # Path to the NIS passwd file (blank or 'no' for none) nispasswd = # Obtain default dotfiles from this directory skeleton = "/usr/share/skel" # Mail this file to new user (/etc/newuser.msg or no) newmail = "no" # Log add/change/remove information in this file logfile = "/var/log/userlog" # Root directory in which $HOME directory is created home = "/home" # Colon separated list of directories containing valid shells shellpath = "/bin","usr/local/bin" # Space separated list of available shells (without paths) shells = "bash","sh","csh" # Default shell (without path) defaultshell = "bash" # Default group (leave blank for new group per user) defaultgroup = "" # Extra groups for new users extragroups = # Default login class for new users defaultclass = "" # Range of valid default user ids minuid = 1000 maxuid = 32000 # Range of valid default group ids mingid = 1000 maxgid = 32000 # Days after which account expires (0=disabled) expire_days = 0 # Days after which password expires (0=disabled) password_days = 0 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message