hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Unable read /etc/passwd. /etc/passwd MUST be world readable under UN*X operating sys
Closed Thread

Forum Jump

Unable read /etc/passwd. /etc/passwd MUST be world readable under UN*X operating sys

Closed Thread Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Web Hosting Guru
 
Join Date: Feb 2007
Posts: 325

Unable read /etc/passwd. /etc/passwd MUST be world readable under UN*X operating sys


Hello

i run one bad command :-(

chmod -R 644 /


and this command changes all permision in root server
have any away for fixed all permision in centos?

because all site take error

i use of cpanel

Thanks

__________________
Soon ...



Sponsored Links
  #2  
Old
Web Hosting Master
 
Join Date: Feb 2003
Location: Canada
Posts: 945
Changing all your permissions back could take forever.

You'd be better off with a reinstall. It would take less time.

  #3  
Old
Web Hosting Master
 
Join Date: Jun 2003
Location: UK
Posts: 6,592
You can try

rpm --setperms -a

Which might put things back together

Rus

__________________
Rus Foster - Director of Cloud @ UK2 Group
VPS.net - True Cloud Hosting powered by OnApp and HP SANS
Tel: +447714137805 | Email: rghf@uk2group.com

Sponsored Links
  #4  
Old
Web Hosting Guru
 
Join Date: Feb 2007
Posts: 325
Thanks
i run again chmod -R 7777 /

this is good?

__________________
Soon ...

  #5  
Old
Web Hosting Master
 
Join Date: Jun 2003
Location: UK
Posts: 6,592
Nope thats probably made things a lot worse. Now you definitely need a reload

__________________
Rus Foster - Director of Cloud @ UK2 Group
VPS.net - True Cloud Hosting powered by OnApp and HP SANS
Tel: +447714137805 | Email: rghf@uk2group.com

  #6  
Old
<insert something witty>
 
Join Date: Apr 2000
Location: California
Posts: 3,051
Quote:
Originally Posted by robocap View Post
Thanks
i run again chmod -R 7777 /

this is good?
You REALLY need to hire a qualified admin immediately. What you're suggesting above is the absolute most dangerous, worst thing you could possibly have said.

  #7  
Old
Web Hosting Guru
 
Join Date: Nov 2007
Location: Earth
Posts: 289
After the most dangerous "chmod -R 7777 /", I think the easiest and safest way is reinstall the OS.

  #8  
Old
Just me
 
Join Date: Sep 2002
Location: Among the corn
Posts: 10,526
Lesson learned?
Hire an admin to take care of stuff like this for you!

/etc/passwd must be world readable (chmod a+r /etc/passwd) for things.

As with anything, the classsic "If you don't know what you're doing, don't touch it" rule applies. Pretty basic there.

Of course, if this is your own box, then by god, it's not going to cost you anything but the reload cost. If it's NOT, then you need to have things reloaded onto another drive.

  #9  
Old
Web Hosting Master
 
Join Date: Nov 2001
Location: Ann Arbor, MI
Posts: 2,978
I think this could be fixed (without an OS reload), especially if you had a backup, but it would be a lot of work.

__________________
-Mark Adams
www.bitserve.com - Secure Michigan web hosting for your business.
Only host still offering a full money back uptime guarantee and prorated refunds.
Offering advanced server management and security incident response!

  #10  
Old
Web Hosting Master
 
Join Date: Dec 2000
Location: The Woodlands, Tx
Posts: 5,962
Quote:
Originally Posted by robocap View Post
Thanks
i run again chmod -R 7777 /

this is good?
Holy crap, your joking right? You didnt really do this did you?? If you have no other options available to you, immediately do

chmod -R 755 /

Then you need to go thru and try to determine correct permissions for things that need to be 444, 644, 777, etc. 755 for everything isnt perfect and certainly isnt best, but it's hella safer than 777 on everything, and should allow most everything to continue operating while you go thru and repair your permissions. Doing 755 will keep you a bit safer. You posted this on a public forum, and pretty soon scriptkiddies will learn of an easy server to hack and will be trying to hack your machine, and then you WILL need a complete format and OS reinstall if they succeed.

  #11  
Old
Disabled
 
Join Date: Dec 2007
Posts: 278
Hire a admin, I can't believe you typed that...then you ask if its good?

No offense, but I think shared hosting will be good for you, not VPS/dedicated.

  #12  
Old
<insert something witty>
 
Join Date: Apr 2000
Location: California
Posts: 3,051
It's not actually unreasonable to think someone might have a database or hard coded script that could restore the permissions on the system files and common file names, but I'm not aware of any such thing that exists, if it does. There are bound to be odd files or unexpected files, as no two servers are alike. How long did the original recursive command run for until you broke out of that command? Did you run the second one you asked about and if so, for how long? Did you let either finish? Or is the system still in the original state from the chmod 644 -R /? Again, did you notice the mistake and break out of it, or did it complete?

  #13  
Old
Disabled
 
Join Date: Jan 2005
Location: UK
Posts: 130
This should be made a sticky (no offence to the original OP) as a lesson on running a server.

Maybe with a big notice saying WHAT NOT TO DO

I have seen so much of this on these forums. People blindly copying tutorials without taking any time to find out what the commands actually do.

Then being shocked when things stop working. My advice to anyone else if you do not know what something does DO NOT do it. Especially when logged in as root!

.


Last edited by Hosting_Reserve; 02-18-2008 at 04:19 PM.
  #14  
Old
Web Hosting Master
 
Join Date: Dec 2000
Location: The Woodlands, Tx
Posts: 5,962
Quote:
Originally Posted by Hosting_Reserve View Post
Maybe with a big notice saying WHAT NOT TO DO
I thought maybe it wasnt big enough

I cant talk much. Back when I started years ago I thought I could simply mv partitions (didnt know anything)..... didnt work out so well. I probably set the record on crashes due to stupidity. But hey, I pretty much know everything there is to know about what NOT to do,
I'm probably the leading expert on it

Tim Greer comes in at a close second

  #15  
Old
<insert something witty>
 
Join Date: Apr 2000
Location: California
Posts: 3,051
Quote:
Originally Posted by Webdude View Post

Tim Greer comes in at a close second :dgrin:
Huh...? A close second to what now?

Closed Thread

Related posts from TheWhir.com
Title Type Date Posted
Microsoft Reports Several Azure Disruptions in August Web Hosting News 2014-08-18 13:12:34
UK Web Host Shard Hosting Ends Service Web Hosting News 2013-11-18 11:04:08
SoftLayer - The Water Fountains are Overflowing Blog 2013-06-07 11:50:50
The Value of Your Intellectual Property Blog 2013-05-06 17:43:13
cPanel Security Updates Address Perl Module Vulnerabilities Web Hosting News 2012-12-06 12:55:54


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?