IBM Support

IV37869: SETCLOCK RETURNED WITH "STIME FAILED" BY NON-ROOT USER APPLIES TO AIX 7100-03

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When setclock is run by user without root authority,
    it will displays the local date and time as designed, but
    it will also failed with information "stime failed: Not
    owner"
    and exit with 1.
    
    This problem happen on 61 and 71, but not 53.
    
    $ setclock localhost
    Wed Oct 31 03:24:49 2012
    stime failed: Not owner
    $ echo $?
    1
    

Local fix

Problem summary

  • setclock throws below error when run as non-root user.
    stime failed: Operation not permitted.
    

Problem conclusion

  • Modified code to suppress the unnecessary error message.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV37869

  • Reported component name

    AIX V7.1

  • Reported component ID

    5765H4000

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Submitted date

    2013-03-11

  • Closed date

    2013-03-11

  • Last modified date

    2013-11-24

  • APAR is sysrouted FROM one or more of the following:

    IV33130

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    AIX V7.1

  • Fixed component ID

    5765H4000

Applicable component levels

  • R710 PSY U854680

       UP13/11/22 I 1000

PTF to Fileset Mapping

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSMV87","label":"AIX 6.1 Enterprise Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMVAX","label":"AIX Express Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG11R","label":"AIX 7.1 HIPERS, APARs and Fixes"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
24 November 2013