public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Reconciling users and services
@ 2009-01-17 22:09 Grant
  2009-01-17 23:47 ` Volker Armin Hemmann
  2009-01-18  2:45 ` Norberto Bensa
  0 siblings, 2 replies; 9+ messages in thread
From: Grant @ 2009-01-17 22:09 UTC (permalink / raw
  To: Gentoo mailing list

I have some users on a system and some services.  How can I make sure
only certain users can log into certain services?  Do I need to
explicitly define which users can log into each service?  Are there
different types of users so that some can only log into certain
services?

For example, I know any user that has their shell set to /bin/nologin
can't log into a shell.  How can I check on users' shell settings?

- Grant



^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [gentoo-user] Reconciling users and services
@ 2009-01-18  7:54 Alan McKinnon
  2009-01-18 18:12 ` Grant
  0 siblings, 1 reply; 9+ messages in thread
From: Alan McKinnon @ 2009-01-18  7:54 UTC (permalink / raw
  To: gentoo-user

On Sunday 18 January 2009 00:09:31 Grant wrote:
> I have some users on a system and some services.  How can I make sure
> only certain users can log into certain services?  Do I need to
> explicitly define which users can log into each service?  Are there
> different types of users so that some can only log into certain
> services?
>
> For example, I know any user that has their shell set to /bin/nologin
> can't log into a shell.  How can I check on users' shell settings?
>
> - Grant

To do this you configure each service separately (there is no central 
registry-type thing for this). You don't say what "services" you are 
interested in, so I have to make some assumptions.

apache, samba, ftp servers, all have their own authentication methods. You 
have to research what methods they provide, and choose which is most 
appropriate. For instance, Samba can auth against kerberos/ldap or using a 
local smbpasswd file. For a specific user to be able to access something via 
samba, you ensure they have an entry in AD or a line in smbpasswd.

For more simple local services, you can use user and group permissions. I have 
to restrict cron and wget at work, I find the easiest way is to:
chown root:trusted /usr/bin/wget
chown root:trusted /usr/bin/crontab
users authorized to use wget/cron must then be put in the trusted group.

cron has it's cron.allow and cron.deny files that you can also use.

sshd has config options to limit who can do what in sshd_config.

If you post back with more specifics about what you want to achieve, we can 
assist you better.


-- 
alan dot mckinnon at gmail dot com



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-01-19 19:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-17 22:09 [gentoo-user] Reconciling users and services Grant
2009-01-17 23:47 ` Volker Armin Hemmann
2009-01-18  2:45 ` Norberto Bensa
  -- strict thread matches above, loose matches on Subject: below --
2009-01-18  7:54 Alan McKinnon
2009-01-18 18:12 ` Grant
2009-01-18 21:09   ` Alan McKinnon
2009-01-19 18:33     ` Grant
2009-01-19 18:39       ` kashani
2009-01-19 19:45         ` Grant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox