Ubuntu QA:
BlogBrainstormPackage status
Log in
Ubuntu QA
The Ubuntu community has contributed 21986 ideas, 135057 comments, 2615221 votes
Idea sandbox Idea sandbox
Popular ideas Popular ideas
Ideas in development Ideas in development
Implemented ideas Implemented ideas

Popular ideas Here are this week's most popular ideas about Ubuntu.

Using `sudo` messes with permissions in home directory  
Written by cousteau the 25 May 12 at 08:10. Global category: Security. New
Using `sudo program` sometimes messes with file permissions at the user's $HOME directory (often graphical applications, or any application that modifies the content of ~ or $HOME).
The usual way to get around this problem is to use `gksudo` in those cases, but one might sometimes forget that (specially, but not limited to, new users).
0
votes
up equal down
Solution #1: Add `alias sudo='sudo -H'` to .bashrc
Written by cousteau the 25 May 12 at 08:10.
Automatically aliasing `sudo` to `sudo -H` would workaround this problem (the -H option makes sudo change the $HOME variable to /root). This can be done by default by adding an `alias sudo='sudo -H'` line to the default .bashrc

Add a comment or propose a solution >>