However, suppose I gave accounts to half a dozen friends, and one of
them started posting like an asshole. Is there any way to tie a post
back to a Unix username as the server admin? I'm kinda assuming no,
because the TCP connection basically anonymizes it, right?
them started posting like an asshole. Is there any way to tie a post
back to a Unix username as the server admin? I'm kinda assuming no,
because the TCP connection basically anonymizes it, right?
John wrote:
them started posting like an asshole. Is there any way to tie a post
back to a Unix username as the server admin? I'm kinda assuming no,
because the TCP connection basically anonymizes it, right?
ident (RFC 1413) may help
ident (RFC 1413) may helpIIRC this only works until the connection of the user is closed.
(one of) the problem(s) with ident is that one can only trust answers
from systems where you run the service (no issue here as the connection
are comming from localhost) and that the service which may get abused
(nntpd) needs to do the lookup (don't know if nnrpd still does).
Urs Janßen <[email protected]> writes:
(one of) the problem(s) with ident is that one can only trust answers
from systems where you run the service (no issue here as the connection
are comming from localhost) and that the service which may get abused
(nntpd) needs to do the lookup (don't know if nnrpd still does).
Yeah, there's still an authprog to do ident lookups. That's a good
thought; that hadn't occurred to me as a possible solution.
This is a great idea and I've enabled it to *apparent* success (it
logged an error message about the ident daemon rejecting connections
until I actually installed identd, now it doesn't log), but I don't see
any logs letting me know that a user has posted, just the usual e.g.
nnrpd[2735057]: localhost post ok <[email protected]>
Is there a log kept elsewhere after authentication?
In <[email protected]> on Wed, 19 Jul 2023 04:05:25,
John wrote:
This is a great idea and I've enabled it to *apparent* success (it
logged an error message about the ident daemon rejecting connections
until I actually installed identd, now it doesn't log), but I don't see
any logs letting me know that a user has posted, just the usual e.g.
nnrpd[2735057]: localhost post ok <[email protected]>
Is there a log kept elsewhere after authentication?
! this is based on inn < 2.3 knowledge (the last version with local spool
! and the old overview names) some things may have changed (a lot).
the username is just logged on connection (in news.notice) you have to
track the pid afterwards, e.g.:
akw% grep urs /var/log/news/news.notice
Jul 19 06:21:59 akw nnrpd[19289]: akw.example.org user urs
akw% grep 19289 /var/log/news/news.notice| grep post
Jul 19 06:22:28 akw nnrpd[19289]: akw.example.org post ok <u97oe2$iqp$[email protected]>
Jul 19 06:23:40 akw nnrpd[19289]: akw.example.org posts received 1 rejected 0
It seems I spoke too soon... I thought adding "res" would resolve the username without necessarily requiring further authentication, but Gnus
is prompting me for a password and I see this in my log file:
nnrpd[2796111]: localhost (::1) connect - port 119
nnrpd[2796111]: Reading access from /etc/news/readers.conf
nnrpd[2796111]: localhost res starting resolver ident
nnrpd[2796111]: localhost res resolver successful, user john
nnrpd[2796111]: localhost res john
nnrpd[2796111]: localhost no_match_user john <localhost>
nnrpd[2796111]: localhost no_access_realm
Is there a way to do the username resolution but *not* prompt for a
password at all?
John <[email protected]> writes:
It seems I spoke too soon... I thought adding "res" would resolve the
username without necessarily requiring further authentication, but Gnus
is prompting me for a password and I see this in my log file:
nnrpd[2796111]: localhost (::1) connect - port 119
nnrpd[2796111]: Reading access from /etc/news/readers.conf
nnrpd[2796111]: localhost res starting resolver ident
nnrpd[2796111]: localhost res resolver successful, user john
nnrpd[2796111]: localhost res john
nnrpd[2796111]: localhost no_match_user john <localhost>
nnrpd[2796111]: localhost no_access_realm
Is there a way to do the username resolution but *not* prompt for a
password at all?
You have to make sure there's an access stanza that matches all possible identities returned from the auth stanza. In your case, presumably that means you want an access stanza with users: "*".
The way readers.conf works is that the auth block assigns an identity and
the access block that matches that identity says what permissions the user has. Presumably previously you had an auth block that matched users from localhost and assigned the <localhost> identity and had an access stanza
that matched that identity, but now that you're using ident, the identity
is now something like "john" instead of "<localhost>" and it's not
matching any more.
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 153:00:07 |
| Calls: | 12,091 |
| Calls today: | 4 |
| Files: | 15,000 |
| Messages: | 6,517,664 |