Hydrolyzes the N-acetamido groups of N-acetyl-D-glucosamine residues in chitin to form chitosan and acetate. [(1->4)-N-acetyl-beta-D-glucosaminyl](n) + n H2O = n acetate + chitosan Belongs to the polysaccharide deacetylase family.