From owner-freebsd-questions@FreeBSD.ORG Thu Sep 3 15:11:11 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C79A7106566B for ; Thu, 3 Sep 2009 15:11:11 +0000 (UTC) (envelope-from danielby@slightlystrange.org) Received: from mtaout01-winn.ispmail.ntl.com (mtaout01-winn.ispmail.ntl.com [81.103.221.47]) by mx1.freebsd.org (Postfix) with ESMTP id 4DC1D8FC0C for ; Thu, 3 Sep 2009 15:11:10 +0000 (UTC) Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20090903151101.FSZQ6742.mtaout01-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com> for ; Thu, 3 Sep 2009 16:11:01 +0100 Received: from catflap.slightlystrange.org ([82.21.101.171]) by aamtaout03-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20090903151101.BKVO2093.aamtaout03-winn.ispmail.ntl.com@catflap.slightlystrange.org> for ; Thu, 3 Sep 2009 16:11:01 +0100 Received: by catflap.slightlystrange.org (Postfix, from userid 106) id 4E1CA618E; Thu, 3 Sep 2009 16:10:59 +0100 (BST) Received: from torus.slightlystrange.org (torus.slightlystrange.org [10.1.3.50]) by catflap.slightlystrange.org (Postfix) with SMTP id EBADF6152 for ; Thu, 3 Sep 2009 16:10:58 +0100 (BST) Received: by torus.slightlystrange.org (sSMTP sendmail emulation); Thu, 3 Sep 2009 16:10:58 +0100 From: "Daniel Bye" Date: Thu, 3 Sep 2009 16:10:58 +0100 To: freebsd-questions@freebsd.org Message-ID: <20090903151058.GB67705@torus.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <20090903114857.GA635@teddy.fas.com> <20090903122532.GA1604@teddy.fas.com> <4A9FB9E3.6060207@infracaninophile.co.uk> <20090903132256.GA3270@teddy.fas.com> <20090903133335.GA3884@teddy.fas.com> <20090903134107.GA3930@teddy.fas.com> <20090903104257.547e05ce@scorpio.seibercom.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="A6N2fC+uXW/VQSAv" Content-Disposition: inline In-Reply-To: <20090903104257.547e05ce@scorpio.seibercom.net> User-Agent: Mutt/1.4.2.3i X-PGP-Fingerprint: D349 B109 0EB8 2554 4D75 B79A 8B17 F97C 1622 166A X-Operating-System: FreeBSD 8.0-BETA3 i386 X-Cloudmark-Analysis: v=1.0 c=1 a=ehNlctqhnw0A:10 a=VUfPOBp7AAAA:8 a=9lr0zDvHMNQermljOa8A:9 a=PHXFgAiJ7i6gekncfwZJqGUtTFwA:4 a=5hK03km2n30A:10 a=CuceOzDgKMPGqJMV0QwA:9 a=jelaJJowwvCTcRiSD4Ec8lHAEOYA:4 Subject: Re: What invokes cricket on FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Bye List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Sep 2009 15:11:12 -0000 --A6N2fC+uXW/VQSAv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 03, 2009 at 10:42:57AM -0400, Jerry wrote: > On Thu, 3 Sep 2009 09:41:07 -0400 > stan wrote: > > > OK, I found in the cron man page the following: > > >=20 > > > Before running a command from a per-account crontab file, cron > > > checks the status of the account with pam(3) and skips the command > > > if the account is unavailable, e.g., locked out or expired. > > >=20 > > > So, now the question is, how do I unlock that user? > > >=20 > > This gets strnager. I found the pw cammand, which should do thatm but: > >=20 > > pnoc# pw unlock cricket > > pw: user 'cricket' is not locked > >=20 > > So, how come: > >=20 > > pnoc# su - cricket > > This account is currently not available. >=20 > Something appears to be broken. You might try a new installation. The > port creates the user and group if it does not exist. No, this is the expected behaviour when an account has /sbin/nologin as its shell. Matthew has already offered a solution to this problem,=20 several replies ago. As root: # su -m cricket Which will give you a basic prompt belonging to cricket. Then: $ crontab -e Or, in one command, as root: # crontab -u cricket -e In either case, you shoule be left with an editor session in which you can create or modify user cricket's crontab. If not, tell us the error message. Dan --=20 Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --A6N2fC+uXW/VQSAv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkqf3IIACgkQixf5fBYiFmqRBgCglCHwhJLFUWGPPDmgLZu7I4wK J1MAn3cKGHBS3HAzxALqT1xPeGk6wC59 =m9Al -----END PGP SIGNATURE----- --A6N2fC+uXW/VQSAv--