<div>Hiya Matt, interesting thanks. Does it matter what setting you have selinux on? (have it on permissive atm, but wondering if its still affecting it).</div>
<div> </div>
<div>Ian<br><br> </div>
<div><span class="gmail_quote">On 9/26/06, <b class="gmail_sendername">Matthew T. O'Connor</b> <<a href="mailto:matthew@zeut.net">matthew@zeut.net</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I had this exact problem. As best as I was able to figure it out, it<br>was caused by the upgrade to CentOS
4.4. A few of the files from the<br>cron RPM didn't work right under the SELinux, I had to do a restoreconf<br>to all the files in the cron RPM and then all was OK. I have no idea<br>why this happened.<br><br>Matt<br><br>
<br>Ian mu wrote:<br>> Actually it seems to be the same now even when I dos2unix now (seems<br>> to work sometimes not others which is confusing me even more now),<br>> wondering if its selinux after all even though afaik it shouldn't be.
<br>><br>> On 9/25/06, *Ian mu* <<a href="mailto:mu.llamas@gmail.com">mu.llamas@gmail.com</a><br>> <mailto:<a href="mailto:mu.llamas@gmail.com">mu.llamas@gmail.com</a>>> wrote:<br>><br>> Hiya, thanks again, there's no .vimrc file at all.
<br>><br>> :set gives<br>> :set<br>> --- Options ---<br>> backspace=2 history=50 scroll=11 ttyfast<br>> fileencodings=ucs-bom,utf-8,latin1<br>> Hit ENTER or type command to continue
<br>><br>> This is exactly the same as in crontab -e (thats what I use to<br>> edit anyway though, so assume it just calls vim), it was also the<br>> same problem in nano when I tried after you mentioned that.
<br>><br>> Thanks, Ian<br>><br>> On 9/25/06, *Will McDonald* <<a href="mailto:wmcdonald@gmail.com">wmcdonald@gmail.com</a><br>> <mailto:<a href="mailto:wmcdonald@gmail.com">wmcdonald@gmail.com
</a>>> wrote:<br>><br>> On 25/09/06, Ian mu < <a href="mailto:mu.llamas@gmail.com">mu.llamas@gmail.com</a><br>> <mailto:<a href="mailto:mu.llamas@gmail.com">mu.llamas@gmail.com</a>>> wrote:
<br>> > Hiya, thanks a lot for that Will (sorry spelt name wrong<br>> before!), think<br>> > you're reply has almost got there...<br>> ><br>> > If I dos2unix the file it works, if I use vi/m (what I
<br>> normally use) or nano<br>> > etc, it doesn't work (but will if I then dos2unix it again)?<br>> ><br>> > SELinux I think is on permissive/targeted (I'm not too<br>
> familiar with selinux<br>> > as someone else set it up, but my understanding is that it<br>> should allow all,<br>> > but log/audit it?).<br>> ><br>> > Looks like thats it, but not sure still why its not saving it
<br>> correctly?<br>><br>> Sounds like vi/vim's doing something weird to the file on<br>> write/save.<br>> Have you any user specific initialisation in the user whose<br>> crontab
<br>> you're editing's $HOME? i.e. If you're setting up the crontab for<br>> logadmin, whilst logged in *as* logadmin, is there a<br>> $HOME/.vimrc file<br>> or similar?<br>>
<br>> If you just run vi/vim without passing it any files to edit<br>> then do<br>><br>> :set<br>><br>> ... what does that result it? On a vanilla system here with<br>> vim-enhanced installed and no customisations, running vi I get...
<br>><br>> :set<br>> --- Options ---<br>> backspace=2 history=50 ttyfast<br>> t_Sf=^[[3%dm<br>> cscopetag hlsearch ttymouse=xterm
<br>> cscopeverbose ruler viminfo='20,"50<br>> helplang=en scroll=11 t_Sb=^[[4%dm<br>> cscopeprg=/usr/bin/cscope<br>> fileencodings=utf-8,latin1
<br>> Hit ENTER or type command to continue<br>><br>> Compare that to what you get by default and what you get when<br>> you run<br>> crontab -e. If I run crontab -e then examine vi's environment it's
<br>> just...<br>><br>> :set<br>> --- Options ---<br>> backspace=2 history=50 scroll=11<br>> ttyfast<br>> fileencoding=utf-8<br>> fileencodings=ucs-bom,utf-8,latin1
<br>> Hit ENTER or type command to continue<br>><br>><br>> Will.<br>> _______________________________________________<br>> CentOS mailing list<br>> <a href="mailto:CentOS@centos.org">
CentOS@centos.org</a> <mailto:<a href="mailto:CentOS@centos.org">CentOS@centos.org</a>><br>> <a href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</a><br>
><br>><br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________<br>> CentOS mailing list<br>> <a href="mailto:CentOS@centos.org">
CentOS@centos.org</a><br>> <a href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</a><br>><br><br><br>_______________________________________________<br>CentOS mailing list
<br><a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br><a href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</a><br></blockquote></div><br>