Skip to content

Instantly share code, notes, and snippets.

@alindeman
Created January 6, 2011 20:40
Show Gist options
  • Select an option

  • Save alindeman/768536 to your computer and use it in GitHub Desktop.

Select an option

Save alindeman/768536 to your computer and use it in GitHub Desktop.
andy@adl91desktop:~/tmp$ ls -alh setuid.rb
-rwsr-sr-x 1 root root 38 2011-01-06 14:39 setuid.rb
andy@adl91desktop:~/tmp$ cat setuid.rb
#!/usr/bin/env ruby
puts Process.uid
andy@adl91desktop:~/tmp$ ./setuid.rb
1000
@alindeman
Copy link
Author

Example for irc.freenode.net#ruby-lang: setuid on a Ruby script will not work as you may expect

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