The Sheriff shall:
1. Keep the County jail;
2. Receive all prisoners committed to jail by competent authorities;
3. Execute the orders and legal processes issued by courts of the State of California;
4. Upon court order detail necessary bailiffs; and
5. Execute the orders and legal processes issued by the Board of Supervisors or by any legally authorized department or commission.
The Sheriff shall appoint, and at his or her pleasure may remove, an attorney, one under-sheriff, one assistant sheriff and one confidential secretary.