> Following on several peoples advice and a suggested code snippet from Erik
> I've added the following before the check for profile:
> 
> if(! test -d $home){
>       echo no home directory $home
>       exit homeless
> }
> if(! ls -ld $home >[2=] | grep -s '^d-rwx.* '$user){
>       echo bad permissions
>       exit homeless
> }

you must also exit if ~ $user none.  i'd also recommend
aborting if ~ $home /.  you don't want none making
files in /.  on a regular plan 9 system, that's no worry, but
9vx, ...

- erik

Reply via email to