lamw / ghettoVCB

ghettoVCB
MIT License
1.29k stars 365 forks source link

Cp: can’t create ‘/etc/rc.local’: Operation not permitted #313

Closed robina80 closed 8 months ago

robina80 commented 8 months ago

hi all,

i want to modify file “/etc/rc.local” but i get operation not permitted and i know why after doing a ls -la

ls -la /etc/rc.local -r-xr-xr-x 1 root root 1420 Nov 23 2019 /etc/rc.local

is it safe to chmod the file to 755 and then back again to 555?

thanks, rob

robina80 commented 8 months ago

i didnt need to do this as both my esxi servers arnt using secure boot, i worked it out via this command

/usr/lib/vmware/secureboot/bin/secureBoot.py -s

so i didnt need to edit that file, luckily the file i needed to edit was below and root had write access to

ls -lah /etc/rc.local.d/local.sh -rwxr-xr-x 1 root root 681 Jun 23 2023 /etc/rc.local.d/local.sh