very bad permission advice on my part
I was helping someone with permissions setup and made a drastic mistake :-(. chmod -Rf 770 /
did not do good things at all. In my apparently dumb mind I thought it would do something different then it did, does anyone know of a way to set the permissions back to defualt? Oh man, and killer, if you read this, my most sincere apologies. I am not looking forward to a reinstall.... onelung |
its ok, if someone is able to help in this [undo the effects of the command and return the permissions to its original way ] we'd really appreciate the help.
anything is good thanx |
Fastest/easiest way to reset permissions I can think of is to( as root ):
remount Slackware source files cd /tolevel/slackware/ upgradepkg --reinstall ./*/*.tgz blow away the different 'config'.new files created by the upgrade should work ppd |
You can also look at the Manifest.gz which will give you the perms for the file, or boot CD #2 and have a look at the file perms there.
|
there is a script that uses the Manifest file to restore permissions
of files installed by Slackware. look here..: http://homepages.paradise.net.nz/~cameronk/progs.html it's called smprms. there's also an example of how to use it. egag |
i tried this already and something weird came out, that suppossedly MANIFEST.gz is not a gzip, and i dunno why lol since it says .GZ or so, im in school right now so i cant work on anything at all, since on remote i cant use the whole root stuff, but as soon as i get home, id like to start on it, if someone can help me and lung to figure this out on a quick easy and well explained way, we'd really appreciate
|
Quote:
|
What I meant by:
cd /tolevel/slackware/ Assuming you mounted the Slack cd at /mnt/cdrom then you would cd /mnt/cdrom/slackware/ Immediately below this level is the a,ap,d... levels the first * in ./*/*.tgz is replaced by a,ap,d etc; the second * by the package name. You can also just drop the first * and cd to a specific package series (ie /mnt/cdrom/slackware/n/) Note rerunning lilo is advised whenever this is done to the a series ppd |
All times are GMT -5. The time now is 09:11 PM. |