View previous topic :: View next topic |
Author |
Message |
Chemtux n00b
Joined: 10 Apr 2002 Posts: 22 Location: The Netherlands
|
Posted: Mon Apr 29, 2002 9:18 am Post subject: Idle users |
|
|
I always shutdown my computer with init 0. The problem I'm now having is that with the command 'w' I have 236 users , 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 |
|
|
Target Apprentice
Joined: 25 Apr 2002 Posts: 200
|
Posted: Mon Apr 29, 2002 9:22 am Post subject: |
|
|
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 |
|
|
Chemtux n00b
Joined: 10 Apr 2002 Posts: 22 Location: The Netherlands
|
Posted: Mon Apr 29, 2002 9:39 am Post subject: |
|
|
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 |
|
|
Chemtux n00b
Joined: 10 Apr 2002 Posts: 22 Location: The Netherlands
|
Posted: Mon Apr 29, 2002 9:47 am Post subject: |
|
|
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 |
|
|
Target Apprentice
Joined: 25 Apr 2002 Posts: 200
|
Posted: Mon Apr 29, 2002 9:52 am Post subject: |
|
|
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 |
|
|
Chemtux n00b
Joined: 10 Apr 2002 Posts: 22 Location: The Netherlands
|
Posted: Mon Apr 29, 2002 10:07 am Post subject: |
|
|
Eureka.............that did it, only bootmisc is in /etc/init.d
Thnx _________________ Nope |
|
Back to top |
|
|
Target Apprentice
Joined: 25 Apr 2002 Posts: 200
|
Posted: Mon Apr 29, 2002 10:21 am Post subject: |
|
|
Dyslexics of the world, untie! |
|
Back to top |
|
|
|