OpenVZ Forum


Home » General » Support » VPS Problem -- Users logged in
VPS Problem -- Users logged in [message #2373] Fri, 31 March 2006 13:18 Go to next message
ttucholka is currently offline  ttucholka
Messages: 12
Registered: January 2006
Junior Member
With all the VPS's I have, if you login and do a w to see who is logged in, it always says there are 0 users logged in -- even if there are 5 users on.


07:10:57 up 17:27, 0 users, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT


any way to fix this to properly display who is logged in?
Re: VPS Problem -- Users logged in [message #2375 is a reply to message #2373] Fri, 31 March 2006 13:23 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Can you please file a bug report for that? It looks like this is a bug somewhere... Do not forget to specify your arch and template.

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: VPS Problem -- Users logged in [message #2378 is a reply to message #2373] Fri, 31 March 2006 15:43 Go to previous messageGo to next message
scooter is currently offline  scooter
Messages: 38
Registered: December 2005
Location: Texas
Member
Actually its something with openssh for some reason, noticed this even on RHEL core servers I have.

Scooter


Scooter Harris
Re: VPS Problem -- Users logged in [message #2385 is a reply to message #2378] Sun, 02 April 2006 10:12 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

If you would find a submitted bug report in red hat's bugzilla or somewhere else that would be nice. Or just submit a bug report to RH yourself...

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: VPS Problem -- Users logged in [message #2389 is a reply to message #2385] Sun, 02 April 2006 15:30 Go to previous messageGo to next message
ttucholka is currently offline  ttucholka
Messages: 12
Registered: January 2006
Junior Member
http://bugzilla.openvz.org/show_bug.cgi?id=124
Re: VPS Problem -- Users logged in [message #2622 is a reply to message #2373] Tue, 11 April 2006 21:52 Go to previous messageGo to next message
BeyondCreation is currently offline  BeyondCreation
Messages: 3
Registered: April 2006
Location: Hampshire, UK
Junior Member

I have fixed this issue with a custom kernel, it required two options to be enabled and then custom compiled with rpmbuild.

I have a copy of the following kernel's;

Enterprise
Original
Smp

If you need a copy of any of the above, drop me an email to the address in my signature, and i'll send over a copy of the kernel.

Regards,


--
BeyondCreation
Shared, Reseller & VPS Hosting Solutions

E: mail@beyondcreation.co.uk
W: http://www.beyondcreation.co.uk
Re: VPS Problem -- Users logged in [message #2627 is a reply to message #2622] Wed, 12 April 2006 08:28 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

which options are you talking about? can you provide the details please?


http://static.openvz.org/userbars/openvz-developer.png
Re: VPS Problem -- Users logged in [message #2631 is a reply to message #2373] Wed, 12 April 2006 13:15 Go to previous messageGo to next message
BeyondCreation is currently offline  BeyondCreation
Messages: 3
Registered: April 2006
Location: Hampshire, UK
Junior Member

Hello,

You have to enable this to 'y';

CONFIG_AUDIT=y

And just underneath the above, copy the following into the kernel config;

CONFIG_AUDITSYSCALL=y

Hope that helps


--
BeyondCreation
Shared, Reseller & VPS Hosting Solutions

E: mail@beyondcreation.co.uk
W: http://www.beyondcreation.co.uk
Re: VPS Problem -- Users logged in [message #2632 is a reply to message #2373] Wed, 12 April 2006 14:22 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
w command shows only that logins, that are registered in utmp file.
See more information in manpage on utmp.

AFAIK, some implementaitions of openssh and other login-programs create bogus utmp-records or just don't create them.

"vzclt enter" command doesn't create such record. So w shows nothing. But if you login with ssh - here you are - w shows everything.

If it isn't so - it's a bug.
Re: VPS Problem -- Users logged in [message #2633 is a reply to message #2373] Wed, 12 April 2006 14:41 Go to previous messageGo to next message
BeyondCreation is currently offline  BeyondCreation
Messages: 3
Registered: April 2006
Location: Hampshire, UK
Junior Member

On a fresh CentOS VPS logging in via SSH directly to the VPS itself shows nothing in the 'w' command.

It is because OpenSSH changed something in their latest update, well that's what i heard.

But yeah i tested this on my VPS HostNode and all works fine.


--
BeyondCreation
Shared, Reseller & VPS Hosting Solutions

E: mail@beyondcreation.co.uk
W: http://www.beyondcreation.co.uk
Re: VPS Problem -- Users logged in [message #2901 is a reply to message #2633] Tue, 25 April 2006 22:55 Go to previous messageGo to next message
jyap is currently offline  jyap
Messages: 5
Registered: April 2006
Junior Member
Yeah, I can verify this.

Originally I thought it was an OpenVZ security thing not to report the users.

Logged in via console (as opposed to SSH) and who, finger commands both work fine.
Re: VPS Problem -- Users logged in [message #2906 is a reply to message #2901] Wed, 26 April 2006 14:41 Go to previous messageGo to next message
ronaldsh is currently offline  ronaldsh
Messages: 5
Registered: April 2006
Junior Member
So how to overcome this problem ?

To: BeyondCreation

I did email you asking for the kernel but the email is returned. Seem the domain name not work !!
Re: VPS Problem -- Users logged in [message #2912 is a reply to message #2906] Wed, 26 April 2006 18:02 Go to previous messageGo to next message
jyap is currently offline  jyap
Messages: 5
Registered: April 2006
Junior Member
It has been reported earlier in this thread that a Kernel rebuild with the following options enabled fixes this issue:
You have to enable this to 'y';

CONFIG_AUDIT=y

And just underneath the above, copy the following into the kernel config;

CONFIG_AUDITSYSCALL=y

I have added this info as part of a comment to http://bugzilla.openvz.org/show_bug.cgi?id=124
Re: VPS Problem -- Users logged in [message #2972 is a reply to message #2912] Thu, 04 May 2006 10:02 Go to previous messageGo to next message
jyap is currently offline  jyap
Messages: 5
Registered: April 2006
Junior Member
I have rebuilt the latest Kernels here:

http://www.julianyap.com/wiki/Custom_OpenVZ_kernels

Feel free to download them. I have quite a lot of bandwidth.

I am a FOSS advocate so a donation is appreciated to assist in my endeavours.

Feel free to ask any questions or if you want me to put up any explanations.
Re: VPS Problem -- Users logged in [message #3026 is a reply to message #2972] Mon, 08 May 2006 18:58 Go to previous message
dlzinc
Messages: 34
Registered: March 2006
Member
This is the Virtuozzo note on this...
http://kb.swsoft.com/article_133_1146_en.html
Previous Topic: Firewall on boot
Next Topic: binutils >= 2.15.94.0.2.2-2.2.swsoft
Goto Forum:
  


Current Time: Fri Apr 26 10:35:47 GMT 2024

Total time taken to generate the page: 0.01762 seconds