Meaning of "You do not own that mountpoint" when switching to and from root?

0

I recently installed a new debian OS (replacing my old ubuntu) and kept the same home directory. Whenever I switch into and out of root (via the su command) I get a message that says "You do not own that mountpoint." What is the meaning of this message and how do I get rid of it?

hunter2

Posted 2018-01-15T19:43:57.890

Reputation: 3

Answers

1

Most likely, the user ID for your regular user in the Debian installation is not the same as your user ID for your regular user in the previous Ubuntu installation. The way to fix this is to call the following on your home directory:

chown -R <user>:<user> <home>

Replace <user> with your user name and <home> with the path to your home directory.

Also, slightly OT, but it would be a good idea to start using sudo instead of su (su has a bunch of known security issues and also isn't the most reliable thing around).

Austin Hemmelgarn

Posted 2018-01-15T19:43:57.890

Reputation: 4 345