I want to add user to specific UNIX group only for 6 months. Then I want automatically kick him out of this group and I don't want to expire his username. Which command should I use?
Asked
Active
Viewed 345 times
1 Answers
1
One thing that comes to mind is that you could schedule a cron job an at job to run the command that removes the user from the group.
Edit: Based on telcoM 's comment

Kusalananda
- 333,661

gomfy
- 111
at
job might be a better choice, since it's a task that needs to happen just once at a particular future time. Cron jobs are better suited for repeating tasks. – telcoM Jan 23 '20 at 14:14