Regression: only session timeout and nologin are checked for timeoutd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
timeoutd (Ubuntu) |
In Progress
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: timeoutd
Was tested on 10.04 (Lycid Lynx) Beta2.
This probably appeared after bugs https:/
To check this try these lines for e.g. for user "user", use configuration in /etc/timeouts:
Al0800-
Al:*:user:*:0:2:0:1
Log in as user, and run command:
watch -d 'timeoutd tv tty1; echo $?'
After 1 minute will get warning about logging off.
Though if overall day limit is set, e.g.
Al:*:user:*:0:0:2:1
Then status is always 0, and user is never logged off. So, my kids simply log in again, when they are logged off, if time is outside nologin range of time.
summary: |
- Regression only session timeout and nologin are checked + Regression only session timeout and nologin are checked for timeoutd |
summary: |
- Regression only session timeout and nologin are checked for timeoutd + Regression: only session timeout and nologin are checked for timeoutd |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
When timeoutd.c (got from Ubuntu source repository) compiled with DEBUG flag, /var/log/debug shows:
...
Apr 11 23:59:46 piano timeoutd[25824]: Reading today's wtmp entries.
Apr 11 23:59:46 piano timeoutd[25824]: Seek to end of wtmp
Apr 11 23:59:46 piano timeoutd[25824]: Finished reading today's wtmp entries.
Apr 11 23:59:46 piano timeoutd[25824]: Time to check utmp for exceeded limits.
Apr 11 23:59:46 piano timeoutd[25824]: User ieva or * not in config -> No restrictions. Not checking ieva on pts/2
Apr 11 23:59:46 piano timeoutd[25824]: User valdis or * not in config -> No restrictions. Not checking valdis on pts/2
Apr 11 23:59:46 piano timeoutd[25824]: NO xsession detected. device=pts/2 host=inks.lan
Apr 11 23:59:46 piano timeoutd[25824]: Checking user tv group users tty pts/2.
Apr 11 23:59:46 piano timeoutd[25824]: Matched entry 5
Apr 11 23:59:46 piano timeoutd[25824]: Idle=0 (max=0) Sess=3 (max=120) Daily=0 (max=120) warntime=1
Apr 11 23:59:46 piano timeoutd[25824]: NO xsession detected. device=pts/2 host=inks.lan
Apr 11 23:59:46 piano timeoutd[25824]: TTY pts/2: Discipline=TTY.
Apr 11 23:59:46 piano timeoutd[25824]: User tv is active.
Apr 11 23:59:46 piano timeoutd[25824]: Freeing list of today's wtmp entries.
Apr 11 23:59:46 piano timeoutd[25824]: Finished freeing list of today's wtmp entries.
Apr 11 23:59:46 piano timeoutd[25824]: Finished checking utmp... sleeping for 1 minute.
...
Note, that Daily=0 all the time. Though couldn't catch how it is counted and where the bug is.