Results 1 to 2 of 2

Thread: Giving users rights to change date time

  1. #1
    Join Date
    Feb 2007
    Beans
    18

    Question Giving users rights to change date time

    Hi,

    We use Ubuntu to run a system we manufacture and we'd rather not give the end user access to all the root commands, so we setup a basic user account for them to run the system from. The systems are now selling worldwide and we need to give the end user the ability to set the date/time. Since the end users are typically not software or IT engineers we would like them to use the time-admin gui. Can anyone tell me how to either give a specific user or all users access to unlock the time-admin gui?

    Thanks

    Stewart

  2. #2
    Join Date
    Feb 2011
    Location
    Somewhere...
    Beans
    1,559
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Re: Giving users rights to change date time

    Open /usr/share/polkit-1/actions/org.gnome.settingsdaemon.datetimemechanism.policy as root, and modify this part:
    Code:
      <action id="org.gnome.settingsdaemon.datetimemechanism.configure">
        <description gettext-domain="gnome-settings-daemon">Change system time and date settings</description>
        <message gettext-domain="gnome-settings-daemon">To change time or date settings, you need to authenticate.</message>
        <defaults>
          <allow_any>no</allow_any>
          <allow_inactive>no</allow_inactive>
          <allow_active>auth_admin_keep</allow_active>
        </defaults>
      </action>
    to this:
    Code:
      <action id="org.gnome.settingsdaemon.datetimemechanism.configure">
        <description gettext-domain="gnome-settings-daemon">Change system time and date settings</description>
        <message gettext-domain="gnome-settings-daemon">To change time or date settings, you need to authenticate.</message>
        <defaults>
          <allow_any>no</allow_any>
          <allow_inactive>no</allow_inactive>
          <allow_active>yes</allow_active>
        </defaults>
      </action>

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •