Skip to content

Commit 4641ee1

Browse files
committed
allow tedge-write to create files under /tmp
Signed-off-by: reubenmiller <reuben.d.miller@gmail.com>
1 parent 4b02fbf commit 4641ee1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/RobotFramework/tests/tedge_write.robot

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ Preserves permissions if a destination exists
109109
There should be no leftover temporary files ${dest_file}
110110

111111
Custom Setup
112-
Setup skip_bootstrap=True
113-
Execute Command ./bootstrap.sh --no-bootstrap --no-connect
112+
# By default tedge-write only has permissions to write to files under /etc/*
113+
Execute Command
114+
... cmd=echo 'tedge ALL = (ALL) NOPASSWD:SETENV: /usr/bin/tedge-write /tmp/*' | sudo tee /etc/sudoers.d/tedge_write_tmp
114115

115116
Create a regular user
116117

0 commit comments

Comments
 (0)