Re: Re: [Nolug] Can't access user accounts

From: Joey Kelly <joey_at_joeykelly.net>
Date: Mon, 18 Aug 2003 19:02:20 +0000
Message-Id: <200308190001.h7J01Z027942@vkh.joeykelly.net>

<snip>
>On further exploration, I found that /home was locked to all but root. I ran
> chmod 777 /home and now can get into my own directory. The question now is
> whether 777 is what it SHOULD be. If so, I wonder how it got changed?
<snip>

I'm thinking chmod isn't what you want... each user's directory in /home
should be owned by that user and the appropriate group. Use "chown -R
$user:$group /home/$user" to set it (picking the right values for $user and
$group, of course). The "-R" flag means recursive.

Once you've done that, you might have to chmod everything in your home
directory to match your umask (default file creation mask). Log in as your
regular user and run "umask", which will give you your file creation mask, or
the normal permissions, bitwise subtracted from 777 (this is called a
"complement"). Normally your umask is 022, so any files you create would have
the permissions 755 (well, mostly... any regular file wouldn't have the
execute bit set, but I digress...). If you need to set the permissions in
your directory, use "chmod -R 644 /home/$user". Any directories will
automatically be set to execute. The only problem you'll have is if you have
any programs or shell scripts, etc. that need to be set executable.

/home itself should be owned by root, by the way.

-- 
Joey Kelly
< Minister of the Gospel | Computer Networking Consultant >
http://joeykelly.net
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote."
___________________
Nolug mailing list
nolug@nolug.org
Received on 08/18/03

This archive was generated by hypermail 2.2.0 : 12/19/08 EST