Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 24th March 2010, 11:56 AM
jager Offline
Registered User
 
Join Date: Mar 2010
Posts: 1
windows_vistasafari
Root file permission accidentally changed root to 700

HI, silly me while in the terminal and logged in as root i was changing file permissions and happened to change the root folder to 700. Now my icons have gone and i can't even access the terminal.

I was just wondering if it is possible to go to rescue mode using the cd and restore all the appropriate file permissions to root/ users if possible

Thanks in aadvance
Reply With Quote
  #2  
Old 24th March 2010, 01:55 PM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,016
linuxfedorafirefox
Re: Root file permission accidentally changed root to 700

Supposedly this will do the packages but not user files.

Reset the permissions of the all installed RPM packages

You need to use combination of rpm and a shell for loop command as follows:
for p in $(rpm -qa); do rpm --setperms $p; done
for p in $(rpm -qa); do rpm --setugids $p; done

http://www.cyberciti.biz/tips/reset-...ermission.html

Otherwise it is a re-install.

SJ
__________________
Do the Math
Reply With Quote
  #3  
Old 24th March 2010, 02:29 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,149
linuxfedorafirefox
Re: Root file permission accidentally changed root to 700

If all you did was change the root directory permission ("chmod 700 /" and not
a "chmod -R /"), then you should be able to login as root on a console terminal
and do a "chmod 755 /".
Reply With Quote
  #4  
Old 24th March 2010, 02:31 PM
marriedto51 Offline
Registered User
 
Join Date: Jul 2009
Location: England, UK
Posts: 822
linuxfedorafirefox
Re: Root file permission accidentally changed root to 700

I would try booting the install/rescue disk first, and try setting the permissions on / back to 555.
It will take more than this if you changed permissions recursively.

And thanks, SlowJet: those are options to rpm I didn't know about. Would have been helpful to me when I messed up restoring a backup a while back...
Reply With Quote
  #5  
Old 24th March 2010, 02:32 PM
William Haller Offline
Registered User
 
Join Date: Jul 2005
Age: 52
Posts: 1,017
linuxfedorakonqueror
Re: Root file permission accidentally changed root to 700

If you can't get a terminal directly, then log in on a text screen with ctrl-alt-f2 as root first. If you just hurt the single / folder itself, then this is a sample F11 root listing.

Quote:
drwxr-xr-x. 27 root root 4096 2010-03-19 06:36 .
drwxr-xr-x. 27 root root 4096 2010-03-19 06:36 ..
-rw-r--r-- 1 root root 0 2010-03-19 06:36 .autofsck
drwxr-xr-x 2 root root 4096 2009-02-23 18:41 .automount
-rw-r--r-- 1 root root 0 2009-08-28 19:54 .autorelabel
drwxr-xr-x. 2 root root 4096 2010-03-24 03:48 bin
drwxr-xr-x. 5 root root 1024 2010-02-20 21:36 boot
drwx------. 3 root root 4096 2009-08-25 19:08 .dbus
drwxr-xr-x 18 root root 4980 2010-03-21 03:39 dev
drwxr-xr-x. 208 root root 20480 2010-03-24 03:49 etc
drwxr-xr-x 2 root root 0 2010-03-23 20:28 home
drwxr-xr-x. 14 root root 4096 2010-03-23 22:53 lib
drwxr-xr-x. 8 root root 12288 2010-03-24 03:48 lib64
drwx------. 2 root root 16384 2009-08-25 18:37 lost+found
drwxr-xr-x. 2 root root 4096 2009-03-04 06:12 media
drwxr-xr-x 2 root root 0 2010-03-19 06:38 misc
drwxr-xr-x. 2 root root 4096 2009-03-04 06:12 mnt
drwxr-xr-x 2 root root 0 2010-03-19 06:38 net
drwxr-xr-x. 4 root root 4096 2009-12-11 10:48 opt
dr-xr-xr-x 183 root root 0 2010-03-19 06:36 proc
-rw-r--r-- 1 root root 0 2010-02-27 03:18 .readahead_collect
drwxr-x---. 37 root root 4096 2010-03-23 20:48 root
drwxr-xr-x. 2 root root 12288 2010-03-23 22:56 sbin
drwxr-xr-x. 2 root root 4096 2009-03-04 06:12 selinux
drwxr-xr-x. 2 root root 4096 2009-03-04 06:12 srv
drwxr-xr-x 12 root root 0 2010-03-19 06:36 sys
drwxrwxrwt. 68 root root 12288 2010-03-24 07:26 tmp
drwxr-xr-x. 15 root root 4096 2009-10-05 19:29 usr
drwxr-xr-x. 24 root root 4096 2009-09-28 21:39 var
You might just be able to fix these top ones unless you went recursive on the chmod.
Reply With Quote
Reply

Tags
700, accidentally, changed, file, permission, root

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
mount: error mounting /dev/root on /sys/root as ext3: no such file or directory nutty Hardware & Laptops 0 12th February 2009 11:00 PM
Root user account suspended accidentally satksri Using Fedora 10 19th January 2009 05:52 PM
i accidentally deleted the /root dir files cybernoid Using Fedora 2 27th November 2007 01:10 AM
accidentally deleted applications form panel in root. MegaManZZ Using Fedora 8 26th October 2007 03:05 AM


Current GMT-time: 07:33 (Wednesday, 19-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