mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Adding keytool to the list of sudo commands for cloud user to allow certificate creation during startup
Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
This commit is contained in:
parent
137655d4e1
commit
451e2ab851
@ -729,7 +729,7 @@ class sudoersConfig(serviceCfgBase):
|
|||||||
def config(self):
|
def config(self):
|
||||||
try:
|
try:
|
||||||
cfo = configFileOps("/etc/sudoers", self)
|
cfo = configFileOps("/etc/sudoers", self)
|
||||||
cfo.addEntry("cloud ALL ", "NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount, /bin/umount")
|
cfo.addEntry("cloud ALL ", "NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount, /bin/umount, /usr/bin/keytool")
|
||||||
cfo.rmEntry("Defaults", "requiretty", " ")
|
cfo.rmEntry("Defaults", "requiretty", " ")
|
||||||
cfo.save()
|
cfo.save()
|
||||||
return True
|
return True
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user