[olug] sudo, svn security backflips

Jay Hannah jay at jays.net
Wed Dec 19 01:30:20 UTC 2007


If your username is "jhannah" and you're in a directory where only the 
username "i3bio" can change files and you have sudo access to run 
commands as "i3bio" and you have "jhannah" access to an SVN repository 
and the files in that directory are in SVN then you can update those 
files via sudo for file access and by passing --username to svn like so:

  $ sudo -u i3bio svn update Query.pm --username jhannah

Merry Christmas.   :)

j





More information about the OLUG mailing list