Re: [SLE] How to correct a chmod +x * -R command
GarUlbricht7@netscape.net wrote:
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
--
Keith, I have been doing more research. In a post entitled: "Re: [suse-security] Help needed/Permissions SuSE 7.3" Philippe Vogel (filiaap_at_freenet.de) on Thu Dec 05 2002 - 14:47:54 CET reported sucess following the above formula as given by Markus. http://lists.suse.com/archive/suse-security/2002-Dec/0082.html This feature of rpm is not well documented on the rpm man pages; however, it has been a feature of rpm for over 5 years. Hope this helps, Friendly greetings, 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.
participants (1)
-
GarUlbricht7@netscape.net