On Wed, Feb 23, 2011 at 9:37 PM, Chengwei Yang <chengwei.y...@intel.com> wrote: > according to #BMC-9011, the default user hasn't the right to add a > printer, it will confuses the end user. > on meego, only users in group 'sys and root' have that privilege, can we > grant the privilege to user when it created by firstboot?
This is already enabled and seems to be done by firstboot already in recent 1.1.90 releases. After firstboot sets up a new user (e.g. 'npm') note that /etc/shadow and /etc/passwd are setup with both 'root' and 'npm' (or whatever user you setup) with the same password. Additionally, note that /etc/sudoers has the following appended: ........................ ## Allow npm to run all commands npm ALL=(ALL) ALL ......................... This means that the default user could use 'sudo' to run things as root, but the way it is setup, a password will be required. The password prompting/response needs to be handled in any apps that may call sudo to increase the user's priviledge levels. Note that by changing to ............................ npm ALL=(ALL) NOPASSWD: ALL ............................ Would allow sudo to be invoked without a password. (potentially dangerous since somebody nasty could walk up to your netbook and go "sudo rm -rf /" ...). However,it may simplify an interactive program's need to perform administrative work.... However it is also possible to use the syntax above and replace "ALL" with the specific program(s) the user needs to invoke for administrative purposes. Perhaps use this form of /etc/sudoers for the specific command needed to administer the printer? Niels http://nielsmayer.com _______________________________________________ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines