$HOME/ permissions

Stephen R Laniel steve at laniels.org
Thu Nov 16 23:14:45 UTC 2006


On Thu, Nov 16, 2006 at 07:04:49PM -0400, Guillermo Garron wrote:
> so using the alt+ctrl+F1 I changed the permissions again to
> 
> $sudo chmod 755 $HOME/ -R
> 
> now all is working but i am wondering if my system is vulnerable
> because of this.
> will i have to reinstall all the ubuntu again?

No, you will not have to reinstall all of Ubuntu. I think
all you wanted to do was

chown 700 $HOME

which you don't need to sudo, because you're changing
permissions on a directory that you own.

Yes, your permissions are probably too lax now -- 755 is too
high. It's impossible to guess what the permissions on your
files ought to be, but it's a safe bet that the following
commands will do what you want:

* make directories only viewable by you:
find $HOME -type d -exec chmod 700 '{}' \;

* make regular files only viewable and editable by you:
find $HOME -type f -exec chmod 600 '{}' \;

That should do the trick.

-- 
Stephen R. Laniel
steve at laniels.org
Cell: +(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20061116/bba9ee0f/attachment.sig>


More information about the ubuntu-users mailing list