LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 07-12-2014, 10:35 AM   #1
shaoyifei96
LQ Newbie
 
Registered: Jul 2014
Posts: 1

Rep: Reputation: Disabled
Help! Chown the whole /etc directories to www-data, sudoer broken


I am running a ec2 instance and I type in the following by mistake :
Sudo chown -R www-data :www-data /etc
And then ...... Omg sudo /bin/bash doesn't work
It says etc/ sudoers is owned by uid 33!
What do I do!?
Because it is a amazon instance, there is no way I can enter the recovery mode, is there?
Thanks in advance
 
Old 07-12-2014, 12:30 PM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 13,274

Rep: Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775
then use "su -" to become root
or login to the terminal as root
 
  


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] chown: invalid user 'www-data:www-data' thund3rstruck Linux - Server 4 03-21-2013 02:53 AM
how can www-data chown a file? tdnnash25 Linux - Server 7 06-12-2010 12:45 PM
Chown/Chmod ff Directories/Files Question Genin Linux - Newbie 4 12-27-2006 12:51 PM
chmod and chown affecting whole directories linuxmandrake Linux - Newbie 1 10-08-2005 08:04 PM
Help: Directories magically chgrp and chown by themselves! Blazer79 Mandriva 2 09-07-2004 12:52 PM


All times are GMT -5. The time now is 12:02 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration