<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>1253</bug_id>
          
          <creation_ts>2011-07-18 00:06:20 +0000</creation_ts>
          <short_desc>Non-root user can&apos;t perform &apos;crontab&apos; command</short_desc>
          <delta_ts>2011-07-18 09:31:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>Installation</product>
          <component>Installation</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>1252</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Wenzong.Fan">wenzong.fan</reporter>
          <assigned_to name="Scott Garman">scott.a.garman</assigned_to>
          <cc>kevin.tian</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>14757</commentid>
    <comment_count>0</comment_count>
    <who name="Wenzong.Fan">wenzong.fan</who>
    <bug_when>2011-07-18 00:06:20 +0000</bug_when>
    <thetext>Tested on a lsb images which enabled pam for crond.

Non-root user can&apos;t perform command &apos;crontab -l/-e&apos;.

The error logs from /var/log/auth.log:
Jul 12 02:36:14 qemux86 unix_chkpwd[768]: could not obtain user info (test-pam)

root cause:
unix_chkpwd can&apos;t get user info from &apos;/etc/shadow&apos; because it has incorrect permission settings:

root@qemux86:~# ll /etc/shadow
-r-------- 1 root root 1090 Jul 14 05:29 /etc/shadow

On a ubuntu host it is:
-rw-r----- 1 root shadow 1389 2011-07-07 18:04 /etc/shadow</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14762</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-07-18 09:28:36 +0000</bug_when>
    <thetext>A duplicate, looks like submit was hit twice

*** This bug has been marked as a duplicate of bug 1252 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>