Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 07-12-2014, 09:35 AM   #1
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
Posts: 16,257

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


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 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

All times are GMT -5. The time now is 10:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration