LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   very bad permission advice on my part (https://www.linuxquestions.org/questions/slackware-14/very-bad-permission-advice-on-my-part-322228/)

onelung02 05-10-2005 11:57 PM

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

k1ll3r_x 05-11-2005 12:07 AM

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

PDock 05-11-2005 05:44 AM

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

gnashley 05-11-2005 06:29 AM

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.

egag 05-11-2005 07:10 AM

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

k1ll3r_x 05-11-2005 10:16 AM

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

k1ll3r_x 05-11-2005 07:19 PM

Quote:

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
cd /tolevel/slackware <<< what level is that? do u mean each folder for the "/" ? for example /etc or so?

PDock 05-12-2005 06:21 AM

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.