Context. Over the past five decades, radio astronomy has shown that molecular complexity is a natural outcome of interstellar chemistry, in particular in star forming regions. However, the pathways that lead to the formation of complex molecules are not completely understood and the depth of chemical complexity has not been entirely revealed. In addition, the sulfur chemistry in the dense interstellar medium is not well understood. Aims. We want to know the relative abundances of alkanethiols and alkanols in the Galactic center source Sagittarius B2(N2), the northern hot molecular core in Sgr B2(N), whose relatively small line widths are favorable for studying the molecular complexity in space. Methods. We investigated spectroscopic parameter sets that were able to reproduce published laboratory rotational spectra of ethanethiol and studied effects that modify intensities in the predicted rotational spectrum of ethanol. We used the Atacama Large Millimeter Array (ALMA) in its Cycles 0 and 1 for a spectral line survey of Sagittarius B2(N) between 84 and 114.4 GHz. These data were analyzed by assuming local thermodynamic equilibrium (LTE) for each molecule. Our observations are supplemented by astrochemical modeling; a new network is used that includes reaction pathways for alkanethiols for the first time. Results. We detected methanol and ethanol in their parent 12 C species and their isotopologs with one 12 C atom substituted by 13 C; the latter were detected for the first time unambiguously in the case of ethanol. The 12 C/ 13 C ratio is ∼25 for both molecules. In addition, we identified CH OH ratio of ∼7.3. Upper limits were derived for the next larger alkanols normal-and iso-propanol. We observed methanethiol, CH 3 SH, also known as methyl mercaptan, including torsionally excited transitions for the first time. We also identified transitions of ethanethiol (or ethyl mercaptan), though not enough to claim a secure detection in this source. The ratios CH 3 SH to C 2 H 5 SH and C 2 H 5 OH to C 2 H 5 SH are 21 and 125, respectively. In the process of our study, we noted severe discrepancies in the intensities of observed and predicted ethanol transitions and propose a change in the relative signs of the dipole moment components. In addition, we determined alternative sets of spectroscopic parameters for ethanethiol. The astrochemical models indicate that substantial quantities of both CH 3 SH and C 2 H 5 SH may be produced on the surfaces of dust grains, to be later released into the gas phase. The modeled ratio CH 3 SH/C 2 H 5 SH = 3.1 is lower than the observed value of 21; the model value appears to be affected most by the underprediction of CH 3 SH relative to CH 3 OH and C 2 H 5 OH, as judged by a very high CH 3 OH/CH 3 SH ratio. Conclusions. The column density ratios involving methanol, ethanol, and methanethiol in Sgr B2(N2) are similar to values reported for Orion KL, but those involving ethanethiol are significantly different and suggest that the detection of ethanethiol reported toward Orion KL ...