For your #5 above, this is what I have in a shell script to rectify your 
situation:
(thanks with help from the Likewise forum people)

 if [ -f /etc/likewise-open/lsassd.reg ] &&  [ "$(grep -c 
'"HomeDirTemplate"="%H/%D/%U"' /etc/likewise-open/lsassd.reg)" -lt "3" ]; then
        # Hardy sed -i 's,;umask = 0022,&\numask = 0027,' 
/etc/security/pam_lwidentity.conf
        # need to alter the home settings in the Likewise database
        echo "Processing the Likewise database to set Home Directory"
        sed -i 's,"HomeDirUmask"="022","HomeDirUmask"="027",' 
/etc/likewise-open/lsassd.reg
        sed -i 
's,"HomeDirTemplate"="%H/likewise-open/%D/%U","HomeDirTemplate"="%H/%D/%U",' 
/etc/likewise-open/lsassd.reg
        lwregshell import /etc/likewise-open/lsassd.reg
        lw-refresh-configuration
        lw-ad-cache --delete-all
        /etc/init.d/lsassd restart
 else
        echo "NOT processing the Likewise database to set Home Directory, as it 
already looks processed."
 fi

-- 
'lsassd' has to be restarted in order to login
https://bugs.launchpad.net/bugs/510683
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to