Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Tue, 22 May 2001 16:51:13 +0200 From: Corinna Vinschen To: cygwin Subject: Re: crontab: can't obtain passwd entry Message-ID: <20010522165113.F27460@cygbert.vinschen.de> Mail-Followup-To: cygwin References: <3B090405 DOT B1D2BE14 AT lightbridge DOT com> <20010522095255 DOT B27460 AT cygbert DOT vinschen DOT de> <3B0A5A28 DOT F310222C AT lightbridge DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B0A5A28.F310222C@lightbridge.com>; from lbohm@lightbridge.com on Tue, May 22, 2001 at 08:23:04AM -0400 On Tue, May 22, 2001 at 08:23:04AM -0400, Louis Bohm wrote: > I did do a mkpasswd -l > /etc/passwd and a mkgroup -l > /etc/group. After I > did that I tried the crontab -e and sill had the problem. > > Then I tried to do something smart, or so I though, and run gdb crontab. > Unfortunately gdb has problems with crontab. The offending code in crontab is: struct passwd *pw = getpwuid (geteuid ()); if (! pw) return eprint ("can't obtain passwd entry."); so your current uid is not in /etc/passwd. if you call `id' you should get an output like that: uid=1003(louis) gid=513(None) ... if that is not what you get, your passwd is still incorrect. Are you a perhaps a domain user? In that case `mkpasswd -l' will not help. Use `mkpasswd -d' to get domain users. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple