Results 1 to 5 of 5

Thread: where do i find the sudo source?

  1. #1
    Join Date
    Dec 2010
    Beans
    1

    where do i find the sudo source?

    hi people

    sorry if that question offends anyone, noobs have questions too

    i just wanted to quickly ask where i might find the uncompiled sources for the sudo command?

    the s on my keyboard is not working too well so i often mistype
    udo
    instead of
    sudo

    this is no problem, and cp'ing sudo to /usr/local/lib/udo of course solves the basic problem,
    but since i am a freak (who would have guessed ) i would love to add some ascii art to that command.

    i basically want to show an ascii picture of udo lindenberg and then continue with the sudo as usual.

    i know that this is not necessary and i know that its a waste of your time, so please accept my sincere apologies for that

    thanks for reading,
    big thanks for helping,
    bigger thanks for telling me how you would echo this in the console "the right way" [ i for sure will be able to get this done, but if you want to give any advise or help, just do so ]

    have fun
    manarius

  2. #2
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,573
    Distro
    Ubuntu

    Re: where do i find the sudo source?

    Code:
    apt-get source sudo
    Note, you don't need sudo to download source code.

    Have fun and be careful

  3. #3
    Join Date
    Apr 2012
    Beans
    7,256

    Re: where do i find the sudo source?

    ... I would think it would be FAR better to wrap a call to /usr/bin/sudo in a little shell script called 'udo' and do your ascii art within THAT

    Code:
    #!/bin/bash
    
    # do your stuff here
    
    /usr/bin/sudo "$@"

  4. #4
    Join Date
    Dec 2010
    Location
    Fukuoka, Japan
    Beans
    1,064
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: where do i find the sudo source?

    It would be so much easier to make an alias in .bashrc assigning "udo" to "sudo."

  5. #5
    Join Date
    Mar 2012
    Beans
    13

    Re: where do i find the sudo source?

    Quote Originally Posted by whatthefunk View Post
    It would be so much easier to make an alias in .bashrc assigning "udo" to "sudo."
    this is exactly what I was thinking

    Code:
    alias udo='sudo '
    I have several alias' for my complete inablitiy to spell. To the point that I carry around a copy of my .bashrc.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •