Permission issue with home

Hi folks
I tried to mount a smb. Share via fstab
In order to not expose credentials I created A credentials file under home
For being able to read that I did chmod 660 .smbpasswd as root.

My problem now is that I don’t have permission on my home file as normals user.
I assume it is caused by this.

Any idea how to fix this?

Sorry for not properly formatting it, I am on my phone as browser is not starting up :face_with_raised_eyebrow:

I always store my samba credentials files in /root/ and haven’t had any issues doing that. You can use chown -R to give ownership back to your user of your home folder if that has been changed.

1 Like

So as root:
Chown -R „user“ /home/„user“ ?

Yes, that should recursively return permission to “user” for the “user” home directory and all contained within. So, as an example, for “user” “gdh” you might enter:
sudo chown -R gdh /home/gdh

Now you learned an important lesson - we dont use sudo or root in home. :slight_smile:

2 Likes

Thanks a lot!

Yeah… Switches recently from windows and it is a different world

No problem, glad you’re sorted!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.