desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #34559
[Bug 606619] Re: gdm ignores the return code of PostLogin script
[Expired for gdm (Ubuntu) because there has been no activity for 60
days.]
** Changed in: gdm (Ubuntu)
Status: Incomplete => Expired
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gdm in Ubuntu.
https://bugs.launchpad.net/bugs/606619
Title:
gdm ignores the return code of PostLogin script
Status in “gdm” package in Ubuntu:
Expired
Bug description:
Binary package hint: gdm
I have written a script that mounts a truecrypt partition after the
user has logged in successfully. The script is placed at
/etc/gdm/PostLogin/Default and works fine in general. However, since
at least Ubuntu 9.10 gdm ignores the return value from that script and
continues the login process even when mounting fails and the script
returns 1. This was not the case in earlier versions of Ubuntu, where
the login process was terminated in such a case and the gdm login
screen was shown again.
The description of gdm says: "The script should return 0 on success as
otherwise the user won't be logged in." At least in Ubuntu 9.10 and
10.04 (32 and 64 bit version) this is broken and i don't know any
workaround for this bug.
How to reproduce:
1) Create a file /etc/gdm/PostLogin/Default and make it executable
2) Write the following code to the file: "exit 1"
3) Logout and login again.
Expected result:
Login should fail, as the script returns 1.
Actual result:
Login works as usual.
I am not sure if this is a duplicate of bug #36177, therefore i am
filling a new bug report.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/606619/+subscriptions