Advertisement
Guest User

Bypass password in sudo?

a guest
Dec 8th, 2011
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.66 KB | None | 0 0
  1. #!/bin/bash
  2. ##This script is being run on Mac OSX, it is a terminal script that is accessed @ startup.
  3. ##
  4. ##This computer that this is being run on is a Synergy client connecting to a Synergy server.
  5. ##That Synergy server is a computer on the same network and I connect via synergyc and with
  6. ##root access in terminal.
  7.  
  8.  
  9. say Connecting to Synergy Server.
  10. sudo synergyc --f 192.168.1.30
  11.  
  12. ##Here I am prompted for a password, and so it never gets to the connection unless I type in ##the password automatically. And I want the password to automatically be entered. Security
  13. ##isn't of a concern, but I am not against hashing/encrypting a file to store the password.
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement