Bugs: Browse | Submit New | Admin

[#28942] Vlad/Ubuntu

Date:
2011-02-21 20:24
Priority:
3
Submitted By:
Matt Smith (mcs)
Assigned To:
Ryan Davis (zenspider)
Category:
vlad
State:
Open
Summary:
Vlad/Ubuntu

Detailed description
Ryan,

Here are the details about using sudo with Vlad on Ubuntu

1) Add the following to deploy.rb
set :sudo_flags, sudo_flags << '-S'

2 ) Create askpass (~/bin/askpass)
#!/usr/bin/env ruby
puts gets.chomp!

3) Set permissions on askpass
sudo chmod 755 ~/bin/askpass

4) Add the following (or similar) to .bashrc (top of file)
if [ -z "$PS1" ]; then
    export SUDO_ASKPASS=$HOME/bin/askpass
fi

My website is in its infancy, but I wrote it up here:
http://nearapogee.com/posts

Thanks for everything. Hope this helps!

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item