Fedora Linux Support Community & Resources Center
  #1  
Old 20th June 2007, 07:12 PM
martin.sourada's Avatar
martin.sourada Offline
Registered User
 
Join Date: Jul 2006
Location: EU, Czech Republic, Chrudim
Age: 25
Posts: 841
Talking I did chown mso:mso /*/*

Hi all,

I did a seriously stupid thing... and completely screwed my fedora... To think it was just a mere typing error... I am still laughing even though I did it two days ago...

So, I needed to copy some files (with root privileges) to my home and change owner to myself... but I hurried too much and made the mistake... luckily I discovered it as soon as I hit enter - file and directories in /proc complained that chown cannot be applied... So I reread what I typed and get horrified...

So still more or less conscious I did chown root:root /*/*... well... that was good idea, but not that good - it screwed my gnome nearly to unusability... not rights anywhere... not folders in my home... so I fixed owners in /home and logged out... and... gdm didn't came up... instead it fall back to xdm... so I tried to log in.... unsuccessfully...complained of not enough rights in /tmp... so I logged as root in CLi and deleted whole content of /tmp... well... at least I was able to log in... but still through xdm...

So I rebooted to see if things change to better... They changed... GDM loaded successfully and I was able to log in... however when I turned gnome terminal and wanted su - it complained of incorrect password... even for users without password So I realized, that I probably screwed more than I though... Then I remembered that if I force re-installation of rpms that has to do something with the screwed files rights will be repaired... So I went to rpm.pbone.net and typed su to the find query... Amongst many packages there were filesystem a coreutils...

So I yum-downloaded them and rpm -Uhv --forced them... And su started to work... But then I when I closed the laptop lid to go away and when I returned I wasn't able to relog... Screensaver complained of wrong password... Grr... so I run yum update (to fix things that might be in updates and I was not aware yet that I screwed them) and then yum-downloaded and rpm -Uhv --forced gnome-screensaver since it wasn't in updates... Well... that fixed the screensaver issue...

Now, the last thing, that apparently didn't work was ftp... Since I share files on anonymous account and my own user, I created /home/ftp and set it as home for anonymous ftp user and from my home made symbolic links there... but forgot which was the owner and when I repaired the mess I set it to ftp:users... well that was not good idea... But at last I came to conclusion why vsftpd complains of root write privilegies and set the owner to me... That fixed. It. Yupee....

So far this is the last thing that I know was broken... Seem I was able to repair it without reinstall.... cool... Next time I will check twice before pressing enter with root privileges...

And my question is... Do you have similar experience?
__________________
Fëannatar

Your freedom ends where others' starts.
It's the same with software => promote GPL.

Registered Linux User: #431562
My blog: Martin's Chronicles

Echo Icon Theme: homepage

Nodoka: homepage

Fedora Core future enhancements?

JID: martin.sourada AT jabber.cz

Last edited by martin.sourada; 20th June 2007 at 07:24 PM.
Reply With Quote
  #2  
Old 20th June 2007, 07:15 PM
Firewing1's Avatar
Firewing1 Offline
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224
I did this once, and it was going to take so long to compare the permissions of each directory from a working system to the broken one that I just reinstalled...
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
  #3  
Old 23rd June 2007, 09:59 PM
techmatt's Avatar
techmatt Offline
Registered User
 
Join Date: Nov 2005
Location: In My Head (I Think)
Posts: 932
I once was running a live disk and had my harddrive (that still had all my stuff on it) mounted nuder /mnt

What I ment to type was

mv -rfv /mnt/* /media

some how it came up with

rm -rfv /* /media

I was screwed (not the first time I had done this command either)
__________________
If you know how to do something in Fedora or how to do it better, please help us at Fedora Wiki.

Registered Linux user number 433760
Reply With Quote
  #4  
Old 24th June 2007, 12:47 AM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
Oh yeah, plenty of times... but not recently. I still manage to zap my $HOME now and then, though
Reply With Quote
  #5  
Old 24th June 2007, 11:49 AM
techmatt's Avatar
techmatt Offline
Registered User
 
Join Date: Nov 2005
Location: In My Head (I Think)
Posts: 932
I have done that more than I can count
__________________
If you know how to do something in Fedora or how to do it better, please help us at Fedora Wiki.

Registered Linux user number 433760
Reply With Quote
  #6  
Old 24th June 2007, 03:16 PM
Boris Cat's Avatar
Boris Cat Offline
Registered User
 
Join Date: Nov 2006
Location: Portsmouth. England
Posts: 165
Quote:
Originally Posted by martin.sourada

And my question is... Do you have similar experience?

Only with windows

Boris

<kan tpye proper he kan
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
chown problems? keeler1 Using Fedora 7 12th March 2007 02:27 PM
Chown MarkTheDaemon Using Fedora 2 15th December 2005 04:19 AM
#*! chown ./ -R HELP bluejuice Using Fedora 3 23rd August 2005 12:01 PM


Current GMT-time: 11:20 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat