[Desktop-packages] [Bug 1581853] Re: Source prefs.sh as privileged user to allow user mods

2017-01-26 Thread Jude Hungerford
Sorry, please ignore my previous comment. It does work with some
commands, I'm experiencing the failure mentioned above when trying to
run "cupsdisable" and "cupsreject" upon login, but when I try other
privileged commands they work.

I'll see if I can narrow down exactly what is failing and where, but my
post above is incorrect, prefs.sh is being sourced as a privileged user
(I can't seem to edit or delete the post hence this addition).

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/1581853

Title:
  Source prefs.sh as privileged user to allow user mods

Status in lightdm package in Ubuntu:
  Fix Released
Status in lightdm source package in Xenial:
  Fix Released

Bug description:
  [Impact] including [Test Case]

  The Ask Ubuntu question  called my
  attention to a regression in 16.04 as regards the possibilities for
  the system owner to configure the guest account. Up to 15.10 you can
  put e.g. this line in /etc/guest-session/prefs.sh:

  adduser $USER somegroup

  But if you try that in 16.04, the guest session won't launch. The
  explanation is that after the reorganization of the guest session code
  in 16.04, prefs.sh is sourced by /usr/share/lightdm/guest-
  session/setup.sh, which is not run as root.

  The linked merge proposals restore the previous behavior by letting
  prefs.sh be sourced by /usr/sbin/guest-account again.

  [Regression Potential]

  Low.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1581853/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1581853] Re: Source prefs.sh as privileged user to allow user mods

2017-01-26 Thread Jude Hungerford
>From my reading of the above, it seems that this bug should be fixed in
Yakkety, and probably also in up-to-date installations of Xenial.

I believe this is the bug I'm currently seeing (prefs.sh not sourced as
privileged user) in both Yakkety and Xenial (lightdm versions
1.19.5-0ubuntu1 and 1.18.3-0ubuntu1 respectively). Should I open a new
bug report tagged regression-update as mentioned above, or have I
misunderstood in thinking it should be fixed in these versions?

The symptom I'm seeing is that if I put commands into /etc/guest-
session/prefs.sh requiring execution by a privileged user, the guest
login loops back around to the login screen without any messages.
Behaviour is the same in both Yakkety and Xenial with all packages up-
to-date.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/1581853

Title:
  Source prefs.sh as privileged user to allow user mods

Status in lightdm package in Ubuntu:
  Fix Released
Status in lightdm source package in Xenial:
  Fix Released

Bug description:
  [Impact] including [Test Case]

  The Ask Ubuntu question  called my
  attention to a regression in 16.04 as regards the possibilities for
  the system owner to configure the guest account. Up to 15.10 you can
  put e.g. this line in /etc/guest-session/prefs.sh:

  adduser $USER somegroup

  But if you try that in 16.04, the guest session won't launch. The
  explanation is that after the reorganization of the guest session code
  in 16.04, prefs.sh is sourced by /usr/share/lightdm/guest-
  session/setup.sh, which is not run as root.

  The linked merge proposals restore the previous behavior by letting
  prefs.sh be sourced by /usr/sbin/guest-account again.

  [Regression Potential]

  Low.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1581853/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1581853] Re: Source prefs.sh as privileged user to allow user mods

2016-07-13 Thread Launchpad Bug Tracker
This bug was fixed in the package lightdm - 1.18.2-0ubuntu1

---
lightdm (1.18.2-0ubuntu1) xenial; urgency=medium

  * New upstream release:
