[H-GEN] weird permissions problem
Troy Piggins
troy at piggo.com
Sun Jan 10 23:09:27 EST 2010
* Troy Piggins wrote :
> Trying to add a new user to our linux server this morning, brain not
> in full gear after the Christmas break, and I seemed to have stuffed
> something up pretty good.
>
> I have a little script I'd written to help automate it a little[1],
> but I forgot to add the username as an argument. Realised after the
> script had started, tried hitting ctrl-c a few times to stop it.
> Think that has broken something.
>
> Now it seems that no users can access their home dirs, and
> permissions for all existing users aren't behaving as I'd expect.
>
> I've attached extract of /etc/passwd[2] and /etc/group[3].
>
> When I try to ssh into the server, I get "Permission denied" erros
> and can't cd to my home dir, but I can log in and it puts me in the
> root dir:
>
> ----------------------------------------------------------------
> $ ssh dataserv
> <snip />
> -bash: /home/troy/.bash_profile: Permission denied
> troy at dataserv:/$
> ----------------------------------------------------------------
>
> If I list the permissions on my home dir, it all appears as it
> should:
>
> ----------------------------------------------------------------
> # ls -l /home | grep troy
> drwx------ 61 troy staff 4096 2010-01-11 08:39 troy
> ----------------------------------------------------------------
>
> And my bash_profile permissions look fine too:
>
> # ls -l /home/troy/.bash*
> -rw------- 1 troy staff 8077 2009-12-25 20:33 /home/troy/.bash_history
> -rw-r--r-- 1 troy staff 220 2007-03-03 04:01 /home/troy/.bash_logout
> -rw-r--r-- 1 troy staff 414 2007-03-03 04:01 /home/troy/.bash_profile
> -rw-rw-r-- 1 troy staff 1052 2008-09-15 18:40 /home/troy/.bashrc
> ----------------------------------------------------------------
>
> Any ideas? I'm stumped.
Interestingly/puzzlingly samba shares and permissions work fine for
all shared dirs except the users' home dirs.
--
Troy Piggins
http://piggo.com/~troy
More information about the General
mailing list