Re: chmod every file to 777
- From: "Joachim Schmitz" <nospam.jojo@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 21 Nov 2008 15:26:56 +0100
michiedo@xxxxxxxx wrote:
I've put a blank in the wrong place ...while issuing
sudo chmod -R 777 /opt/somedir...and then something awful, that i dont
write here because it could be mis-interpreted as a malicous command
the result is that now each and every file in my system has permission
777
lovely i would say
:-(((
i've fixed the /etc/sudoers permissions back to 440 ....
the best thing i can imagine for now is "chmod" every system folder to
more restrictive permissions: very annoying, to say the least.
Or maybe: save my foders and reinstall (i would HATE it);
or, probably better restore the backup of may partition, it' one week
old.
It could be a choice, but i'll be grateful for every suggestion...
some clever shell script ....
Thank you in advance
If you have a backup, even an older one, you may be able to use it's permissions, i.e. list the archive content, extract fthe names of the files and their permissions and to the chmod with this.
Depending on which installation method is used with this bmachine, the package management may have the ability to check desired permissions. As far as I remember the SysV pkg tools can do this and I think Linux' rpm can do it too.
Bye, Jojo
.
- Follow-Ups:
- Re: chmod every file to 777
- From: michiedo
- Re: chmod every file to 777
- References:
- chmod every file to 777
- From: michiedo
- chmod every file to 777
- Prev by Date: Re: chmod every file to 777
- Next by Date: Re: chmod every file to 777
- Previous by thread: Re: chmod every file to 777
- Next by thread: Re: chmod every file to 777
- Index(es):
Relevant Pages
|