sudo-project / sudo

Utility to execute a command as another user
https://www.sudo.ws
Other
1.15k stars 208 forks source link

Could you please help me #319

Closed trackers-lover closed 8 months ago

trackers-lover commented 8 months ago
  When I execute sudo ls, sudo will read the  /etc/sudoers file to determine if the current user has permission to access it. However, if I want sudo to read other files under /etc, which files should I modify? 
  Thanks !!
trackers-lover commented 8 months ago

i seem to have found the answer, pathname.in.h, right?

millert commented 8 months ago

If you want to change the directory that the sudoers file lives in you can use the --sysconfdir configure option. If you want to change the name from sudoers to something else, you can modify the value of _PATH_SUDOERS in plugins/sudoers/Makefile (the CPPDEFS variable).