Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Sep 2009 16:10:58 +0100
From:      "Daniel Bye" <danielby@slightlystrange.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: What invokes cricket on FreeBSD
Message-ID:  <20090903151058.GB67705@torus.slightlystrange.org>
In-Reply-To: <20090903104257.547e05ce@scorpio.seibercom.net>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <stanb@panix.com> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090903151058.GB67705>