Koozali.org: home of the SME Server

Ibay access for Guests - no logon required

Offline robwellesley

  • *
  • 92
  • +0/-0
Ibay access for Guests - no logon required
« 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