Skip to content

Commit

Permalink
[NTP] Changed owner for ntp keys config file to root and remove read …
Browse files Browse the repository at this point in the history
…access for other.

Signed-off-by: Yevhen Fastiuk <yfastiuk@nvidia.com>
  • Loading branch information
fastiuk committed Jul 4, 2023
1 parent 1171ae4 commit 3f6a693
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion files/image_config/ntp/ntp-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ function modify_ntp_default
sonic-cfggen -d -t /usr/share/sonic/templates/ntp.conf.j2 >/etc/ntp.conf
sonic-cfggen -d -t /usr/share/sonic/templates/ntp.keys.j2 >/etc/ntp.keys

chown ntp:ntp /etc/ntp.keys
chown root:ntp /etc/ntp.keys
chmod o-r /etc/ntp.keys

get_database_reboot_type
echo "Disabling NTP long jump for reboot type ${reboot_type} ..."
Expand Down

0 comments on commit 3f6a693

Please sign in to comment.