- Don't quit on SIGUSR1, SIGUSR2 or SIGHUP (LP: #960157)
- Use MIR_SERVER_HOST_SOCKET instead of MIR_SOCKET to report compositor
  socket to sessions. This used to work but no longer works in Mir 0.21
  (LP: #1583624)
- Use only a single compositor on xlocal seats (LP: #1594229)
- Fix Mir greeter log filename having "(null)" in the name (LP: #1590582)
- Set XDMCP hostname field in to system hostname or configured value
  (LP: #1578442)
- Improve XDMCP IPv6 address selection (LP: #1575200)
- Allow fcitx and mozc to run in guest session (LP: #1509829)
- Fix uninitialized memory errors
  * debian/lightdm.dirs:
- Ensure user configuration directories /etc/lightdm/lightdm.conf.d and
  /etc/guest-session exist
  * debian/guest-account.sh:
  * debian/guest-session-setup.sh:
- Source prefs.sh as privileged user to allow user modification
  (LP: #1581853)

 -- Robert Ancell   Tue, 21 Jun 2016
12:49:01 +1200

** Changed in: lightdm (Ubuntu Xenial)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/1581853

Title:
  Source prefs.sh as privileged user to allow user mods

Status in lightdm package in Ubuntu:
  Fix Released
Status in lightdm source package in Xenial:
  Fix Released

Bug description:
  [Impact] including [Test Case]

  The Ask Ubuntu question  called my
  attention to a regression in 16.04 as regards the possibilities for
  the system owner to configure the guest account. Up to 15.10 you can
  put e.g. this line in /etc/guest-session/prefs.sh:

  adduser $USER somegroup

  But if you try that in 16.04, the guest session won't launch. The
  explanation is that after the reorganization of the guest session code
  in 16.04, prefs.sh is sourced by /usr/share/lightdm/guest-
  session/setup.sh, which is not run as root.

  The linked merge proposals restore the previous behavior by letting
  prefs.sh be sourced by /usr/sbin/guest-account again.

  [Regression Potential]

  Low.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1581853/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1581853] Re: Source prefs.sh as privileged user to allow user mods

2016-06-23 Thread Gunnar Hjalmarsson
Installed lightdm 1.18.2-0ubuntu1 from xenial-proposed and confirm that
the guest user can be modified via /etc/guest-session/prefs.sh using
e.g. the adduser command.

** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/1581853

Title:
  Source prefs.sh as privileged user to allow user mods

Status in lightdm package in Ubuntu:
  Fix Released
Status in lightdm source package in Xenial:
  Fix Committed

Bug description:
  [Impact] including [Test Case]

  The Ask Ubuntu question  called my
  attention to a regression in 16.04 as regards the possibilities for
  the system owner to configure the guest account. Up to 15.10 you can
  put e.g. this line in /etc/guest-session/prefs.sh:

  adduser $USER somegroup

  But if you try that in 16.04, the guest session won't launch. The
  explanation is that after the reorganization of the guest session code
  in 16.04, prefs.sh is sourced by /usr/share/lightdm/guest-
  session/setup.sh, which is not run as root.

  The linked merge proposals restore the previous behavior by letting
  prefs.sh be sourced by /usr/sbin/guest-account again.

  [Regression Potential]

  Low.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1581853/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1581853] Re: Source prefs.sh as privileged user to allow user mods

2016-06-23 Thread Brian Murray
Hello Gunnar, or anyone else affected,

Accepted lightdm into xenial-proposed. The package will build now and be
available at
https://launchpad.net/ubuntu/+source/lightdm/1.18.2-0ubuntu1 in a few
hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed.  Your feedback will aid us getting this update
out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, and change the tag
from verification-needed to verification-done. If it does not fix the
bug for you, please add a comment stating that, and change the tag to
verification-failed.  In either case, details of your testing will help
us make a better decision.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance!

** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/1581853

Title:
  Source prefs.sh as privileged user to allow user mods

Status in lightdm package in Ubuntu:
  Fix Released
Status in lightdm source package in Xenial:
  Fix Committed

Bug description:
  [Impact] including [Test Case]

  The Ask Ubuntu question  called my
  attention to a regression in 16.04 as regards the possibilities for
  the system owner to configure the guest account. Up to 15.10 you can
  put e.g. this line in /etc/guest-session/prefs.sh:

  adduser $USER somegroup

  But if you try that in 16.04, the guest session won't launch. The
  explanation is that after the reorganization of the guest session code
  in 16.04, prefs.sh is sourced by /usr/share/lightdm/guest-
  session/setup.sh, which is not run as root.

  The linked merge proposals restore the previous behavior by letting
  prefs.sh be sourced by /usr/sbin/guest-account again.

  [Regression Potential]

  Low.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1581853/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1581853] Re: Source prefs.sh as privileged user to allow user mods

2016-06-20 Thread Robert Ancell
** Changed in: lightdm (Ubuntu Xenial)
   Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/1581853

Title:
  Source prefs.sh as privileged user to allow user mods

Status in lightdm package in Ubuntu:
  Fix Released
Status in lightdm source package in Xenial:
  Fix Committed

Bug description:
  [Impact] including [Test Case]

  The Ask Ubuntu question  called my
  attention to a regression in 16.04 as regards the possibilities for
  the system owner to configure the guest account. Up to 15.10 you can
  put e.g. this line in /etc/guest-session/prefs.sh:

  adduser $USER somegroup

  But if you try that in 16.04, the guest session won't launch. The
  explanation is that after the reorganization of the guest session code
  in 16.04, prefs.sh is sourced by /usr/share/lightdm/guest-
  session/setup.sh, which is not run as root.

  The linked merge proposals restore the previous behavior by letting
  prefs.sh be sourced by /usr/sbin/guest-account again.

  [Regression Potential]

  Low.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1581853/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1581853] Re: Source prefs.sh as privileged user to allow user mods

2016-06-20 Thread Launchpad Bug Tracker
This bug was fixed in the package lightdm - 1.19.1-0ubuntu1

---
lightdm (1.19.1-0ubuntu1) yakkety; urgency=medium

  * New upstream release:
  * debian/lightdm.dirs:
- Rename "xlocal" seat type to "local". Using "xlocal" will continue to work
  but report a warning.
- Ensure user configuration directories /etc/lightdm/lightdm.conf.d and
  /etc/guest-session exist
- Use MIR_SERVER_HOST_SOCKET instead of MIR_SOCKET to report compositor
  socket to sessions. This used to work but no longer works in Mir 0.21
  (LP: #1583624)
- Allow XMir to run on the xlocal seat using the new x-server-backend=mir
  option
- Use only a single compositor on local seats (LP: #1594229)
- Fix Mir greeter log filename having "(null)" in the name (LP: #1590582)
- Copy fcitx/mozc rules so session works when these aren't installed
  (LP #1581187)
- Revert lxsession change - it caused the AppArmor to fail to compile
  * debian/rules:
- Revert dh_installinit change - we don't want to start LightDM on install
  (LP: #1581106)
  * debian/guest-account.sh:
  * debian/guest-session-setup.sh:
- Source prefs.sh as privileged user to allow user modification
  (LP: #1581853)

 -- Robert Ancell   Mon, 20 Jun 2016
16:18:36 +1200

** Changed in: lightdm (Ubuntu)
   Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/1581853

Title:
  Source prefs.sh as privileged user to allow user mods

Status in lightdm package in Ubuntu:
  Fix Released
Status in lightdm source package in Xenial:
  In Progress

Bug description:
  [Impact] including [Test Case]

  The Ask Ubuntu question  called my
  attention to a regression in 16.04 as regards the possibilities for
  the system owner to configure the guest account. Up to 15.10 you can
  put e.g. this line in /etc/guest-session/prefs.sh:

  adduser $USER somegroup

  But if you try that in 16.04, the guest session won't launch. The
  explanation is that after the reorganization of the guest session code
  in 16.04, prefs.sh is sourced by /usr/share/lightdm/guest-
  session/setup.sh, which is not run as root.

  The linked merge proposals restore the previous behavior by letting
  prefs.sh be sourced by /usr/sbin/guest-account again.

  [Regression Potential]

  Low.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1581853/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1581853] Re: Source prefs.sh as privileged user to allow user mods

2016-05-17 Thread Gunnar Hjalmarsson
** Description changed:

+ [Impact] including [Test Case]
+ 
  The Ask Ubuntu question  called my
  attention to a regression in 16.04 as regards the possibilities for the
  system owner to configure the guest account. Up to 15.10 you can put
  e.g. this line in /etc/guest-session/prefs.sh:
  
  adduser $USER somegroup
  
  But if you try that in 16.04, the guest session won't launch. The
  explanation is that after the reorganization of the guest session code
  in 16.04, prefs.sh is sourced by /usr/share/lightdm/guest-
  session/setup.sh, which is not run as root.
  
  The linked merge proposals restore the previous behavior by letting
  prefs.sh be sourced by /usr/sbin/guest-account again.
+ 
+ [Regression Potential]
+ 
+ Low.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/1581853

Title:
  Source prefs.sh as privileged user to allow user mods

Status in lightdm package in Ubuntu:
  In Progress
Status in lightdm source package in Xenial:
  In Progress

Bug description:
  [Impact] including [Test Case]

  The Ask Ubuntu question  called my
  attention to a regression in 16.04 as regards the possibilities for
  the system owner to configure the guest account. Up to 15.10 you can
  put e.g. this line in /etc/guest-session/prefs.sh:

  adduser $USER somegroup

  But if you try that in 16.04, the guest session won't launch. The
  explanation is that after the reorganization of the guest session code
  in 16.04, prefs.sh is sourced by /usr/share/lightdm/guest-
  session/setup.sh, which is not run as root.

  The linked merge proposals restore the previous behavior by letting
  prefs.sh be sourced by /usr/sbin/guest-account again.

  [Regression Potential]

  Low.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1581853/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1581853] Re: Source prefs.sh as privileged user to allow user mods

2016-05-16 Thread Robert Ancell
** Also affects: lightdm (Ubuntu Xenial)
   Importance: Undecided
   Status: New

** Changed in: lightdm (Ubuntu Xenial)
 Assignee: (unassigned) => Gunnar Hjalmarsson (gunnarhj)

** Changed in: lightdm (Ubuntu Xenial)
   Importance: Undecided => Medium

** Changed in: lightdm (Ubuntu Xenial)
   Status: New => In Progress

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/1581853

Title:
  Source prefs.sh as privileged user to allow user mods

Status in lightdm package in Ubuntu:
  In Progress
Status in lightdm source package in Xenial:
  In Progress

Bug description:
  The Ask Ubuntu question  called my
  attention to a regression in 16.04 as regards the possibilities for
  the system owner to configure the guest account. Up to 15.10 you can
  put e.g. this line in /etc/guest-session/prefs.sh:

  adduser $USER somegroup

  But if you try that in 16.04, the guest session won't launch. The
  explanation is that after the reorganization of the guest session code
  in 16.04, prefs.sh is sourced by /usr/share/lightdm/guest-
  session/setup.sh, which is not run as root.

  The linked merge proposals restore the previous behavior by letting
  prefs.sh be sourced by /usr/sbin/guest-account again.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1581853/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1581853] Re: Source prefs.sh as privileged user to allow user mods

2016-05-14 Thread Launchpad Bug Tracker
** Branch linked: lp:~gunnarhj/lightdm/prefs.sh-fix_xenial

** Branch linked: lp:~gunnarhj/lightdm/prefs.sh-fix_yakkety

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/1581853

Title:
  Source prefs.sh as privileged user to allow user mods

Status in lightdm package in Ubuntu:
  In Progress

Bug description:
  The Ask Ubuntu question  called my
  attention to a regression in 16.04 as regards the possibilities for
  the system owner to configure the guest account. Up to 15.10 you can
  put e.g. this line in /etc/guest-session/prefs.sh:

  adduser $USER somegroup

  But if you try that in 16.04, the guest session won't launch. The
  explanation is that after the reorganization of the guest session code
  in 16.04, prefs.sh is sourced by /usr/share/lightdm/guest-
  session/setup.sh, which is not run as root.

  The linked merge proposals restore the previous behavior by letting
  prefs.sh be sourced by /usr/sbin/guest-account again.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1581853/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp