LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-07-2012, 09:56 PM   #16
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244

Quote:
Originally Posted by nooneknowme View Post
There will be other binary's as well which are not showing issues as of now but may at a later stage come up with an issue.

The best I can suggest is to reinstall. To save himself from all the troubles .
If he's got an RPM-based distro ...... should have read all the thread first as someone has covered this.

Last edited by linosaurusroot; 11-07-2012 at 10:02 PM.
 
Old 11-08-2012, 08:41 AM   #17
van_Zeller
LQ Newbie
 
Registered: Sep 2010
Location: Lisbon, Portugal
Distribution: Ubuntu, Lubuntu
Posts: 16

Rep: Reputation: 0
Thanks all for the replies.

Things you should know:
I chmod'ed /
I'm running ubuntu 12.04
I have a live CD of Lubuntu 10.04
I don't have a root account set up.

Quote:
Since you have chmod'ed the whole system, as it seems (in which directory have you done that?) it may also be possible that a clean re-install is the easiest and fastest solution for you.
Well...that I could do, and I suppose that would solve my problem. But I'd like to leave that option for last.

Anything else I could do? I have a live CD, but I don't know what I need to do once I've booted...

Last edited by van_Zeller; 11-08-2012 at 08:43 AM. Reason: more info
 
Old 11-08-2012, 11:38 AM   #18
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
Backup your /home and reinstall.

There really is no way of fixing this, or if there is a way, it will require a lot more work than to reinstall. I just did a similar thing, after spending 3 days installing Slackware and struggle to get it how I liked it. I did 'chown -R root:root /usr'. I also didn't want to reinstall, after all work I had already done to my system, but finally I realized it was actually the easiest and fastest way to fix it. I was thinking about reinstalling every single package I had installed on my system, but I realized it would require more work than to simply reinstall.

Edit: After a second thought, you 777'ed your /home also. I guess you better don't back it up, just reinstall...

Last edited by Lennie; 11-08-2012 at 11:55 AM.
 
Old 11-22-2012, 10:58 AM   #19
nuubie
LQ Newbie
 
Registered: Nov 2012
Posts: 6

Rep: Reputation: Disabled
I don't understand this, changing ownership of the entire volume contents is something I do often, accidentally of course. It's a bit like locking yourself out of the house, you just need the right key to get back in

I came here looking for help, but was not willing to wipe and reinstall so fixed this issue myself, maybe this varies with distro's but for me it's an easy fix.

Boot to a live distro (other booted system in my case), assume root privileges " sudo su " and then " chown OWNER:GROUP -R sdx/ "

Last edited by nuubie; 11-22-2012 at 11:00 AM.
 
Old 11-22-2012, 11:54 AM   #20
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
Quote:
Originally Posted by nuubie View Post
I don't understand this, changing ownership of the entire volume contents is something I do often, accidentally of course. It's a bit like locking yourself out of the house, you just need the right key to get back in

I came here looking for help, but was not willing to wipe and reinstall so fixed this issue myself, maybe this varies with distro's but for me it's an easy fix.

Boot to a live distro (other booted system in my case), assume root privileges " sudo su " and then " chown OWNER:GROUP -R sdx/ "
The problem discussed here is not how to change owner recursively on a directory, but how to fix the system after you have done it on the wrong directory... There is NOT one single owner (root) for all system files. There are other, non-login users, and different groups that should own different files, and if the ownership on those files are wrong, it doesn't work. So the problem is not how to change owner, but how to find out who should be the owner of which file - in the entire system, if you do this on / ...
 
Old 11-22-2012, 12:35 PM   #21
nuubie
LQ Newbie
 
Registered: Nov 2012
Posts: 6

Rep: Reputation: Disabled
You make a very good point sir, thanks for clearing that up. I should have been more clear, it's more dependent on the type of install (like frugal as in my case) rather than the distro itself.

Thanks for the inspiration

Last edited by nuubie; 11-22-2012 at 12:40 PM.
 
Old 11-23-2012, 08:18 AM   #22
van_Zeller
LQ Newbie
 
Registered: Sep 2010
Location: Lisbon, Portugal
Distribution: Ubuntu, Lubuntu
Posts: 16

Rep: Reputation: 0
Quote:
Originally Posted by Lennie View Post
Backup your /home and reinstall.

There really is no way of fixing this, or if there is a way, it will require a lot more work than to reinstall. I just did a similar thing, after spending 3 days installing Slackware and struggle to get it how I liked it. I did 'chown -R root:root /usr'. I also didn't want to reinstall, after all work I had already done to my system, but finally I realized it was actually the easiest and fastest way to fix it. I was thinking about reinstalling every single package I had installed on my system, but I realized it would require more work than to simply reinstall.

Edit: After a second thought, you 777'ed your /home also. I guess you better don't back it up, just reinstall...
You live, you learn. Thanks for all the replies.

EDIT: How do I mark as solved?
 
Old 11-23-2012, 08:30 AM   #23
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Use the thread tools at the top of the thread to mark this thread as solved.
 
Old 11-23-2012, 09:20 AM   #24
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
Quote:
Originally Posted by van_Zeller View Post
EDIT: How do I mark as solved?
You are not the op of this thread, so you can't.
 
  


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
[SOLVED] sudo:must be setuid root rahulkya Linux - Software 7 02-21-2011 03:25 PM
Can't use sudo, only account that's not root is not a sudo'ers [Ubuntu 9.10] randyriver10 Linux - Desktop 1 01-09-2010 07:56 PM
Sorry, sudo must be setuid root kurtdriver Fedora 6 10-22-2008 07:47 PM
How can I have a script owned as root and run as root by a user: setuid? stickey bit? abefroman Linux - Newbie 9 04-19-2008 05:15 PM
sudo stopped working: "must be setuid root" quincy_the_penquin Linux - Software 4 04-30-2007 06:37 AM

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

All times are GMT -5. The time now is 04:57 PM.

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