Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: robwellesley on October 08, 2009, 02:17:51 PM

Title: Ibay access for Guests - no logon required
Post by: robwellesley on October 08, 2009, 02:17:51 PM
You want to provide access to an ibay for guest users with no valid account

create custom template
/etc/e-smith/templates-custom/etc/smb.conf/ibays/50guestok
paste following into template

{
    if ( ($ibay->prop('GuestOK') || 'no') eq 'enabled') {
        $OUT .= "guest ok = yes\n";
    }
}

db accounts setprop IBAYNAME GuestOK enabled
signal-event ibay-modify

NOTE:  If the user has a valid account on the server a logon is required.  So if you wanted to use this method as a way of providing simple file sharing for all users you need to make sure that the user account on the PC does not match any user accounts on the server