Enhancement #3012

Add includedir directive to /etc/sudoers

Added by Davide Principi over 6 years ago. Updated over 6 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-base
Target version:v6.6-rc1
Resolution: NEEDINFO:No

Description

For a real use case see on ML

https://groups.google.com/d/msg/nethserver/D0KmIU8PCe4/0L42UGf1KEkJ

Acknowledgements
  • Luca Andreucci

Associated revisions

Revision 77a5372a
Added by Giacomo Sanchietti over 6 years ago

sudoers template: add includedir directive. Refs #3012

History

#1 Updated by Giacomo Sanchietti over 6 years ago

  • Target version changed from v6.5 to v6.6-rc1

#2 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#3 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

#4 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
Package in nethserver-testing:
  • nethserver-base-2.5.5-51.0git77a5372a.ns6.noarch.rpm
Test case
  • Install the new package
  • Create a user myuser:
    useradd myuser
    
  • Edit a new sudoers files with visudo (visudo -f /etc/sudoers.d/myuser) and add the following content:
    Cmnd_Alias DB_TEST = /sbin/e-smith/db
    %myuser ALL=NOPASSWD: DB_TEST
    
  • switch to new user:
    su - myuser
    
  • the user should be able to read the configuration db:
    sudo /sbin/e-smith/db configuration show
    

#5 Updated by Davide Principi over 6 years ago

  • Assignee set to Davide Principi

#6 Updated by Davide Principi over 6 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 70 to 90

#7 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

Released in nethserver-base:
nethserver-base-2.6.0-1.ns6.noarch.rpm

Also available in: Atom PDF