Debian This forum is for the discussion of Debian Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-26-2005, 08:13 PM
|
#1
|
|
Senior Member
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Rep:
|
resetting permissions on everything?
Somehow, I messed up the permissions on a bunch of stuff on my system. I booted a couple of days ago, and was getting errors about ssh, and sudoers. So I changed those permissions, and then noticed, a bunch of other ones were wrong(include /etc/passwd and /etc/shadow). So I did a
Code:
cd /; chmod g-w . chmod o-w .
and that seemed to fix it. Then I rebooted, and the X server wouldn't start. I was able to start kdm, but kde wouldn't start. So I reversed the process
Code:
cd /; chmod g+w . chmod o+w .
and that seemed to fix it temporarily. Is there any way to reset the default permissions on everything? I'd rather not reinstall. Thoughts?
|
|
|
|
05-27-2005, 03:05 AM
|
#2
|
|
Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,817
|
As far as I know, setting the permissions on the entire file system is a game breaker.
The problem is, there is no "default" setting. Every file should have it's own permissions and ownership to maintain system security and stability.
So you can't just run a command to set everything back to the way it was before, since there is no way of knowing what that was.
I would have to say a reinstall is probably the most likely end to this story. Maybe somebody with more experience with this could give you a better direction to go down, but it seems like the amount of leg work it would take to track down all the different binaries and system files and give them the proper ownership and permissions would take a hell of a lot longer than just backing up your data and doing a fresh install.
|
|
|
|
05-27-2005, 07:13 AM
|
#3
|
|
Senior Member
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Original Poster
Rep:
|
there's no real data on it, it's mainly a toy machine right now. I don't have anything on it that's overly important. At this point I'm still uncomfortable with swtiching entirely from Windows to Linux. I don't want to reinstall. I just did that because my fs went beserk. Other people? Any Gurus have any experiance in this?
|
|
|
|
05-29-2005, 03:44 PM
|
#4
|
|
Senior Member
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Original Poster
Rep:
|
Is there any way to completely redownload and install all of the packages from my current system? I don't really want to wipe my partition out and reinstall.
|
|
|
|
05-30-2005, 06:56 PM
|
#5
|
|
Senior Member
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Original Poster
Rep:
|
will doing this
Code:
dpkg --get-selections | awk '$2 == "install" { print $1 }' | xargs apt-get -y --reinstall install
reset all the permissions?
|
|
|
|
05-31-2005, 03:01 PM
|
#6
|
|
LQ Veteran
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642
Rep:
|
There is no way to undo or reset permissions to a previous value, because the previous value is not stored anywhere. As you have seen, setting permissions should not be taken lightly, and should only be done on individual files/directories when it is specifically needed.
Realistically the only safe and "guaranteed to work" option you have is to reinstall. To be honest there's no telling what the state of your system is right now, which unfortunately means that it cannot be considered secure, which means that the only sensible thing to do is wipe the disk and start over. You mentioned that this is a toy machine, so although doing a reinstall is somewhat of a hassle, it doesn't sound like you need to be concerned about losing any data. Good luck with it -- J.W.
|
|
|
|
05-31-2005, 07:18 PM
|
#7
|
|
Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,817
|
That's what I thought.
Not that I am terribly happy to be right in this situation, a reinstall can be a real joy kill.
But don't worry about it, it is part of the learning curve. I can't tell you how many times I had to reinstall the first year I started using GNU/Linux.
Last edited by MS3FGX; 05-31-2005 at 07:20 PM.
|
|
|
|
05-31-2005, 08:58 PM
|
#8
|
|
Senior Member
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Original Poster
Rep:
|
I don't know what happened to the permissions. I'll see if I can deal w/ it right now. Then, when sarge goes stable(hopefully w/in the next week) I'll get a CD set, and reinstall, then wait till next school year to update. Thanks
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:47 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|