LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2009, 08:05 AM   #1
mi6091
LQ Newbie
 
Registered: Jan 2009
Posts: 23

Rep: Reputation: 15
HELP! HELP! I screwed something :s


I think I changed the ownership and the rights of the /usr/ folder... And now I can't run some applications... because they tell me that I don't have rights... and the pop-up that asks me some kind of password doesn't appear.

I am using fedora 10.
Any ideas how can I fix this ?
 
Old 04-19-2009, 08:07 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
A good start would be to tell us what you did before this happened.
 
Old 04-19-2009, 08:11 AM   #3
mi6091
LQ Newbie
 
Registered: Jan 2009
Posts: 23

Original Poster
Rep: Reputation: 15
I don't really remember ... what I was trying to do (it was a while ago), but I know I ran chown -R on the /usr folder.
 
Old 04-19-2009, 08:27 AM   #4
asymptote
Member
 
Registered: Mar 2008
Posts: 236

Rep: Reputation: 37
Press the up arrow key in the command prompt. It should show you what commands you ran and hopefully you can see what was typed that included "chown -R"
 
Old 04-19-2009, 08:38 AM   #5
mi6091
LQ Newbie
 
Registered: Jan 2009
Posts: 23

Original Poster
Rep: Reputation: 15
No chance I've written too much things in the terminal since then.

Isn't there a way to get the default ownership and rights of the folder ?
 
Old 04-19-2009, 08:40 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
repo@cannabis:~/download$ ls -l / | grep usr
drwxr-xr-x 13 root root 4096 2009-02-23 18:25 usr
repo@cannabis:~/download$ ls -l /usr
total 216
drwxr-xr-x 2 root root 65536 2009-04-18 19:38 bin
drwxr-xr-x 2 root root 4096 2009-04-07 13:46 games
drwxr-xr-x 47 root root 12288 2009-04-17 09:13 include
drwxr-xr-x 214 root root 69632 2009-04-18 18:00 lib
drwxr-xr-x 3 root root 4096 2009-02-04 12:13 lib64
drwxrwsr-x 11 root staff 4096 2009-02-23 18:35 local
drwx------ 2 root root 16384 2009-02-04 10:39 lost+found
drwxr-xr-x 2 root root 16384 2009-04-18 15:33 sbin
drwxr-xr-x 357 root root 12288 2009-04-18 18:00 share
drwxrwsr-x 8 root src 4096 2009-04-13 18:05 src
drwxr-xr-x 2 root root 4096 2009-02-04 11:04 X11R6
repo@cannabis:~/download$
 
Old 04-19-2009, 08:53 AM   #7
mi6091
LQ Newbie
 
Registered: Jan 2009
Posts: 23

Original Poster
Rep: Reputation: 15
[mi60@localhost ~]$ ls -l /| grep usr
drwxr-xr-x 14 root root 4096 2009-01-16 22:57 usr
[mi60@localhost ~]$ ls -l /usr
total 304
drwsr-xr-x 2 root root 90112 2009-04-19 13:36 bin
drwxr-xr-x 2 root root 4096 2008-09-06 13:13 etc
drwxr-xr-x 2 root root 4096 2008-09-06 13:13 games
drwxr-xr-x 156 root root 16384 2009-04-16 22:14 include
drwxr-xr-x 3 root root 4096 2009-01-16 22:57 java
drwxr-xr-x 6 root root 4096 2009-04-07 21:30 kerberos
drwxr-xr-x 194 root root 135168 2009-04-18 02:31 lib
drwxr-xr-x 20 root root 12288 2009-04-18 10:31 libexec
drwxr-xr-x 12 root root 4096 2009-01-14 22:56 local
d--------- 2 root root 12288 2009-04-19 13:36 sbin
drwxr-xr-x 355 root root 12288 2009-04-19 13:36 share
drwxr-xr-x 5 root root 4096 2008-12-25 20:14 src
lrwxrwxrwx 1 root root 10 2008-12-25 00:18 tmp -> ../var/tmp



what does this help me?
 
Old 04-19-2009, 09:02 AM   #8
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by mi6091 View Post
[mi60@localhost ~]$ ls -l /| grep usr
drwxr-xr-x 14 root root 4096 2009-01-16 22:57 usr
[mi60@localhost ~]$ ls -l /usr
total 304
drwsr-xr-x 2 root root 90112 2009-04-19 13:36 bin
drwxr-xr-x 2 root root 4096 2008-09-06 13:13 etc
drwxr-xr-x 2 root root 4096 2008-09-06 13:13 games
drwxr-xr-x 156 root root 16384 2009-04-16 22:14 include
drwxr-xr-x 3 root root 4096 2009-01-16 22:57 java
drwxr-xr-x 6 root root 4096 2009-04-07 21:30 kerberos
drwxr-xr-x 194 root root 135168 2009-04-18 02:31 lib
drwxr-xr-x 20 root root 12288 2009-04-18 10:31 libexec
drwxr-xr-x 12 root root 4096 2009-01-14 22:56 local
d--------- 2 root root 12288 2009-04-19 13:36 sbin
drwxr-xr-x 355 root root 12288 2009-04-19 13:36 share
drwxr-xr-x 5 root root 4096 2008-12-25 20:14 src
lrwxrwxrwx 1 root root 10 2008-12-25 00:18 tmp -> ../var/tmp



what does this help me?
If you look at /usr/sbin that looks pretty knackered to me. For example mine looks like this.
Code:
drwxr-xr-x   2 root root   12288 2009-04-19 09:20 sbin
You might want to change the permissions on sbin and try again.
cheers,
jdk
 
Old 04-19-2009, 09:30 AM   #9
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,275

Rep: Reputation: 148Reputation: 148
/usr directory owned by root user and as i have seen your post that you have changed ownership of this directory so revert back the ownership of /usr directory( eg. chown -R root:root path)

Quote:
No chance I've written too much things in the terminal since then.
try with history, it will result in things that you have done in the terminal
 
Old 04-19-2009, 04:41 PM   #10
mi6091
LQ Newbie
 
Registered: Jan 2009
Posts: 23

Original Poster
Rep: Reputation: 15
I tried couple of things resulting in totally breaking the system down.(haha I did it, I took linux down ). And now I am on a fresh install :]
 
Old 04-19-2009, 06:54 PM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Pity ... with rpm based distros you could easily recover
from that little accident using

Code:
rpm -qa | xargs rpm --setperms
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
I believe I've screwed up? newbeeman Linux - Newbie 6 06-05-2008 11:24 PM
I think I just screwed myself... Satrin Linux - Newbie 9 10-15-2004 10:21 AM
I have really screwed up santner Linux - General 2 04-26-2004 09:08 AM
am i screwed? jxn Linux - Hardware 1 04-16-2004 12:31 AM
I think , I screwed up , now what? Megamieuwsel Linux - Software 5 09-24-2003 04:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration