On Mon, 20 Oct 2003, Jason Tishler wrote: > Bruno, > > On Mon, Oct 20, 2003 at 03:58:28PM +0200, Grossniklaus Bruno wrote: > > > $ ls -l /var/log/wtmp > > > -rw-rw-rw- 1 jt Domain U 132748 Oct 15 17:27 /var/log/wtmp > > > > And how/when did you get this dir? > > Sorry I don't recall, but I think I created it myself. > > > Now I have: > > $ ls -l /var/log/ > > insgesamt 258 > > -rwxrwxrwx+ 1 admin-se Users 16077 20. Oct 15:44 setup.log > > -rwxrwxrwx+ 1 admin-se Users 247243 20. Oct 15:44 setup.log.full > > > > There is no /var/log/wtmp > > > > Do we have to create /var/log/wtmp manually? > > AFAICT, yes. > > Given the following: > > $ for i in /usr/*bin/*.exe; do strings $i | fgrep -q wtmp; if [ $? -eq 0 ]; > then echo $i; fi; done > /usr/bin/emacs-21.2.exe > /usr/bin/emacs-nox.exe > /usr/bin/emacs.exe > /usr/bin/last.exe > /usr/bin/rxvt.exe > /usr/bin/users.exe > /usr/bin/who.exe > /usr/sbin/in.ftpd.exe > /usr/sbin/in.rlogind.exe > /usr/sbin/in.telnetd.exe > /usr/sbin/in.uucpd.exe > /usr/sbin/proftpd.exe > /usr/sbin/sshd.exe > > I'm not sure what package should be responsible for creating > /var/log/wtmp. > > Jason
IMO, all of them[*] (or, rather, those that actually *require* /var/log/wtmp -- some may simply check for its presence and keep going if the don't find it, in which case it's optional). Here's the code to stick into the postinstall scripts (straight out of /etc/postinstall/cygutils.sh.done dated Jul 13 2002): if [ ! -d /var/log ] ; then \ mkdir -p /var/log ; fi if [ ! -f /var/log/wtmp ] ; then \ touch /var/log/wtmp ; fi FWIW, it'd be safer to also check whether this file is a symlink (i.e., add "-a ! -l /var/log/wtmp" to the test), but this should do for now. Igor [*] There aren't that many packages, actually: "sh-utils", "inetutils", "emacs", "rxvt", "openssh", and "proftpd". -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ [EMAIL PROTECTED] ZZZzz /,`.-'`' -. ;-;;,_ [EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/