[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: All settings are lost at logout



On Mon, Nov 21, 2016 at 11:53:35AM -0500, Gene Heskett wrote:
> Call up a terminal, and type:
> 
> cd
> sudo chown -R yourusername:yourusername *

This will miss the dot files, and the home directory itself.

sudo chown -R "$LOGNAME:$LOGNAME" .

And of course, you are doing this interactively, NOT in a script, which
means you should notice if the cd fails.  If the cd fails, DO NOT run
the chown command.

It would also be a good idea to *check* the ownerships of everything
before doing the chown, just to make sure you're solving the correct
problem.


Reply to: