LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 09: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, 11:30 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:14 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