base-files problem
Hi, The changes in base-files deleted everything from /etc/skel, I re-installed 4.0-9 and still nothing. I can see in the package list that there should be the usual files there, did some post-install script deleted those files? Anyone seen the same problem? (i.e. your bash prompt changed, no longer shows the current directory). Any idea what is causing this? It started yesterday after I updated a few packages, base-files was not even listed as installed, which is strange, I then re-installed it. -- René Berber -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: base-files problem
On Thu, Feb 16, 2012 at 12:22:25PM -0600, René Berber wrote: Hi, The changes in base-files deleted everything from /etc/skel, I re-installed 4.0-9 and still nothing. I can see in the package list that there should be the usual files there, did some post-install script deleted those files? Anyone seen the same problem? (i.e. your bash prompt changed, no longer shows the current directory). Any idea what is causing this? It started yesterday after I updated a few packages, base-files was not even listed as installed, which is strange, I then re-installed it. I have just updated a box from base-files-4.0-6 to 4.0-9 and everything worked as expected. I tried both with locally modified and unmodified skel files. $ grep base-files /etc/defaults/etc/skel/.* /etc/defaults/etc/skel/.bash_profile:# base-files version 4.0-9 /etc/defaults/etc/skel/.bashrc:# base-files version 4.0-9 /etc/defaults/etc/skel/.inputrc:# base-files version 4.0-9 /etc/defaults/etc/skel/.profile:# base-files version 4.0-9 The process of checking wether the files have to be replaced has not changed since 4.0-4 (march 2011) at least. And IIRC, it was barely the same in the 3.x version as well. If reinstalling fails as well, does an error get printed? -- Huella de clave primaria: AD8F BDC0 5A2C FD5F A179 60E7 F79B AB04 5299 EC56 signature.asc Description: Digital signature
Re: base-files problem
On 2/16/2012 2:41 PM, David Sastre Medina wrote: I have just updated a box from base-files-4.0-6 to 4.0-9 and everything worked as expected. I tried both with locally modified and unmodified skel files. $ grep base-files /etc/defaults/etc/skel/.* /etc/defaults/etc/skel/.bash_profile:# base-files version 4.0-9 /etc/defaults/etc/skel/.bashrc:# base-files version 4.0-9 /etc/defaults/etc/skel/.inputrc:# base-files version 4.0-9 /etc/defaults/etc/skel/.profile:# base-files version 4.0-9 The process of checking wether[SIC] the files have to be replaced has not changed since 4.0-4 (march 2011) at least. And IIRC, it was barely the same in the 3.x version as well. If reinstalling fails as well, does an error get printed? Its not /etc/defaults/etc/... but /etc/skel/.*, and the files where not deleted, just changed in a way I no longer had a PS1. I also lost PROMPT_COMMAND which also showed the current directory. Its possible that I had changed them so the problem is really that those files where replaced, probably my mistake if I had modified the wrong files (I thought the /etc/skel where the ones I should modify, and not touch the /etc/defaults/ files). When I did the update there where no Cygwin processes running, so I did not have any message about stopping anything and retrying, or needing reboot. But another strange thing was that a new terminal (with a login shell) did not put me at my $HOME directory, until later after I re-installed. The log doesn't show any erros: $ tail /var/log/setup.log 2012/02/15 19:31:43 Downloaded C:\Cygwin\tmp/http%3a%2f%2fsourceware.mirrors.tds.net%2fpub%2fsourceware.org%2fcygwin%2f/release/base-files/base-files-4.0-9.tar.bz2 2012/02/15 19:31:47 Downloaded C:\Cygwin\tmp/http%3a%2f%2fsourceware.mirrors.tds.net%2fpub%2fsourceware.org%2fcygwin%2f/release/git/git-1.7.9-1.tar.bz2 2012/02/15 19:31:49 Extracting from file://C:\Cygwin\tmp/http%3a%2f%2fsourceware.mirrors.tds.net%2fpub%2fsourceware.org%2fcygwin%2f/release/base-files/base-files-4.0-9.tar.bz2 2012/02/15 19:31:49 Extracting from file://C:\Cygwin\tmp/http%3a%2f%2fsourceware.mirrors.tds.net%2fpub%2fsourceware.org%2fcygwin%2f/release/git/git-1.7.9-1.tar.bz2 2012/02/15 19:31:52 Changing gid back to original 2012/02/15 19:31:52 running: C:\Cygwin\bin\bash.exe --norc --noprofile /etc/postinstall/base-files-profile.sh 2012/02/15 19:31:54 running: C:\Cygwin\bin\bash.exe --norc --noprofile /etc/postinstall/base-files-mketc.sh 2012/02/15 19:31:55 Changing gid to Administrators 2012/02/15 19:32:00 note: Installation Complete 2012/02/15 19:32:00 Ending cygwin install And there are no .new files left, or post-install scripts with a name not ending in .done . -- René Berber -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: base-files problem
After the upgrade to 4.0-9, I have $ ls -lrt /etc/skel/ totale 0 $ ls -lrt /etc/ [...] -rw-r--r-- 1 root root 6994 16 feb 20.07 profile -rw-r--r-- 1 root root 1116 16 feb 20.07 bash.bashrc -rw-r--r-- 1 root root 856 16 feb 20.07 bash.bash_logout drwxr-xr-x 1 root Nessuno 0 16 feb 20.07 skel This is wrong in my case: I changed passwd/group files so that I should have root root and not root Nessuno (Nessuno == nobody) Besides this, as you can see, in /etc there is bash.bashrc and bash.bash_logout files.. Is this right? But I notice this too: As normal user (not root) $ ls -lrt /etc/defaults/etc/skel/ ls: impossibile aprire la directory /etc/defaults/etc/skel/: Permission denied As root $ ls -lrt /etc/defaults/etc/skel/ totale 0 and $ ls -lrt /etc/defaults/etc/ [...] drwxrws---+ 1 root root0 16 feb 20.07 skel Are these permissions right? I think there is some problem here.. I will try to revert to -6... Ciao, Angelo. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: base-files problem
Il 16/02/2012 22.24, Angelo Graziosi ha scritto: After the upgrade to 4.0-9, I have $ ls -lrt /etc/skel/ totale 0 $ ls -lrt /etc/ [...] -rw-r--r-- 1 root root 6994 16 feb 20.07 profile -rw-r--r-- 1 root root 1116 16 feb 20.07 bash.bashrc -rw-r--r-- 1 root root 856 16 feb 20.07 bash.bash_logout drwxr-xr-x 1 root Nessuno 0 16 feb 20.07 skel This is wrong in my case: I changed passwd/group files so that I should have root root and not root Nessuno (Nessuno == nobody) Besides this, as you can see, in /etc there is bash.bashrc and bash.bash_logout files.. Is this right? But I notice this too: As normal user (not root) $ ls -lrt /etc/defaults/etc/skel/ ls: impossibile aprire la directory /etc/defaults/etc/skel/: Permission denied As root $ ls -lrt /etc/defaults/etc/skel/ totale 0 and $ ls -lrt /etc/defaults/etc/ [...] drwxrws---+ 1 root root 0 16 feb 20.07 skel Are these permissions right? I think there is some problem here.. I will try to revert to -6... Downgrading fo 4.0-6 leaves /etc/skel and /etc/defaults/etc/skel empty... Is this right? Ciao, Angelo. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: base-files problem
On 2/16/2012 4:24 PM, Angelo Graziosi wrote: As normal user (not root) $ ls -lrt /etc/defaults/etc/skel/ ls: impossibile aprire la directory /etc/defaults/etc/skel/: Permission denied As root $ ls -lrt /etc/defaults/etc/skel/ totale 0 and $ ls -lrt /etc/defaults/etc/ [...] drwxrws---+ 1 root root 0 16 feb 20.07 skel Are these permissions right? The postinstall and preremove scripts also have unusual permissions (not world-readable). Ken -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: base-files problem
On Thu, Feb 16, 2012 at 03:02:16PM -0600, René Berber wrote: On 2/16/2012 2:41 PM, David Sastre Medina wrote: and the files where not deleted, just changed in a way I no longer had a PS1. PS1 is set and exported in /etc/profile I also lost PROMPT_COMMAND which also showed the current directory. The default PROMPT_COMMAND is set (commented) in skeletal .bash_profile to 'history -a', which has nothing to do with showing your PWD. Its possible that I had changed them so the problem is really that those files where replaced, probably my mistake if I had modified the wrong files (I thought the /etc/skel where the ones I should modify, and not touch the /etc/defaults/ files). The test in the preremove step is done comparing the files under /etc/skel against those under /etc/defaults/etc/skel. If locally modified /etc/skel/* files have been removed, that's unexpected. But there is no way installing base-files could partially modify your /etc/skel/* files. Even if they were wrongly replaced, you should have exactly version 4.0-9 files, not partially modified ones. -- Huella de clave primaria: AD8F BDC0 5A2C FD5F A179 60E7 F79B AB04 5299 EC56 signature.asc Description: Digital signature
Re: base-files problem
On Thu, Feb 16, 2012 at 05:07:40PM -0500, Ken Brown wrote: On 2/16/2012 4:24 PM, Angelo Graziosi wrote: As normal user (not root) $ ls -lrt /etc/defaults/etc/skel/ ls: impossibile aprire la directory /etc/defaults/etc/skel/: Permission denied As root $ ls -lrt /etc/defaults/etc/skel/ totale 0 $ ls -lrt /etc/defaults/etc/ [...] drwxrws---+ 1 root root 0 16 feb 20.07 skel Are these permissions right? The postinstall and preremove scripts also have unusual permissions (not world-readable). The package does have a wrong permissions mask. That may have prevented the execution of preremove/postinstall scripts, but I can't reproduce it. I have downgraded to 4.0-6 and upgraded again without failures, but this cygwin is installed by an Admin user system-wide. I'll release a package correcting the permissions ASAP. -- Huella de clave primaria: AD8F BDC0 5A2C FD5F A179 60E7 F79B AB04 5299 EC56 signature.asc Description: Digital signature
Re: base-files problem
On 2/16/2012 4:14 PM, David Sastre Medina wrote: PS1 is set and exported in /etc/profile Which was also replaced. I also lost PROMPT_COMMAND which also showed the current directory. The default PROMPT_COMMAND is set (commented) in skeletal .bash_profile to 'history -a', which has nothing to do with showing your PWD. The test in the preremove step is done comparing the files under /etc/skel against those under /etc/defaults/etc/skel. If locally modified /etc/skel/* files have been removed, that's unexpected. Since it appears that I changed something, and it was long ago so I don't remember if it was /etc/profile or /etc/skel/.bashrc we can't tell for sure what was the problem. But there is no way installing base-files could partially modify your /etc/skel/* files. Even if they were wrongly replaced, you should have exactly version 4.0-9 files, not partially modified ones. I have replaced files, not the old ones which I'm sure where there, but I'm not sure if there was a modified .bashrc (I usually don't change any of the others). Thanks for your help. -- René Berber -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple