public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Matteo Pillon <matteo.pillon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] x or * in /etc/passwd ?
Date: Mon, 18 Sep 2006 11:19:28 +0200	[thread overview]
Message-ID: <20060918091928.GA25496@neptune.octopus> (raw)
In-Reply-To: <Pine.LNX.4.64.0609181003350.30416@jmaa.math.ist.utl.pt>

On Mon, Sep 18, 2006 at 10:09:03AM +0100, Jorge Almeida wrote:
> I've seen somewhere a '*' in the password field of non-human users. I
> think this is supposed to mean that user can't login. However, I didn't
> find anything like that in gentoo's /etc/passwd (e.g., for user cron or
> user sshd). Can someone comment on this matter? Is * deprecated? Of
> course, these non-human users have /bin/false as shell, but extra
> precautions wouldn't hurt...
> Am I seeing something wrong?

Passwords are stored in /etc/shadow for security reasons:
 -rw-r--r-- /etc/passwd
 -rw------- /etc/shadow

>From shadow(5) manpage:
If the password field contains some string that is not valid result of
crypt(3), for instance ! or *, the user will not be able to use a unix
password to log in, subject to pam(7).

Bye.

-- 
 * Pillon Matteo
-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2006-09-18  9:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-18  9:09 [gentoo-user] x or * in /etc/passwd ? Jorge Almeida
2006-09-18  9:19 ` Matteo Pillon [this message]
2006-09-18  9:26   ` Jorge Almeida

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060918091928.GA25496@neptune.octopus \
    --to=matteo.pillon@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox