Operating System - HP-UX
1752604 Members
4465 Online
108788 Solutions
New Discussion юеВ

Re: sendmail - who am I really ?

 
Michael Tully
Honored Contributor

Re: sendmail - who am I really ?

ha... some fun... This is starting to drive me crazy...

I've already run the *ck progs, and we don't have a trusted system. It is not good opening another session, as the problem does not get reproduced.
no env changes, no strange su's....

no wtmp/utmp corruption

the tusc output.... Well that didn't really show anything...

knock yourself out.....

Its actually beer time, I'm outta here, I check a bit later.

Cheers
Michael
Anyone for a Mutiny ?
Robert-Jan Goossens
Honored Contributor

Re: sendmail - who am I really ?

Michael,

I've got the same problem on sun/solaris after implementing logical connection security, root can only login to system on local console, su works fine but mail will be sent with original login id.

Called Sun's crc, but they could not give me an answer ?

If you get any answers from your lady's cards PLEASE let me know.

I'll start looking in to a crystal bowl for the mean time.

Kind regards,

Robert-Jan.
Michael Tully
Honored Contributor

Re: sendmail - who am I really ?

Robert-Jan,

I think you've mis-understood the question....

The output from tusc, doesn't look like it made it, so I'll re-post it tomorrow AM my time. I'm certainly all for more suggestions....

Michael
Anyone for a Mutiny ?
Christian Gebhardt
Honored Contributor

Re: sendmail - who am I really ?

Hi

I had the same effect on some machines and I answered to thread
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2d9f93e260b0d611abdb0090277a778c,00.html

In our case it's a problem with utmp/wtmp files and login via ssh:

whoami --> root
who am i --> root
id --> uid=0(root) gid=...
logname -->

Solution:

empty /etc/utmp /etc/utmpx /var/adm/wtmpx /var/adm/wtmp
and reboot the machine

Chris

Michael Tully
Honored Contributor

Re: sendmail - who am I really ?

Here is the tusc output for anyone that is interested.

Unfortunately we do not use 'ssh' for some of our systems, this is one. None of the Xtmp file are corrupted.

That lady with the deck of cards is lokking better all the time.....

Anyone for a Mutiny ?
John Palmer
Honored Contributor

Re: sendmail - who am I really ?

What type of crystal ball do you need to read that attachment Michael? ;-)
Christian Gebhardt
Honored Contributor

Re: sendmail - who am I really ?

Hi
Nethertheless
what's the output from 'logname'?

logname uses the same routine to show the user as sendmail.

Chris

My grandma is very familiar with cards ...
Christian Gebhardt
Honored Contributor

Re: sendmail - who am I really ?

Hi
netherless, what's the output from 'logname' ?
logname uses the same routines as sendmail to fetch the user.

Chris

My grandma is very familiar with cards ...
Elif Gius
Valued Contributor

Re: sendmail - who am I really ?

Maybe you have a corrupt utmp/wtmp file.Create new one.

do a backup of the files, then
cp /dev/null /etc/utmp
...

logoutand then login again,if you use "logname" ,it will now give the correct user

Attention: Your current logon-information will be lost (so it would be the best that all users logout from the system)
Michael Tully
Honored Contributor

Re: sendmail - who am I really ?

Unfortunately guys, this one one of my main production warehouse systems, so I cannot just get all users to log out....
There is no problem with either my logname or the Xtmp files (mentioned previously)

Thanks for the assistance, but this system will reboot tomorrow when everyone is asleep. (meaning the session I had will terminate) I'll keep an eye on it and see what happens next week. Unless somebody has something new to add, I'll consider this thread closed.
Anyone for a Mutiny ?