Re: Fixing file system privileges

2002-05-13 Thread Javier Fernández-Sanguino Peña
On Sat, May 11, 2002 at 08:16:28AM +0200, martin f krafft wrote: also sprach Peter Cordes [EMAIL PROTECTED] [2002.05.11.0155 +0200]: nope, purge is a possible status too. since when? fishbowl:~ dpkg --get-selections | grep purge fishbowl:~ $ dpkg --get-selections * |grep purge |wc

Re: Fixing file system privileges

2002-05-13 Thread Kovacs Istvan
Hi, I ended up with an awk one-liner (like those proposed here). I also had to run MAKEDEV to fix device permissions, and then fix several files manually (e.g. sshd will not start with keys being world readable). I did an 'ls -lR /' on my home machine, then wrote a script (in rexx, sorry, I'm

Re: Fixing file system privileges

2002-05-13 Thread Peter Cordes
On Mon, May 13, 2002 at 12:24:32PM +0200, Javier Fern?ndez-Sanguino Pe?a wrote: $ dpkg --get-selections * |grep purge |wc 9237 18474 207308 llama:~$ dpkg --get-selections | wc 5881176 12713 llama:~$ dpkg --get-selections * | wc 5854 11708 124423 Just stick with

Re: Fixing file system privileges

2002-05-13 Thread Peter Cordes
On Mon, May 13, 2002 at 04:22:19PM +0200, Kovacs Istvan wrote: Hi, I ended up with an awk one-liner (like those proposed here). I also had to run MAKEDEV to fix device permissions, and then fix several files manually (e.g. sshd will not start with keys being world readable). I did an 'ls

Re: Fixing file system privileges

2002-05-13 Thread Javier Fernández-Sanguino Peña
On Sat, May 11, 2002 at 08:16:28AM +0200, martin f krafft wrote: also sprach Peter Cordes [EMAIL PROTECTED] [2002.05.11.0155 +0200]: nope, purge is a possible status too. since when? fishbowl:~ dpkg --get-selections | grep purge fishbowl:~ $ dpkg --get-selections * |grep purge |wc

Re: Fixing file system privileges

2002-05-13 Thread Kovacs Istvan
Hi, I ended up with an awk one-liner (like those proposed here). I also had to run MAKEDEV to fix device permissions, and then fix several files manually (e.g. sshd will not start with keys being world readable). I did an 'ls -lR /' on my home machine, then wrote a script (in rexx, sorry, I'm not

Re: Fixing file system privileges

2002-05-13 Thread Peter Cordes
On Mon, May 13, 2002 at 12:24:32PM +0200, Javier Fern?ndez-Sanguino Pe?a wrote: $ dpkg --get-selections * |grep purge |wc 9237 18474 207308 llama:~$ dpkg --get-selections | wc 5881176 12713 llama:~$ dpkg --get-selections * | wc 5854 11708 124423 Just stick with

Re: Fixing file system privileges

2002-05-13 Thread Peter Cordes
On Mon, May 13, 2002 at 04:22:19PM +0200, Kovacs Istvan wrote: Hi, I ended up with an awk one-liner (like those proposed here). I also had to run MAKEDEV to fix device permissions, and then fix several files manually (e.g. sshd will not start with keys being world readable). I did an 'ls

Re: Fixing file system privileges

2002-05-12 Thread Andrew Pimlott
On Fri, May 10, 2002 at 08:55:40PM -0300, Peter Cordes wrote: dpkg --get-selections | grep '[^A-Za-z]install$' | cut -f1 should work. In the interests of saving you some typing in the future, try grep -w install :-) Andrew -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject

Re: Fixing file system privileges

2002-05-12 Thread Peter Cordes
On Sat, May 11, 2002 at 08:16:28AM +0200, martin f krafft wrote: also sprach Peter Cordes [EMAIL PROTECTED] [2002.05.11.0155 +0200]: nope, purge is a possible status too. since when? Probably a long time. I don't know when or why dpkg updates it's status thing for all packages, even ones

Re: Fixing file system privileges

2002-05-12 Thread Andrew Pimlott
On Fri, May 10, 2002 at 08:55:40PM -0300, Peter Cordes wrote: dpkg --get-selections | grep '[^A-Za-z]install$' | cut -f1 should work. In the interests of saving you some typing in the future, try grep -w install :-) Andrew -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject

Re: Fixing file system privileges

2002-05-12 Thread Peter Cordes
On Sat, May 11, 2002 at 08:16:28AM +0200, martin f krafft wrote: also sprach Peter Cordes [EMAIL PROTECTED] [2002.05.11.0155 +0200]: nope, purge is a possible status too. since when? Probably a long time. I don't know when or why dpkg updates it's status thing for all packages, even ones

Re: Fixing file system privileges

2002-05-12 Thread Sam Couter
Peter Cordes [EMAIL PROTECTED] wrote: dpkg --get-selections | grep '[^A-Za-z]install$' | cut -f1 should work. This time for sure :) How about matching what you really want instead of guessing with grep: The second field is exactly install. And how about doing it all with one command

Re: Fixing file system privileges

2002-05-11 Thread martin f krafft
also sprach Peter Cordes [EMAIL PROTECTED] [2002.05.11.0155 +0200]: nope, purge is a possible status too. since when? fishbowl:~ dpkg --get-selections | grep purge fishbowl:~ -- martin; (greetings from the heart of the sun.) \ echo mailto: !#^.*|tr * mailto:; net@madduck

Re: Fixing file system privileges

2002-05-11 Thread David Stanaway
On Sat, 2002-05-11 at 01:16, martin f krafft wrote: also sprach Peter Cordes [EMAIL PROTECTED] [2002.05.11.0155 +0200]: nope, purge is a possible status too. since when? Since the last time you hit _ in dselect maybe. dstanawa@ciderbox:~$ dpkg --get-selections |grep purge aptitude

