Thread View: news.software.nntp
2 messages
2 total messages
Started by Krzysztof Trybowski
Sun, 17 Apr 2005 21:11
INN: newbie questions
Author: Krzysztof Trybowski
Date: Sun, 17 Apr 2005 21:11
Date: Sun, 17 Apr 2005 21:11
53 lines
3319 bytes
3319 bytes
Hello all,
I have some questiont that were not answered by reading readers.conf, if
you could help a bit I'd appreciate.
I have generated the password file for users accessing my nntp
server (done so using htpasswd) and created an auth group that
looks like:
auth "everybody" {
auth: "ckpasswd -f /etc/news/users"
default: "public"
}
Now, if later I also want to include users from /etc/shadow, should
I just add another auth: with "ckpasswd -s"? This seems to be true,
however there are two things to consider. How big impact on system's
security does that have? And I noticed that my /etc/shadow uses
different way of hashing passwords -- they are longer and start with
$1$. Could that be MD5? Will ckpasswd deal with such passwords? This
hashing seems to be better, so maybe I should use it also for
/etc/news/users? I tried to generate /etc/news/users2, but I didn't
manage to get the results compatible with what I see in shadow. The
closest I get are strings that start with $apr1$ (htpasswd -m).
What if I wanted to use an sql database instead of /etc/news/users?
Should I use something other than ckpasswd and if so, then what?
Is there a way to have "access" groups "combined" (or should I say
inheritable). Let's imagine I have:
access "public" {
users "*"
read: "xxx.public, xxx.announcements"
post: "xxx.public"
}
access "user1" {
users: "joe"
read: "xxx.privat"
post: "xxx.privat, xxx.announcements"
}
I'd like Joe be able to read xxx.public and post to it, but without stating
it in his read: and post: entries. Is there a way to make access "user1"
inherit also what is true for access "public". Otherwise as the number of
groups rises, configuring this will become a nightmare :/.
Is there a way to format read: or post: directives so that they tell "all
groups *except* for ..."?
TIA, regards.
Re: INN: newbie questions
Author: Russ Allbery
Date: Sun, 17 Apr 2005 21:20
Date: Sun, 17 Apr 2005 21:20
80 lines
4247 bytes
4247 bytes
Krzysztof Trybowski <trybowski@gazeta.pl.invalidd> writes:
> I have generated the password file for users accessing my nntp
> server (done so using htpasswd) and created an auth group that
> looks like:
> auth "everybody" {
> auth: "ckpasswd -f /etc/news/users"
> default: "public"
> }
> Now, if later I also want to include users from /etc/shadow, should
> I just add another auth: with "ckpasswd -s"?
Ideally, you should build ckpasswd with PAM support and manage this
through the system PAM configuration, since that's really the most
flexible and most secure way of doing things. But other than that, yes,
you'd add ckpasswd -s. You may need to make ckpasswd setgid shadow or
even setuid root in order for this to work on your system, depending on
what permissions are needed to read the shadow file.
> This seems to be true, however there are two things to consider. How
> big impact on system's security does that have?
Well, you're allowing people to send their passwords over an NNTP
connection, so I'd say you need to make sure you're either using SSL or
you really trust your network. You're also trusting the security of the
ckpasswd program, although it's pretty small and straightforward.
> And I noticed that my /etc/shadow uses different way of hashing
> passwords -- they are longer and start with $1$. Could that be MD5?
> Will ckpasswd deal with such passwords?
No, it won't.
If you need to use MD5 passwords, you have to use PAM. ckpasswd (other
than via PAM) only supports crypt().
> What if I wanted to use an sql database instead of /etc/news/users?
> Should I use something other than ckpasswd and if so, then what?
There are PAM modules to do this, but yes, if you can't use PAM, you'll
need to use a different program. INN CURRENT has an authmysql program in
contrib that would probably work.
> Is there a way to have "access" groups "combined" (or should I say
> inheritable). Let's imagine I have:
> access "public" {
> users "*"
> read: "xxx.public, xxx.announcements"
> post: "xxx.public"
> }
> access "user1" {
> users: "joe"
> read: "xxx.privat"
> post: "xxx.privat, xxx.announcements"
> }
> I'd like Joe be able to read xxx.public and post to it, but without
> stating it in his read: and post: entries. Is there a way to make access
> "user1" inherit also what is true for access "public". Otherwise as the
> number of groups rises, configuring this will become a nightmare :/.
Unfortunately, no. readers.conf doesn't handle fine-grained permission
sets for individual users that well; if you have fairly complex rules of
that type, you probably want to express them in Perl or Python instead and
use the embedded hooks for that.
> Is there a way to format read: or post: directives so that they tell
> "all groups *except* for ..."?
Yes: *,!xxx.privat
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads