Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
1
Newest
 Supporter
Impact
~37 people reached

  • 0 posts edited
  • 0 helpful flags
  • 4 votes cast
Feb
3
comment Using placeholders or environment variables in sudoers
To be precise I want to "access" (in sudoers rules) user name of the user calling sudo. The particular use case is to enforce proper argument -u to crontab. On our system crontab doesn't have SUID bit set and access to it is controlled by sudo. But that requires some tricks so that after sudoing crontab still uses proper user rather than root. Among the tricks is use of stay_setuid in sudoers. But I wanted to explore other options as well. Among them is an option of allowing user to run sudo crontab only with -u for himself.
Feb
3
comment Using placeholders or environment variables in sudoers
That surly would do. But I hoped for some solution without introducing any new scripts/programs.
Feb
3
asked Using placeholders or environment variables in sudoers
Oct
5
awarded  Supporter