[H-GEN] weird permissions problem
Troy Piggins
troy at piggo.com
Sun Jan 10 23:32:28 EST 2010
* Clinton Roy wrote :
>
> Hi Tony,
>
> Have you checked the logs? I'm sure there will be a hint there. Are
> /home's permissions ok? run ssh in verbose mode, it'll tell you
> exactly what's wrong.
Clinton,
SSH isn't the issue. For some reason my original mail to this list
hasn't come through yet, although my followup to my own msg has. In
the original msg I included some extracts that I've now pasted
below.
The permissions of /home are
drwx------ 43 root root 4096 2010-01-11 11:24 home
and as an example the permission of my home dir is
drwx------ 61 troy staff 4096 2010-01-11 08:39 troy
I've had a look through the logs and can't find anything noticeable.
[1] /home/troy/bin/add_staff.sh
----------------------------------------------------------------
#v+
#!/bin/bash
NEW_USER=$1
sudo groupadd $NEW_USER
sudo useradd -g staff -G $NEW_USER -m $NEW_USER
sudo chmod go-rx /home/$NEW_USER/
sudo passwd $NEW_USER
sudo smbpasswd -a $NEW_USER
sudo vim /home/$NEW_USER/signature.txt
#v-
----------------------------------------------------------------
[2] /etc/passwd
----------------------------------------------------------------
#v+
troy:x:1003:50:Troy Piggins,,,:/home/troy:/bin/bash
#v-
----------------------------------------------------------------
[3] /etc/group
----------------------------------------------------------------
#v+
adm:x:4:troy
dialout:x:20:cupsys,troy
cdrom:x:24:haldaemon,troy
floppy:x:25:haldaemon,troy
audio:x:29:troy
dip:x:30:troy
video:x:44:troy
plugdev:x:46:haldaemon,troy
staff:x:50:troy
lpadmin:x:109:troy
scanner:x:111:cupsys,hplip,troy
troy:x:1009:troy
#v-
----------------------------------------------------------------
--
Troy Piggins
http://piggo.com/~troy
More information about the General
mailing list