# Sudo command

**URL:** <https://community.unix.com/t/sudo-command/246006>\
**Category:** UNIX for Advanced & Expert Users\
**Created:** [July 31, 2009, 12:46pm UTC](https://community.unix.com/t/sudo-command/246006 "2009-07-31T12:46:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sophos](https://community.unix.com/letter_avatar/sophos/32/5_5575768a8748004e209b776fc1b2916d.png) [@sophos](https://community.unix.com/u/sophos)\
**Post date:** [July 31, 2009, 12:46pm UTC](https://community.unix.com/t/sudo-command/246006/1 "2009-07-31T12:46:41Z")

</div>

Hello,

What does the below sudo command provide access to, does it allow a user to su to any other user except root.

sudo !/usr/bin/su [!-]\*

---

<div class="post-metadata">

**Author:** ![Corona688](https://community.unix.com/letter_avatar/corona688/32/5_5575768a8748004e209b776fc1b2916d.png) [@Corona688](https://community.unix.com/u/Corona688)\
**Post date:** [July 31, 2009, 3:33pm UTC](https://community.unix.com/t/sudo-command/246006/2 "2009-07-31T15:33:32Z")

</div>

First off, it won't provide access to anything at all unless sudo is configured to allow it.

Second, su is usually in /bin/, not /usr/bin/, so I'm not sure this command is what it looks like at first glance.

Third, using sudo to call su is pretty pointless, reinforcing my view that something funny is going on here.

Lastly, it seems to be using shell expansions, so what it does depends quite a lot on what directory it was in. Where did you see this command?
