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 03-01-2005, 03:53 PM   #1
spaceballs
Member
 
Registered: Jan 2005
Location: Dallas, TX
Distribution: Slackware-current
Posts: 248

Rep: Reputation: 30
Exclamation Reset permissions


I must have done something stupid, and I can't quite figure out what it is. The problem is that I cannot su from my user. Fluxbox has problems bringing up a background, and no programs will run. The issue, in this noob's opinion, is that I cannot execute from /usr/bin and /bin. So I tried, as root:
chmod a+rx /bin/* and the same for /usr/bin, and nothing. What am I doing wrong? And is there a way to reset all permissions to the out of the box Slackware defaults?
 
Old 03-01-2005, 04:14 PM   #2
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
try (as root)
Code:
chmod -R 777 /bin && chown -R root:root /bin
 
Old 03-01-2005, 04:21 PM   #3
spaceballs
Member
 
Registered: Jan 2005
Location: Dallas, TX
Distribution: Slackware-current
Posts: 248

Original Poster
Rep: Reputation: 30
Not yet

chmod -R 777 /bin && chown -R root:root /bin

I tried that and it still says permission denied. Right after a Slackware install, the permissions are right. Is there any way to bring back the default permissions in the same way they are established during a fresh install?
 
Old 03-01-2005, 04:29 PM   #4
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
That that I'm aware of, and I highly doubt it.
Are you running the above code as root?
 
Old 03-01-2005, 04:30 PM   #5
spaceballs
Member
 
Registered: Jan 2005
Location: Dallas, TX
Distribution: Slackware-current
Posts: 248

Original Poster
Rep: Reputation: 30
Affirmatron. Should I try it as me?
 
Old 03-01-2005, 04:51 PM   #6
zeekx4
LQ Newbie
 
Registered: Oct 2004
Posts: 18

Rep: Reputation: 0
Just a shot in the dark.

There's a rescue mode on the slackware installs. I don't remember the exact method, but it allows you to change the root password, and then should let you change permissions on all the drives without ever actually booting into your system.

Google it, I don't think I found it on this board, but I'm sure that one of the rescue tools can do what you need.
 
Old 03-01-2005, 05:02 PM   #7
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
there is a way:

---------
smpmrs
Description
Bourne Shell (sh) and sed script for generating a script to recover all of the filesystem permissions listed in the MANIFEST.gz file. Useful for restoring permissions after a botched restore from backup. Be sure to check permissions that are not "out of box"
----------

get it here :

http://homepages.paradise.net.nz/~cameronk/progs.html

egag
 
Old 03-02-2005, 02:36 PM   #8
spaceballs
Member
 
Registered: Jan 2005
Location: Dallas, TX
Distribution: Slackware-current
Posts: 248

Original Poster
Rep: Reputation: 30
Udev-054

The problem was that udev was messed up. Now I have been updating to slackware-current, and I guess that I missed something. How could I have fixed this problem without reinstalling?
 
Old 03-02-2005, 02:45 PM   #9
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 35
Quote:
How could I have fixed this problem without reinstalling?
Get hold of the 10.1 udev package then log in as root (if you can't su, log out then log in as root)
Code:
removepkg udev-054-i486-1
installpkg <name of old udev package>
and then restart
 
  


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
Apache updates reset group permissions blinkin Red Hat 0 09-22-2005 03:38 PM
permissions reset on reboot trempel Fedora 11 08-18-2005 02:24 AM
directory permissions keep getting reset Dcrusoe Mandriva 2 11-23-2004 10:04 PM
DSP Permissions Reset Themselves in RH9 abw Red Hat 4 02-25-2004 02:28 AM
File permissions keep getting reset johnsmith1899 Linux - Networking 4 05-19-2003 11:02 AM

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

All times are GMT -5. The time now is 05:06 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