You might want to try running sudo -l, which will give you a listing of what permissions you have, according to the local sudo configuration. Eg: on my Macbook, I get:
: cez@rhk; sudo -l
Password:
Matching Defaults entries for cez on this host:
env_reset, env_keep+=BLOCKSIZE, env_keep+="COLORFGBG COLORTERM", env_keep+=__CF_USER_TEXT_ENCODING,
env_keep+="CHARSET LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE", env_keep+="LC_MESSAGES LC_MONETARY LC_NUMERIC
LC_TIME", env_keep+="LINES COLUMNS", env_keep+=LSCOLORS, env_keep+=SSH_AUTH_SOCK, env_keep+=TZ,
env_keep+="DISPLAY XAUTHORIZATION XAUTHORITY", env_keep+="EDITOR VISUAL"
User cez may run the following commands on this host:
(ALL) ALL
: cez@rhk;
The (ALL) ALL part means that my user can run any commands as any user (AFAICS).
/etc/sudoersfile. If you don't control your sudo configuration you're not going to be able to do anything about this.sudocan be configured to allow only specific commands to be run with escalated privileges, which appears to be the case here... seeman sudoersor google "sudo configuration" for more details. – Anonymous May 23 '11 at 23:04