RE: Need help to set right ownerships
If you like, I'll email you a script to run through a file containing filenames and permissions as set on my system and set the permissions similarly on yours. This would cure most of your files. My installation is quite new and I've made no radical permission changes, so it's safe enough, I think. Casper Boden-Cummins. >-- >From: [EMAIL PROTECTED]:[EMAIL PROTECTED] >Sent: 20 August 1996 13:04 >To:debian-user@lists.debian.org; Bruce Perens >Cc:The recipient's address is unknown. >Subject: Need help to set right ownerships > >Hi, >Anybody can help me, please? I really need to be sure how to fix this. >Logged as root I did: > ># cd /home/lds ; chown -R lds.users * ; ls -laR | more > >and noticing that I forgot to change the ownership of the (hidden) dot >files >I typed: > ># chown -R lds:users ~/.* > >Uc! the `*' expands to `.' among others. By the time I noticed my >two >mistakes and pressed CTRL-C, I had already changed the ownership of >/root, >/home, and some subdirs in /var and /usr. > >I saved on a floppy a list (find $dir -exec ls -laR {} \; | grep "lds > >users") with $dir set to /usr and /var. I fixed the ownerships of /root >and >/home by hand and the I typed > ># shutdown -r now > >That was not very clever :-( but I was thinking of fixing everything >when having >more time, from an emergency base system I have on a separate 16MB >partition. >I am not quite sure how to deal with the files in /var which are >written at >boot time ... ooops! and at shutdown tooo! :-( >Maybe it help to mention that I have /, /var, /usr, /usr/local and >/home (and >swap) on separate partitions. > >Right now I know which files have the wrong ownership but do not know >what >should be the right one. I thought of setting the ownership to >root:root to the >files in the list and then fix by hand those who shoud be owned by >other system >group (news, mail,...etc). I think that then I should proceed by >fixing file by >file, i.e., >0)Fixing those in /var/lib/dpkg (any pointer about how to do it?) >1)removing all installed packages except those flaged as essential >(base), >2)comparing file by file with a fresh Debian 1.1.x base system (I have >one). >3)Reinstalling again the packages. > >Any suggestion to make it as safer/cleaner/greener/faster as possible >will be >greatly appreciated. A script maybe to do it automatically?' >I am not suscribed to the list right now so please answer this to >my private e-mail. Thank you very much, > >Lazaro <[EMAIL PROTECTED]> > > >
Re[2]: Need help to set right ownerships
Hi Ken, Yes.. I know that should have made in a different way and yours is one of the possibilities (provided that there are not files beginning with two dots like /home/lds/..a_weird_name_for a file. I know that under the ksh I could have used # cd /home/lds ; chown -R lds:users .[!.]* .??* *) to match all files which do not begin with two dots (like ..) AND the files which begin with two dots but have more than two characters like ..a :-( :-( But now that I made the mistake I need to fix it! :-)? I have not done yet, still waiting for suggestions. Thanks, lazaro <[EMAIL PROTECTED]> __ Reply Separator _ Subject: Re: Need help to set right ownerships Author: debian-user@lists.debian.org at cclink Date:21.08.96 02:45 At 12:04 PM 8/20/96 cet, you wrote: >Hi, >Anybody can help me, please? I really need to be sure how to fix this. >Logged as root I did: > ># cd /home/lds ; chown -R lds.users * ; ls -laR | more > >and noticing that I forgot to change the ownership of the (hidden) dot files >I typed: > ># chown -R lds:users ~/.* > >Uc! the `*' expands to `.' among others. By the time I noticed my two >mistakes and pressed CTRL-C, I had already changed the ownership of /root, >/home, and some subdirs in /var and /usr. > >I saved on a floppy a list (find $dir -exec ls -laR {} \; | grep "lds >users") with $dir set to /usr and /var. I fixed the ownerships of /root and >/home by hand and the I typed > ># shutdown -r now > >That was not very clever :-( but I was thinking of fixing everything when having >more time, from an emergency base system I have on a separate 16MB partition. >I am not quite sure how to deal with the files in /var which are written at >boot time ... ooops! and at shutdown tooo! :-( >Maybe it help to mention that I have /, /var, /usr, /usr/local and /home (and >swap) on separate partitions. > >Right now I know which files have the wrong ownership but do not know what >should be the right one. I thought of setting the ownership to root:root to the >files in the list and then fix by hand those who shoud be owned by other system >group (news, mail,...etc). I think that then I should proceed by fixing file by >file, i.e., >0)Fixing those in /var/lib/dpkg (any pointer about how to do it?) >1)removing all installed packages except those flaged as essential (base), >2)comparing file by file with a fresh Debian 1.1.x base system (I have one). >3)Reinstalling again the packages. > >Any suggestion to make it as safer/cleaner/greener/faster as possible will be >greatly appreciated. A script maybe to do it automatically?' >I am not suscribed to the list right now so please answer this to >my private e-mail. Thank you very much, > >Lazaro <[EMAIL PROTECTED]> > > > > You should have used chown -R lds:users ./.[a-zA-Z]* --- Key fingerprint = D6 A7 D7 8C 92 CB 42 FD 60 D5 62 1C D7 B9 EA 8E Ken Gaugler N6OSK Hybrid Networks, Inc. Cupertino, Calif. URL: www.hybrid.com (home: [EMAIL PROTECTED] URL: users.aimnet.com/~keng) "The life of a Repo Man is ALWAYS INTENSE..."
Re: Need help to set right ownerships
At 12:04 PM 8/20/96 cet, you wrote: >Hi, >Anybody can help me, please? I really need to be sure how to fix this. >Logged as root I did: > ># cd /home/lds ; chown -R lds.users * ; ls -laR | more > >and noticing that I forgot to change the ownership of the (hidden) dot files >I typed: > ># chown -R lds:users ~/.* > >Uc! the `*' expands to `.' among others. By the time I noticed my two >mistakes and pressed CTRL-C, I had already changed the ownership of /root, >/home, and some subdirs in /var and /usr. > >I saved on a floppy a list (find $dir -exec ls -laR {} \; | grep "lds >users") with $dir set to /usr and /var. I fixed the ownerships of /root and >/home by hand and the I typed > ># shutdown -r now > >That was not very clever :-( but I was thinking of fixing everything when having >more time, from an emergency base system I have on a separate 16MB partition. >I am not quite sure how to deal with the files in /var which are written at >boot time ... ooops! and at shutdown tooo! :-( >Maybe it help to mention that I have /, /var, /usr, /usr/local and /home (and >swap) on separate partitions. > >Right now I know which files have the wrong ownership but do not know what >should be the right one. I thought of setting the ownership to root:root to the >files in the list and then fix by hand those who shoud be owned by other system >group (news, mail,...etc). I think that then I should proceed by fixing file by >file, i.e., >0)Fixing those in /var/lib/dpkg (any pointer about how to do it?) >1)removing all installed packages except those flaged as essential (base), >2)comparing file by file with a fresh Debian 1.1.x base system (I have one). >3)Reinstalling again the packages. > >Any suggestion to make it as safer/cleaner/greener/faster as possible will be >greatly appreciated. A script maybe to do it automatically?' >I am not suscribed to the list right now so please answer this to >my private e-mail. Thank you very much, > >Lazaro <[EMAIL PROTECTED]> > > > > You should have used chown -R lds:users ./.[a-zA-Z]* --- Key fingerprint = D6 A7 D7 8C 92 CB 42 FD 60 D5 62 1C D7 B9 EA 8E Ken Gaugler N6OSK Hybrid Networks, Inc. Cupertino, Calif. URL: www.hybrid.com (home: [EMAIL PROTECTED] URL: users.aimnet.com/~keng) "The life of a Repo Man is ALWAYS INTENSE..."
Need help to set right ownerships
Hi, Anybody can help me, please? I really need to be sure how to fix this. Logged as root I did: # cd /home/lds ; chown -R lds.users * ; ls -laR | more and noticing that I forgot to change the ownership of the (hidden) dot files I typed: # chown -R lds:users ~/.* Uc! the `*' expands to `.' among others. By the time I noticed my two mistakes and pressed CTRL-C, I had already changed the ownership of /root, /home, and some subdirs in /var and /usr. I saved on a floppy a list (find $dir -exec ls -laR {} \; | grep "lds users") with $dir set to /usr and /var. I fixed the ownerships of /root and /home by hand and the I typed # shutdown -r now That was not very clever :-( but I was thinking of fixing everything when having more time, from an emergency base system I have on a separate 16MB partition. I am not quite sure how to deal with the files in /var which are written at boot time ... ooops! and at shutdown tooo! :-( Maybe it help to mention that I have /, /var, /usr, /usr/local and /home (and swap) on separate partitions. Right now I know which files have the wrong ownership but do not know what should be the right one. I thought of setting the ownership to root:root to the files in the list and then fix by hand those who shoud be owned by other system group (news, mail,...etc). I think that then I should proceed by fixing file by file, i.e., 0)Fixing those in /var/lib/dpkg (any pointer about how to do it?) 1)removing all installed packages except those flaged as essential (base), 2)comparing file by file with a fresh Debian 1.1.x base system (I have one). 3)Reinstalling again the packages. Any suggestion to make it as safer/cleaner/greener/faster as possible will be greatly appreciated. A script maybe to do it automatically?' I am not suscribed to the list right now so please answer this to my private e-mail. Thank you very much, Lazaro <[EMAIL PROTECTED]>