Ubuntu server /etc ownership

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I have accidentally changed the owner:group for /etc on my dev server. I would like to reset it back to root:root. Can anyone help me with the required steps.
If I try : chown root:root etc
It refuses by saying ooperation not permitted







share|improve this question




















  • Did you keep track of the former ownership?
    – waltinator
    May 14 at 15:17










  • well, you mean the root
    – Nesan Mano
    May 14 at 15:21










  • Thanks I solved my problem with a rescue boot using the installation USB drive
    – Nesan Mano
    May 14 at 21:03














up vote
0
down vote

favorite












I have accidentally changed the owner:group for /etc on my dev server. I would like to reset it back to root:root. Can anyone help me with the required steps.
If I try : chown root:root etc
It refuses by saying ooperation not permitted







share|improve this question




















  • Did you keep track of the former ownership?
    – waltinator
    May 14 at 15:17










  • well, you mean the root
    – Nesan Mano
    May 14 at 15:21










  • Thanks I solved my problem with a rescue boot using the installation USB drive
    – Nesan Mano
    May 14 at 21:03












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have accidentally changed the owner:group for /etc on my dev server. I would like to reset it back to root:root. Can anyone help me with the required steps.
If I try : chown root:root etc
It refuses by saying ooperation not permitted







share|improve this question












I have accidentally changed the owner:group for /etc on my dev server. I would like to reset it back to root:root. Can anyone help me with the required steps.
If I try : chown root:root etc
It refuses by saying ooperation not permitted









share|improve this question











share|improve this question




share|improve this question










asked May 14 at 15:00









Nesan Mano

1012




1012











  • Did you keep track of the former ownership?
    – waltinator
    May 14 at 15:17










  • well, you mean the root
    – Nesan Mano
    May 14 at 15:21










  • Thanks I solved my problem with a rescue boot using the installation USB drive
    – Nesan Mano
    May 14 at 21:03
















  • Did you keep track of the former ownership?
    – waltinator
    May 14 at 15:17










  • well, you mean the root
    – Nesan Mano
    May 14 at 15:21










  • Thanks I solved my problem with a rescue boot using the installation USB drive
    – Nesan Mano
    May 14 at 21:03















Did you keep track of the former ownership?
– waltinator
May 14 at 15:17




Did you keep track of the former ownership?
– waltinator
May 14 at 15:17












well, you mean the root
– Nesan Mano
May 14 at 15:21




well, you mean the root
– Nesan Mano
May 14 at 15:21












Thanks I solved my problem with a rescue boot using the installation USB drive
– Nesan Mano
May 14 at 21:03




Thanks I solved my problem with a rescue boot using the installation USB drive
– Nesan Mano
May 14 at 21:03










1 Answer
1






active

oldest

votes

















up vote
0
down vote













sudo chown root:root /etc


I would not use recursive flag. Not everything in /etc is root:root



Did you change every ownership inside /etc?






share|improve this answer




















  • yes, I did, it all happened because I was playing around with vsftpd.conf
    – Nesan Mano
    May 14 at 15:49











  • Is there a way to reset the root password using the recovery mode
    – Nesan Mano
    May 14 at 15:54










  • @NesanMano unix.stackexchange.com/questions/84090/…
    – RW4
    May 14 at 17:15










  • Thanks I solved my problem with a rescue boot using the installation USB drive
    – Nesan Mano
    May 14 at 21:03










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036157%2fubuntu-server-etc-ownership%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













sudo chown root:root /etc


I would not use recursive flag. Not everything in /etc is root:root



Did you change every ownership inside /etc?






share|improve this answer




















  • yes, I did, it all happened because I was playing around with vsftpd.conf
    – Nesan Mano
    May 14 at 15:49











  • Is there a way to reset the root password using the recovery mode
    – Nesan Mano
    May 14 at 15:54










  • @NesanMano unix.stackexchange.com/questions/84090/…
    – RW4
    May 14 at 17:15










  • Thanks I solved my problem with a rescue boot using the installation USB drive
    – Nesan Mano
    May 14 at 21:03














up vote
0
down vote













sudo chown root:root /etc


I would not use recursive flag. Not everything in /etc is root:root



Did you change every ownership inside /etc?






share|improve this answer




















  • yes, I did, it all happened because I was playing around with vsftpd.conf
    – Nesan Mano
    May 14 at 15:49











  • Is there a way to reset the root password using the recovery mode
    – Nesan Mano
    May 14 at 15:54










  • @NesanMano unix.stackexchange.com/questions/84090/…
    – RW4
    May 14 at 17:15










  • Thanks I solved my problem with a rescue boot using the installation USB drive
    – Nesan Mano
    May 14 at 21:03












up vote
0
down vote










up vote
0
down vote









sudo chown root:root /etc


I would not use recursive flag. Not everything in /etc is root:root



Did you change every ownership inside /etc?






share|improve this answer












sudo chown root:root /etc


I would not use recursive flag. Not everything in /etc is root:root



Did you change every ownership inside /etc?







share|improve this answer












share|improve this answer



share|improve this answer










answered May 14 at 15:38









RW4

1013




1013











  • yes, I did, it all happened because I was playing around with vsftpd.conf
    – Nesan Mano
    May 14 at 15:49











  • Is there a way to reset the root password using the recovery mode
    – Nesan Mano
    May 14 at 15:54










  • @NesanMano unix.stackexchange.com/questions/84090/…
    – RW4
    May 14 at 17:15










  • Thanks I solved my problem with a rescue boot using the installation USB drive
    – Nesan Mano
    May 14 at 21:03
















  • yes, I did, it all happened because I was playing around with vsftpd.conf
    – Nesan Mano
    May 14 at 15:49











  • Is there a way to reset the root password using the recovery mode
    – Nesan Mano
    May 14 at 15:54










  • @NesanMano unix.stackexchange.com/questions/84090/…
    – RW4
    May 14 at 17:15










  • Thanks I solved my problem with a rescue boot using the installation USB drive
    – Nesan Mano
    May 14 at 21:03















yes, I did, it all happened because I was playing around with vsftpd.conf
– Nesan Mano
May 14 at 15:49





yes, I did, it all happened because I was playing around with vsftpd.conf
– Nesan Mano
May 14 at 15:49













Is there a way to reset the root password using the recovery mode
– Nesan Mano
May 14 at 15:54




Is there a way to reset the root password using the recovery mode
– Nesan Mano
May 14 at 15:54












@NesanMano unix.stackexchange.com/questions/84090/…
– RW4
May 14 at 17:15




@NesanMano unix.stackexchange.com/questions/84090/…
– RW4
May 14 at 17:15












Thanks I solved my problem with a rescue boot using the installation USB drive
– Nesan Mano
May 14 at 21:03




Thanks I solved my problem with a rescue boot using the installation USB drive
– Nesan Mano
May 14 at 21:03












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036157%2fubuntu-server-etc-ownership%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Unable to execute new pre-installation script (/var/lib/dpkg/tmp.ci/preinst)

Running the scala interactive shell from the command line

Do not install recommended packages of dependencies