Locking a login

Locking an Adaptive Server login is a way to disable it without removing it from the master database. It may be easier to lock a login rather than delete it for the following reasons:

Another common reason to lock a login is to implement roles. When you first install Adaptive Server, the default “sa” login has all privileges associated with every role. At many installations, after the “sa” login makes the initial role assignments, a user with the system administrator or system security officer role locks the “sa” login, so that no single Sybase Central user has every available privilege and so that actions can be traced.

You can lock an account that is logged in—the user is not locked out until he or she logs out. You can lock an account that owns a database and objects in databases.

StepsLocking or unlocking a login

  1. Select the login icon, then choose File | Properties.

  2. Select the Parameters tab.

  3. Check or clear the Account is Locked check box.

  4. Click OK.