LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-12-2020, 10:39 AM   #1
vatin
LQ Newbie
 
Registered: May 2013
Location: Thailand
Distribution: Mac OS, Garuda
Posts: 24

Rep: Reputation: Disabled
Question Can't make change to home folder after changing distro


Hi,

I installed Pop OS over Linux Mint by preserving the home partition. Then, I proceed to create the same user name as the one I have in Linux Mint. This works as expected. I was able to see my files and folders on the desktop and so on. But the problem is I couldn't make change to them. I couldn't delete files and folders, I couldn't change the settings...etc. It seems I was being prevented from making change to my home folder. Any suggestion?

Thanks,
Vatin
 
Old 08-12-2020, 10:53 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,493

Rep: Reputation: Disabled
Try running
Code:
chown -r yourname:yourgroup /home/yourname
 
Old 08-12-2020, 12:07 PM   #3
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
What fatmac said. If unsure about your primary group, run
Code:
 id <username>
 
Old 08-12-2020, 01:53 PM   #4
remmilou
Member
 
Registered: Mar 2010
Location: Amsterdam
Distribution: MX Linux (21)/ XFCE
Posts: 211

Rep: Reputation: 69
Quote:
Originally Posted by fatmac View Post
Try running
Code:
chown -r yourname:yourgroup /home/yourname
Should probably be:
-R in stead of -r
 
1 members found this post helpful.
Old 08-12-2020, 05:01 PM   #5
vatin
LQ Newbie
 
Registered: May 2013
Location: Thailand
Distribution: Mac OS, Garuda
Posts: 24

Original Poster
Rep: Reputation: Disabled
Thanks. I ran in the terminal

Quote:
chown -R yourname:yourgroup /home/yourname
The system spits out the list of all files and folders in my home directory, followed by "read-only file system".
But in the end, I still can't make change to my home directory. Any suggestion?
 
Old 08-12-2020, 05:45 PM   #6
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by vatin View Post
Any suggestion?
Check the permissions on your home directory (user and group ownership and read/write/execute permissions) and compare them to the record for your account in /etc/passwd. If you do an "ls -l" in your home directory, you'll probably see that your account name is not showing up as the owning user. You can fix this by using sudo to "chown -R youracct:yourgroup" on your home directory. Or you can edit the record in /etc/passwd to reflect the ownership you're seeing in the output of "ls -l"---so long as such a change doesn't clash with another record in the passwd file.

HTH...
 
Old 08-12-2020, 06:11 PM   #7
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by vatin View Post
The system spits out the list of all files and folders in my home directory, followed by "read-only file system".
Looks like it's mounted read-only. As superuser, try
Code:
mount -o remount,rw /home
and check and possibly fix /etc/fstab.
 
Old 08-12-2020, 08:16 PM   #8
vatin
LQ Newbie
 
Registered: May 2013
Location: Thailand
Distribution: Mac OS, Garuda
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
Looks like it's mounted read-only. As superuser, try
Code:
mount -o remount,rw /home
and check and possibly fix /etc/fstab.
Thank you. But I got

Code:
mount: /home: cannot remount /dev/sda3 read-write, is write-protected
Can this be a hardware issue?
 
Old 08-12-2020, 09:18 PM   #9
agillator
Member
 
Registered: Aug 2016
Distribution: Mint 19.1
Posts: 419

Rep: Reputation: Disabled
I assume you have checked ownership of files in your home directory and they do show your user owns them (by name, not uid). At this point I would actually shutdown and then restart so that the new system takes complete control and there is no vestige of the old in control. See if that clears up your read-only fs problem.
 
Old 08-12-2020, 10:53 PM   #10
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by vatin View Post
Thank you. But I got

Code:
mount: /home: cannot remount /dev/sda3 read-write, is write-protected
Can this be a hardware issue?
According to a Stackexchange thread, one reason for a disk to become write-protected is file system corruption. You could check the kernel messages for clues (dmesg command, or if Pop OS deploys systemd, journalctl -k).

I suppose there might be other causes.
 
Old 08-12-2020, 10:54 PM   #11
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by agillator View Post
I assume you have checked ownership of files in your home directory and they do show your user owns them (by name, not uid). At this point I would actually shutdown and then restart so that the new system takes complete control and there is no vestige of the old in control. See if that clears up your read-only fs problem.
Indeed, after an installation I would reboot. If OP has not done that yet, it's time.
 
Old 08-13-2020, 01:59 AM   #12
vatin
LQ Newbie
 
Registered: May 2013
Location: Thailand
Distribution: Mac OS, Garuda
Posts: 24

Original Poster
Rep: Reputation: Disabled
Code:
journalctl -k
Gave this result
https://ibb.co/3km5VZH

I have to mention that before installing popos I was having boot problem with my previous installation. The os just wouldn’t boot up. But I couldn’t remember the message. It dropped to recovery prompt every time.

Last edited by vatin; 08-13-2020 at 02:14 AM.
 
Old 08-13-2020, 04:13 AM   #13
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by vatin View Post
Code:
journalctl -k
Gave this result
https://ibb.co/3km5VZH
Try fsck'ing this filesystem.
Could the disk have problems?
 
Old 08-13-2020, 06:29 AM   #14
vatin
LQ Newbie
 
Registered: May 2013
Location: Thailand
Distribution: Mac OS, Garuda
Posts: 24

Original Poster
Rep: Reputation: Disabled
I think this might be hardware problem after all. The latest booting attempt results in.

https://ibb.co/vjr6B5V

Time to send in for a warranty claim. Lucky there's a few years left.
Thanks everyone for the help :-)
 
  


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
Store ecryptfs files inside home folder when enabling full home folder encryption in Linux Murz Linux - Security 4 10-27-2018 03:57 AM
make multiple folder on samba linux & each folder can be access each person only Aneesh.T .S Linux - Server 1 01-31-2013 06:01 PM
A script within a folder to delete the folder, script, and the folder's contents Cyberman Programming 15 10-17-2007 07:32 AM
Home folder icon does not open home folder CiscoGeek Linux - Newbie 3 12-18-2006 07:00 AM
I can not open the user folder in home and write in a shared folder jorge_ivan Linux - General 8 08-02-2006 11:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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