Re: Fixing file system privileges

2002-05-11 Thread martin f krafft
also sprach David Stanaway [EMAIL PROTECTED] [2002.05.11.0904 +0200]: Since the last time you hit _ in dselect maybe. dstanawa@ciderbox:~$ dpkg --get-selections |grep purge aptitude purge dstanawa@ciderbox:~$ sudo dpkg --purge aptitude (Reading database

Re: Fixing file system privileges

2002-05-11 Thread martin f krafft
also sprach Peter Cordes [EMAIL PROTECTED] [2002.05.11.0155 +0200]: nope, purge is a possible status too. since when? fishbowl:~ dpkg --get-selections | grep purge fishbowl:~ -- martin; (greetings from the heart of the sun.) \ echo mailto: !#^.*|tr * mailto:; [EMAIL

Re: Fixing file system privileges

2002-05-11 Thread David Stanaway
On Sat, 2002-05-11 at 01:16, martin f krafft wrote: also sprach Peter Cordes [EMAIL PROTECTED] [2002.05.11.0155 +0200]: nope, purge is a possible status too. since when? Since the last time you hit _ in dselect maybe. [EMAIL PROTECTED]:~$ dpkg --get-selections |grep purge aptitude

Re: Fixing file system privileges

2002-05-11 Thread martin f krafft
also sprach David Stanaway [EMAIL PROTECTED] [2002.05.11.0904 +0200]: Since the last time you hit _ in dselect maybe. [EMAIL PROTECTED]:~$ dpkg --get-selections |grep purge aptitude purge [EMAIL PROTECTED]:~$ sudo dpkg --purge aptitude (Reading database

Re: Fixing file system privileges

2002-05-10 Thread Peter Cordes
On Thu, May 09, 2002 at 05:35:58PM +0200, martin f krafft wrote: also sprach Kovacs Istvan [EMAIL PROTECTED] [2002.05.09.1621 +0200]: I screwed up file system privileges, issuing a chmod -R in the wrong (/ -- where else?) directory :-( Is there a way to fix this? yes, if you have a

Re: Fixing file system privileges

2002-05-10 Thread Matt Zimmerman
On Fri, May 10, 2002 at 04:08:24PM -0300, Peter Cordes wrote: You can do something like apt-get install --reinstall $(dpgk --get-selections|cut -f1) You may have to grep out some packages that aren't available anymore from your get-selections output, but that should get most stuff. You

Re: Fixing file system privileges

2002-05-10 Thread martin f krafft
also sprach Peter Cordes [EMAIL PROTECTED] [2002.05.10.2333 +0200]: Err, I guess you would need get-selections|grep 'install$'|cut -f1 why not dpkg --get-selections|grep -v 'deinstall$'|cut -f1 you want to save status, and since 'install$' matches lines ending in 'deinstall' as well ;^ --

Re: Fixing file system privileges

2002-05-10 Thread Peter Cordes
On Sat, May 11, 2002 at 01:21:19AM +0200, martin f krafft wrote: also sprach Peter Cordes [EMAIL PROTECTED] [2002.05.10.2333 +0200]: Err, I guess you would need get-selections|grep 'install$'|cut -f1 why not dpkg --get-selections|grep -v 'deinstall$'|cut -f1 you want to save

Re: Fixing file system privileges

2002-05-10 Thread Peter Cordes
On Thu, May 09, 2002 at 05:35:58PM +0200, martin f krafft wrote: also sprach Kovacs Istvan [EMAIL PROTECTED] [2002.05.09.1621 +0200]: I screwed up file system privileges, issuing a chmod -R in the wrong (/ -- where else?) directory :-( Is there a way to fix this? yes, if you have a

Re: Fixing file system privileges

2002-05-10 Thread Matt Zimmerman
On Fri, May 10, 2002 at 04:08:24PM -0300, Peter Cordes wrote: You can do something like apt-get install --reinstall $(dpgk --get-selections|cut -f1) You may have to grep out some packages that aren't available anymore from your get-selections output, but that should get most stuff. You

Re: Fixing file system privileges

2002-05-10 Thread Peter Cordes
On Fri, May 10, 2002 at 04:31:24PM -0400, Matt Zimmerman wrote: On Fri, May 10, 2002 at 04:08:24PM -0300, Peter Cordes wrote: You can do something like apt-get install --reinstall $(dpgk --get-selections|cut -f1) You may have to grep out some packages that aren't available anymore

Re: Fixing file system privileges

2002-05-10 Thread martin f krafft
also sprach Peter Cordes [EMAIL PROTECTED] [2002.05.10.2333 +0200]: Err, I guess you would need get-selections|grep 'install$'|cut -f1 why not dpkg --get-selections|grep -v 'deinstall$'|cut -f1 you want to save status, and since 'install$' matches lines ending in 'deinstall' as well ;^ --

Re: Fixing file system privileges

2002-05-10 Thread Peter Cordes
On Sat, May 11, 2002 at 01:21:19AM +0200, martin f krafft wrote: also sprach Peter Cordes [EMAIL PROTECTED] [2002.05.10.2333 +0200]: Err, I guess you would need get-selections|grep 'install$'|cut -f1 why not dpkg --get-selections|grep -v 'deinstall$'|cut -f1 you want to save status,

Fixing file system privileges

2002-05-09 Thread Kovacs Istvan
Hi, I screwed up file system privileges, issuing a chmod -R in the wrong (/ -- where else?) directory :-( Is there a way to fix this? TIA, Kofa Homepage at http://emil.alarmix.org/kofa/ For PGP public key: send mail with the subject PGP Public Key Request or finger [EMAIL PROTECTED] -- To