🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Tom Suzda Wed, 30 Sep 1998 00:00
mail from leafnode?
#31885
Author: Tom Suzda
Date: Wed, 30 Sep 1998 00:00
16 lines
1224 bytes
I set up a news server using leafnode 2 days ago. Works fine for what I
need it for, but I have probably a stupid question.

I check my logs in the morning to see what has happened overnight, errors,
etc, and I notice that user news sent user news mail. I can't quite figure
out how to read mail for user news. I log in as root, su to news and try
mail, but it says no mail for root. I can see the mail in /var/spool/mail
and I can less it to see it, which shows me it was the cron job of texpire
expiring the following articles...... How do I read the mail as mail?

Thanks for any assistance

Tom


Re: mail from leafnode?
#31887
Author: Dan Foster
Date: Wed, 30 Sep 1998 00:00
21 lines
1305 bytes
In article <slrn714jqs.109.fluffy@fluffy.meow.org>,
Fluffy <fluffy@meow.org> wrote:
>Meow meow Tom Suzda meow meow meow suzda@execpc.com meow Kitty?
>
>> I check my logs in the morning to see what has happened overnight, errors,
>> etc, and I notice that user news sent user news mail. I can't quite figure
>> out how to read mail for user news. I log in as root, su to news and try
>> mail, but it says no mail for root.
>
>Log in as news for real.  su isn't quite the same thing because it
>doesn't set your environment for that.  While you're in there, you

Not necessarily.

# su - news

Will set the environment just as if you had logged in to 'news'.

-Dan

Re: mail from leafnode?
#31896
Author: Fluffy
Date: Wed, 30 Sep 1998 00:00
14 lines
1516 bytes
Meow meow Tom Suzda meow meow meow suzda@execpc.com meow Kitty?

> I check my logs in the morning to see what has happened overnight, errors,
> etc, and I notice that user news sent user news mail. I can't quite figure
> out how to read mail for user news. I log in as root, su to news and try
> mail, but it says no mail for root.

Log in as news for real.  su isn't quite the same thing because it
doesn't set your environment for that.  While you're in there, you
might want to forward the news account's mail to an account you
actually log into, if news isn't one of them.


Re: mail from leafnode?
#31905
Author: steve
Date: Thu, 01 Oct 1998 00:00
31 lines
2452 bytes
By the way, what you're seeing is the result of the nightly cron jobs being
executed.. like texpire. Cron takes the stdout from the application and
forwards it all as an email sent from and to the userid that the cron job ran
as. In this case, the job ran as news, so news sent itself mail which
contained the output of the expire job (most likely).

A better idea is to make sure /etc/aliases (someone check this fname!) has

news: root
root: <youruserid>

That way, when YOU log in, YOU get all mail that the system tried to send to
root (various security violations or error conditions) and the mail that news
tried to send to itself gets rerouted to root, which in turn gets rerouted to
you. If you're aiming to be a professional UNIX admin one day, try to get in
the habit of only rerouting root to yourself, for instance, because in the
real world, it'd be one big PITA to reroute all of the userids (there's more
than just news.. look at /etc/passwd one day) to the new person who gets root
mail when you're done with it. Just rerouting root, or adding one more name
to the root rerouting list is much easier.

--sj
> > >> I check my logs in the morning to see what has happened overnight, errors,
> > >> etc, and I notice that user news sent user news mail. I can't quite figure
> > >> out how to read mail for user news. I log in as root, su to news and try
> > >> mail, but it says no mail for root.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

Re: mail from leafnode?
#31915
Author: Caleb Stephens
Date: Thu, 01 Oct 1998 00:00
32 lines
1666 bytes
I agree with Dan, and another way to do this is to use the -l option with su:
 su -l news
other wise you will keep the same environment.  You do not have to be root to do
that either.
Caleb

Dan Foster wrote:

> In article <slrn714jqs.109.fluffy@fluffy.meow.org>,
> Fluffy <fluffy@meow.org> wrote:
> >Meow meow Tom Suzda meow meow meow suzda@execpc.com meow Kitty?
> >
> >> I check my logs in the morning to see what has happened overnight, errors,
> >> etc, and I notice that user news sent user news mail. I can't quite figure
> >> out how to read mail for user news. I log in as root, su to news and try
> >> mail, but it says no mail for root.
> >
> >Log in as news for real.  su isn't quite the same thing because it
> >doesn't set your environment for that.  While you're in there, you
>
> Not necessarily.
>
> # su - news
>
> Will set the environment just as if you had logged in to 'news'.
>
> -Dan




Re: mail from leafnode?
#31946
Author: Tom Suzda
Date: Fri, 02 Oct 1998 00:00
60 lines
3055 bytes
Great! That was exactly what I was looking for, except when I try to use
the su -l news, I get a news: news: No such file or directory. When I try
to login as news directly, I don't know what the password is. I've tried
all the ones that I know, but it wo'nt accept any of them. News was an
account put in by the Slackware distribution when I loaded it on the
system. Do I need to delete it and add a new news account?

I'll try the alias way of doing things and see where I get. Thanks again.

Tom


steve@slac.com wrote in article <6v0q6t$mjs$1@nnrp1.dejanews.com>...
> By the way, what you're seeing is the result of the nightly cron jobs
being
> executed.. like texpire. Cron takes the stdout from the application and
> forwards it all as an email sent from and to the userid that the cron job
ran
> as. In this case, the job ran as news, so news sent itself mail which
> contained the output of the expire job (most likely).
> 
> A better idea is to make sure /etc/aliases (someone check this fname!)
has
> 
> news: root
> root: <youruserid>
> 
> That way, when YOU log in, YOU get all mail that the system tried to send
to
> root (various security violations or error conditions) and the mail that
news
> tried to send to itself gets rerouted to root, which in turn gets
rerouted to
> you. If you're aiming to be a professional UNIX admin one day, try to get
in
> the habit of only rerouting root to yourself, for instance, because in
the
> real world, it'd be one big PITA to reroute all of the userids (there's
more
> than just news.. look at /etc/passwd one day) to the new person who gets
root
> mail when you're done with it. Just rerouting root, or adding one more
name
> to the root rerouting list is much easier.
> 
> --sj
> > > >> I check my logs in the morning to see what has happened overnight,
errors,
> > > >> etc, and I notice that user news sent user news mail. I can't
quite figure
> > > >> out how to read mail for user news. I log in as root, su to news
and try
> > > >> mail, but it says no mail for root.
> 
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own  
 
> 

Re: mail from leafnode?
#31971
Author: brian moore
Date: Sun, 04 Oct 1998 00:00
21 lines
1875 bytes
On 2 Oct 1998 13:03:05 GMT, 
 Tom Suzda <suzda@execpc.com> wrote:
> Great! That was exactly what I was looking for, except when I try to use
> the su -l news, I get a news: news: No such file or directory. When I try
> to login as news directly, I don't know what the password is. I've tried
> all the ones that I know, but it wo'nt accept any of them. News was an
> account put in by the Slackware distribution when I loaded it on the
> system. Do I need to delete it and add a new news account?

Why not just change the password to one you know?

(Odds are there is no password: not a 'null' password, but no password
will let you login.)

-- 
Brian Moore                         | "The Zen nature of a spammer resembles
      Sysadmin, C/Perl Hacker       |  a cockroach, except that the cockroach
      Usenet Vandal                 |  is higher up on the evolutionary chain."
      Netscum, Bane of Elves.                   Peter Olson, Delphi Postmaster

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