<html><head></head><body><p dir="ltr">It's safer to use the direct path.</p>
<p dir="ltr">Although unlikely, someone could change the symlink to point to something you would prefer the user not have access to.</p>
<p dir="ltr">TJ</p>
<p dir="ltr"><!-- tmjah_g_1299s -->Sent from <a href="http://www.typeapp.com/r">TypeApp<!-- tmjah_g_1299e --></a><br><br></p>
<div class="gmail_quote" >On Feb 5, 2016, at 2:19 PM, "Snyder, Alexander" <<a href="mailto:alex@misteralexander.com" target="_blank">alex@misteralexander.com</a>> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr"><div>Does anyone know if you grant sudo access to a symlink, does that grant access to the destination?</div><div><br></div><div>Like this ... inside the sudoers file, I have:</div><div><br></div><div>/bin/cat * /home/user/logs</div><div><br></div><div>"logs" is a symlink pointing to: /var/log/httpd/</div><div><br></div><div>will that work, or will i need to specify the direct path?</div><div><br></div><div>Thanks,</div><div>Alex.</div>
</div>
<pre class="blue"><hr><br>PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org<br>To subscribe, unsubscribe, or to change your mail settings:<br><a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></pre></blockquote></div></body></html>