Skip to content

added environment variable expansion in config file#539

Open
sergey-safarov wants to merge 1 commit intoirontec:masterfrom
sergey-safarov:gh529
Open

added environment variable expansion in config file#539
sergey-safarov wants to merge 1 commit intoirontec:masterfrom
sergey-safarov:gh529

Conversation

@sergey-safarov
Copy link
Copy Markdown
Contributor

This PR add environment variables expansion in sngrep config file.

Use case example
You have logged into remote server using ssh as normal user (not root user).
Then you will need to use sudo -i command to get root user permission.
To save pcap files in normal user folder (not root folder) required to configure in /etc/sngreprc file next string

set savepath /home/${SUDO_USER}

PR tested locally.

Related to GH #529

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant