public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-dev@robin.gentoo.org
Subject: Re: [gentoo-dev] PAM related: pam_console ?
Date: Thu, 31 Mar 2005 12:38:48 -0800	[thread overview]
Message-ID: <20050331203848.GB10118@curie-int.orbis-terrarum.net> (raw)
In-Reply-To: <200503311517.10772@enterprise.flameeyes.is-a-geek.org>

[-- Attachment #1: Type: text/plain, Size: 2177 bytes --]

On Thu, Mar 31, 2005 at 03:17:06PM +0200, Diego Flameeyes Petten? wrote:
> Anyway I was wondering what pam_console is used for, at the end. It's a way to 
> set up permissions when someone logins at a console. I would never use 
> something like that on a remote server, as anyone which could have a local 
> login can do anything? It also doesn't make sense on a recent user system 
> configured properly, as devfs/udev would take care of permissions, and users 
> needs only to set the group correctly (simpler than using pam_console 
> anyway).
Since you asked, pam_console is extremely useful in shared computer lab
settings. Take this scenario for example:
- User A has logged into a lab workstation from home, and is working on
  his stuff.
- User B physically goes and sits at the workstation, as he wants to
  copy his research materials to a floppy disk (but this applies to any
  other hardware as well; eg modems, cd writers, et al).
- User A should never have access to the floppy disk, as he is not
  physically present. Only User B should have access, because he is
  physically present.
- Using groups in this case (eg the floppy group) is not suitable, as
  both users would have to be in it, and then they could both access
  the floppy drive.
- pam_console applies a set of permissions ONLY for users logged in at
  the local machine, for the duration of their login. So for the
  duration of User B's physical time at the machine, he has access to
  the hardware as allowed by pam_console.

That said, pam_console is a pain to deal with under a few cases:
- it only takes effect for the first concurrent login at a machine (eg
  the first virtual terminal in use, when none of the others are in
  use).
- In some cases it doesn't correctly reset the permissions after the
  user.

I'd say more than 99% of Gentoo users probably have no use for
pam_console, but it still has a place in Gentoo.

-- 
Robin Hugh Johnson
E-Mail     : robbat2@orbis-terrarum.net
Home Page  : http://www.orbis-terrarum.net/?l=people.robbat2
ICQ#       : 30269588 or 41961639
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85

[-- Attachment #2: Type: application/pgp-signature, Size: 241 bytes --]

  parent reply	other threads:[~2005-03-31 20:38 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-31 13:17 [gentoo-dev] PAM related: pam_console ? Diego "Flameeyes" Pettenò
2005-03-31 13:27 ` Mike Frysinger
2005-03-31 13:34   ` Diego "Flameeyes" Pettenò
2005-03-31 13:57     ` Mike Frysinger
2005-03-31 14:26       ` Diego "Flameeyes" Pettenò
2005-03-31 15:01         ` Mike Frysinger
2005-03-31 15:17           ` Diego "Flameeyes" Pettenò
2005-04-06 21:47         ` Martin Schlemmer
2005-04-07  7:34           ` [gentoo-dev] bootstrap.sh and /var/lib/portage/world mathias
2005-04-07 13:08             ` Chris Gianelloni
2005-04-06 21:41   ` [gentoo-dev] PAM related: pam_console ? Martin Schlemmer
2005-03-31 20:38 ` Robin H. Johnson [this message]
2005-03-31 21:09   ` Diego "Flameeyes" Pettenò
2005-03-31 21:35     ` Mike Frysinger
2005-03-31 22:19       ` Diego "Flameeyes" Pettenò
2005-04-06 21:52         ` Martin Schlemmer
2005-04-06 21:40 ` Martin Schlemmer

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=20050331203848.GB10118@curie-int.orbis-terrarum.net \
    --to=robbat2@gentoo.org \
    --cc=gentoo-dev@gentoo.org \
    --cc=gentoo-dev@robin.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