LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-10-2005, 11:57 PM   #1
onelung02
Member
 
Registered: Oct 2003
Location: utah
Distribution: Slackware 10.0, Gentoo 2006.0
Posts: 289

Rep: Reputation: 30
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
 
Old 05-11-2005, 12:07 AM   #2
k1ll3r_x
Member
 
Registered: Sep 2004
Location: Laredo, TX
Distribution: Debian 11
Posts: 164

Rep: Reputation: 30
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
 
Old 05-11-2005, 05:44 AM   #3
PDock
Member
 
Registered: Aug 2004
Distribution: Slack10 & curr. tried numerous
Posts: 189

Rep: Reputation: 37
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
 
Old 05-11-2005, 06:29 AM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
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.
 
Old 05-11-2005, 07:10 AM   #5
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
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
 
Old 05-11-2005, 10:16 AM   #6
k1ll3r_x
Member
 
Registered: Sep 2004
Location: Laredo, TX
Distribution: Debian 11
Posts: 164

Rep: Reputation: 30
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
 
Old 05-11-2005, 07:19 PM   #7
k1ll3r_x
Member
 
Registered: Sep 2004
Location: Laredo, TX
Distribution: Debian 11
Posts: 164

Rep: Reputation: 30
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?
 
Old 05-12-2005, 06:21 AM   #8
PDock
Member
 
Registered: Aug 2004
Distribution: Slack10 & curr. tried numerous
Posts: 189

Rep: Reputation: 37
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash: bad interpreter, permission denied jpantone Linux - General 22 05-27-2010 06:05 AM
/bin/sh: bad interpreter: Permission denied itsaso Linux - Newbie 6 05-18-2005 10:00 AM
: bad interpreter: Permission denied LinuxRam Linux - Newbie 2 08-22-2004 09:33 PM
web host file permission advice radam Linux - Software 0 08-19-2004 01:48 PM
Newbie to Slack and Need advice bad! CryptDragoon Slackware 10 10-20-2003 09:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration