Skip to content

Instantly share code, notes, and snippets.

@sargun
Created August 27, 2021 03:50
Show Gist options
  • Save sargun/0a4530c990f95d3b7d40877761c54ce1 to your computer and use it in GitHub Desktop.
Save sargun/0a4530c990f95d3b7d40877761c54ce1 to your computer and use it in GitHub Desktop.
root@ubuntu:~# strace -e trace=sethostname -e 'signal=!all' hostname foo
sethostname("foo", 3)                   = -1 EPERM (Operation not permitted)
hostname: you must be root to change the host name
+++ exited with 1 +++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment