The New South Wales Premier has warned unions he will sack rail management and privatise maintenance operations if work practices are not improved by early next year.