Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atlas-sw-probe: tweak SSH key permissions #24649

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion net/atlas-sw-probe/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=atlas-sw-probe
PKG_VERSION:=5080
PKG_RELEASE:=2
PKG_RELEASE:=3

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/RIPE-NCC/ripe-atlas-software-probe.git
Expand Down
7 changes: 3 additions & 4 deletions net/atlas-sw-probe/files/atlas.init
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,9 @@ create_key() {
[ -f $PRIV_KEY_FILE ] || ln -s $probe_key $PRIV_KEY_FILE
[ -f $PUB_KEY_FILE ] || ln -s $probe_pub_key $PUB_KEY_FILE

#Fix permission
chown atlas $probe_key $probe_pub_key
chgrp atlas $probe_key $probe_pub_key
chmod 644 $probe_key $probe_pub_key
#Fix permissions in case keys were generated using dropbearkey/dropbearconvert
chmod 600 $probe_key
chmod 644 $probe_pub_key

print_msg "Key generated successfully. Use the get_key command to show the public key and get instruction on how to register your probe."
}
Expand Down