unsudo function with proper group