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
[-- Attachment #1 --]
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:
> > >
> > > 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.
> > >
> > > So, now the question is, how do I unlock that user?
> > >
> > This gets strnager. I found the pw cammand, which should do thatm but:
> >
> > pnoc# pw unlock cricket
> > pw: user 'cricket' is not locked
> >
> > So, how come:
> >
> > pnoc# su - cricket
> > This account is currently not available.
>
> 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,
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
--
Daniel Bye
_
ASCII ribbon campaign ( )
- against HTML, vCards and X
- proprietary attachments in e-mail / \
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (FreeBSD)
iEYEARECAAYFAkqf3IIACgkQixf5fBYiFmqRBgCglCHwhJLFUWGPPDmgLZu7I4wK
J1MAn3cKGHBS3HAzxALqT1xPeGk6wC59
=m9Al
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090903151058.GB67705>
