Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Idle users
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Chemtux
n00b
n00b


Joined: 10 Apr 2002
Posts: 22
Location: The Netherlands

PostPosted: Mon Apr 29, 2002 9:18 am    Post subject: Idle users Reply with quote

I always shutdown my computer with init 0. The problem I'm now having is that with the command 'w' I have 236 users :lol: , but the list shows only 10 users. My question is how do I automaticly logout idle users when I invoke init 0 and more general how do I logout users.
_________________
Nope
Back to top
View user's profile Send private message
Target
Apprentice
Apprentice


Joined: 25 Apr 2002
Posts: 199

PostPosted: Mon Apr 29, 2002 9:22 am    Post subject: Reply with quote

This was actually a bug in gentoo's base system.
Update (make sure you emerge rsync first), then rm -rf /var/run/utmpx, and then reboot.

I'm sure there's away to do this without rebooting, but it's the least complicated thing to do.

My favourite method of logging out users is to just kill their shell. :)
Back to top
View user's profile Send private message
Chemtux
n00b
n00b


Joined: 10 Apr 2002
Posts: 22
Location: The Netherlands

PostPosted: Mon Apr 29, 2002 9:39 am    Post subject: Reply with quote

Thanks, they're all gone now, killing the shell's was also my idea, but there were no shells running for the users, 'w' only showed the users.
_________________
Nope
Back to top
View user's profile Send private message
Chemtux
n00b
n00b


Joined: 10 Apr 2002
Posts: 22
Location: The Netherlands

PostPosted: Mon Apr 29, 2002 9:47 am    Post subject: Reply with quote

After the reboot it still shows over 240 users. I have done a emerge rsync, removed utmp and utmpx and then rebooted.
_________________
Nope
Back to top
View user's profile Send private message
Target
Apprentice
Apprentice


Joined: 25 Apr 2002
Posts: 199

PostPosted: Mon Apr 29, 2002 9:52 am    Post subject: Reply with quote

Shoot... I completely forgot. After the update you should have some config files that need attending to. You need to copy /etc/conf.d/._cfg????_bootmisc over /etc/conf.d/bootmisc to update it to the latest version.
Then rm -rf /var/run/utmpx and reboot.

The bug was in the old bootmisc file.
Back to top
View user's profile Send private message
Chemtux
n00b
n00b


Joined: 10 Apr 2002
Posts: 22
Location: The Netherlands

PostPosted: Mon Apr 29, 2002 10:07 am    Post subject: Reply with quote

Eureka.............that did it, only bootmisc is in /etc/init.d
Thnx :D :D :D
_________________
Nope
Back to top
View user's profile Send private message
Target
Apprentice
Apprentice


Joined: 25 Apr 2002
Posts: 199

PostPosted: Mon Apr 29, 2002 10:21 am    Post subject: Reply with quote

Dyslexics of the world, untie! :oops:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum