Re: [SLE] How to correct a chmod +x * -R command
Alexandr Malusek <Alexandr.Malusek@imv.liu.se> wrote:
Jon Clausen <dsl23212@vip.cybercity.dk> writes:
I have done a stupid thing and issued a chmod +x * -R command while in the / directory.
----<text snipped>-----
I guess a 4-5 lines script can do it. It's not difficult nevertheless some time must be spend on testing since a bug can make the system unusable.
-- A.M.
I have been reading this thread with interest. I reminded me of a similar post last December as follows: # # Subject: Re: [suse-security] Help needed / Permissions SuSE 7.3 # Date: Thu, 5 Dec 2002 2:55 EST # From: Markus Gaugusch <markus@gaugusch.at> # To: SuSE-Security <suse-security@suse.com> & Philippe Vogel # # *On Dec 5, Philippe Vogel <filiaap@freenet.de> wrote: #> I did a bloody error. #> #> I made a permissions script to be executed in a special directory #> (my ftp-dir) but I executed it by webmin, so no path was set #> and the script changed all default permissions on / recursively. #> #> SuSEconfig brought me some control over the system back #> and even chowned /usr/lib to root:bin. #> #> Does anybody know the default permissions on SuSE 7.3 #> or to which mailinglist I could write this? # # (as root) for i in `rpm -qa` ; do rpm --setperms $i ; done # # hth # Markus # -- # __________________ /"\ # Markus Gaugusch \ / ASCII Ribbon Campaign # markus@gaugusch.at X Against HTML Mail # / \ # -- # IFIWM, I would do "SuSEconfig --verbose" first. Then, I would consider emailing Markus and ask him if his script would work here too. YMMV. HTH, Gar -- __________________________________________________________________ New! Unlimited Access from the Netscape Internet Service. Beta test the new Netscape Internet Service for only $1.00 per month until 3/1/04. Sign up today at http://isp.netscape.com/register Act now to get a personalized email address! Netscape. Just the Net You Need.
SuSE8.1root# for i in `rpm -qa` ; do rpm --setperms $i ; done rpm: extra arguments given for query of all packages Happened too fast for anything to have been done. Any more ideas? http://lists.suse.com/archive/suse-security/2002-Dec/0082.html doesn't really explain how to do all packages. -- "You will know the truth, and the truth will set you free." John 8:32 NIV Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://members.ij.net/mrmazda/
participants (2)
-
Felix Miata
-
GarUlbricht7@netscape.net