LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-30-2004, 07:18 AM   #1
tsayles21
LQ Newbie
 
Registered: Mar 2004
Location: Bismarck, ND
Distribution: Fedora
Posts: 2

Rep: Reputation: 0
Thumbs down permissions messed up chown command used


My level of experience is Newbie that thinks he knows everything but really now nothing about linux.

I did something really bad I logged in as SU and typed

chown -R root:root 777 /
or something like it
at the root directory

now I get errors about permissions all the time

is there some way to put the original permissions back?

or

at least the permission back to when I install Linux?

SO far this site has helped me a lot.

Thanks for the help in the future.
 
Old 03-30-2004, 12:32 PM   #2
spec6635
Member
 
Registered: Feb 2004
Location: Yokosuka Japan
Distribution: Arch, Kali, Slackware 14, Lubuntu, Raspbian
Posts: 58

Rep: Reputation: 15
the root directory should only be accesible to root do "chmod 700 /root/"
then "chown root:root /root/"
 
Old 03-30-2004, 03:13 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Re: permissions messed up chown command used

Quote:
Originally posted by tsayles21
My level of experience is Newbie that thinks he knows everything but really now nothing about linux.

I did something really bad I logged in as SU and typed

chown -R root:root 777 /
or something like it
at the root directory

now I get errors about permissions all the time

is there some way to put the original permissions back?

or

at least the permission back to when I install Linux?

SO far this site has helped me a lot.

Thanks for the help in the future.
Reinstall there is no way to track down the permissions on that many files and getting them right again. You may want to backup the /etc directory for future reference but not replacement of the new files and use dpkg --get-selections > selections.txt and save the file then when reinstalled with a base system use after getting apt/dpkg working dpkg --set-selections < selections.txt and dselect update then apt-get dselect-upgrade to get back the packages had installed before the incident.
 
Old 03-30-2004, 08:38 PM   #4
KneeLess
Member
 
Registered: May 2003
Distribution: Debian GNU/Linux 3.0 Sid, OpenBSD 3.5
Posts: 190

Rep: Reputation: 30
It looks like you made every file on the computer (because of -R, recurvsiveness) to be owned by root, and for rwxrwxrwx permissions on every single file.

Who told you to do that?
 
  


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
Cannot chown or change permissions Fear Fedora 3 10-26-2005 07:07 PM
!!!! Urgent, using chown command ? AQG Linux - Security 8 08-12-2005 03:21 PM
So... I used Chown command and screwed my pc... Nosram Linux - Newbie 3 01-20-2004 06:09 AM
Graphically setup user permissions (frontend to chmod and chown) sfonvill Linux - Security 2 08-27-2003 03:12 PM
chown command help ksgill Linux - Newbie 9 04-28-2003 10:52 PM

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

All times are GMT -5. The time now is 12:48 AM.

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