[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash syntax




On Tue, Jun 20, 2000 at 10:15:41AM -0500, Charles Menzes wrote:
> 
> Can someone tell me if this is just incorrect syntax that is causing this
> not to work:
> 
> #!/bin/bash
> USER="rufus"
> HOMEDIR="/home/test/rufus"
>         if [ -z $HOMEDIR ]; then
>                 mkdir $HOMEDIR
>                 chmod 755 $HOMEDIR
>                 chown $HOMEDIR $USER
>         fi
> #
> #

I know this isn't what you asked, but:

Do you know about the pam_mkhomedir PAM module?  It creates home
directories on demand if they don't exist when a user logs in.

Sorry if that isn't the problem you're solving; just thought I'd ask.

--
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.