LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Manjaro
User Name
Password
Manjaro This forum is for the discussion of Manjaro Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 11-15-2020, 09:22 AM   #1
MickTheRus
LQ Newbie
 
Registered: Jul 2020
Distribution: Elementary OS
Posts: 14

Rep: Reputation: Disabled
Ran sudo chown root /home


I was hella tired yesteday and ran sudo chown root /home Now I can't sign in. Any way to give ownership back to the OS

Edit 1: Fixed it using
> sudo chown mick /home/mick

Last edited by MickTheRus; 11-15-2020 at 11:14 AM.
 
Old 11-15-2020, 09:36 AM   #2
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627

Rep: Reputation: Disabled
Does elementaryos create a root account? As far as I recall it's based on ubuntu which doesn't. If you can log in to a console as root you should be able to change ownership of your own user folder within /home.
 
Old 11-15-2020, 09:41 AM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,328
Blog Entries: 3

Rep: Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726
If there is no root password, you should still be able to log into the console (not the terminal) as a normal user. It'll complain a little and then probably drop you into / or /home/ where you can then use sudo to fix the ownerships.

You can get to the console by pressing ctrl-alt-f2 or ctrl-alt- and one of the other function keys.

As you see the graphical login will not work until the permissions are fixed.
 
Old 11-15-2020, 09:53 AM   #4
MickTheRus
LQ Newbie
 
Registered: Jul 2020
Distribution: Elementary OS
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by petelq View Post
Does elementaryos create a root account? As far as I recall it's based on ubuntu which doesn't. If you can log in to a console as root you should be able to change ownership of your own user folder within /home.
I switched from Elementary OS to Manjaro Long time ago.
 
Old 11-15-2020, 11:21 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,740

Rep: Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923
Quote:
chown root /home
Since most if not all distributions /home is owned by root anyway just running the command as posted should not of caused any problems. If you ran the command recursively then yes everything within /home will be owned by root.

I was surprised that Manjaro would let you login as root via the GUI if you select not listed from the log in menu. I have manjaro 19.0.2 running as a VM. Log in as root and change the ownership back for your user's home directory. Permissions should remain the same.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sudo to user other than root but do not allow sudo to root Westmoreland Linux - Security 4 07-13-2022 01:09 PM
[SOLVED] 'sudo chown root file.txt' is inconsistent in leading to a "permission denied" output charlemagne-is-my-son Linux - Newbie 1 11-09-2014 08:47 AM
PHP5 - chown() - Warning: chown(): Operation not permitted pizzipie Programming 11 09-10-2013 03:53 AM
LXer: The Ultimate Sudo FAQ — To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 01:36 AM
'sudo ls /root/monitor/' outputs, 'sudo ls /root/monitor/*' does not stf92 Slackware 10 07-19-2012 05:20 PM

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

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

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