Page 2 of 7 FirstFirst 1234 ... LastLast
Results 11 to 20 of 62

Thread: Terminal Enhancements

  1. #11
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,297
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Terminal Enhancements

    Quote Originally Posted by xsinsx View Post
    This can simply be fixed with the !! << double shabang when youve done that. Type
    Code:
    Macintosh:etc stephenjackson$ mkdir /etc/hello
    mkdir: /etc/hello: Permission denied
    Macintosh:etc stephenjackson$ sudo !!
    sudo mkdir /etc/hello
    Password:
    Macintosh:etc stephenjackson$ 
    and it retrieves your last command and executes it with the sudo at the beginning.
    Those are totally different issues, running the script as root is not always what you want.
    「明後日の夕方には帰ってるからね。」


  2. #12
    Join Date
    May 2010
    Location
    Here
    Beans
    1,297
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Wink Re: Terminal Enhancements

    It is a terminal, and this will be implemented.
    I agree with all of your comments, but not for long.
    All of the other code will be used

  3. #13
    Join Date
    May 2010
    Location
    Here
    Beans
    1,297
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Terminal Enhancements

    Quote Originally Posted by d3v1150m471c View Post
    ...what does this do?
    It makes it easier to use a terminal.
    This is mostly aimed for people who are tired of all those annoying error messages popping up, and beginners to Ubuntu.

  4. #14
    Join Date
    Jan 2006
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Terminal Enhancements

    Quote Originally Posted by Bachstelze View Post
    It's not a matter of argument: it does introduce a security risk. What's arguable is whether or not this security risk outweighs the added convenience.
    agreed, BUT! there is a but

    if your system is properly secured from the network (firewalls/nats) and OS (good passwords, sshd patched and not on weird demo keys), then adding current directory to the end of the path doesn't do much in the way of security since all other system directories are searched anyway.

    in either case, you should be using any priveledged commands under some logged super user utility (sesudo, sudo?, sudoscript, etc.)
    I am infallible, you should know that by now.
    "My favorite language is call STAR. It's extremely concise. It has exactly one verb '*', which does exactly what I want at the moment." --Larry Wall
    (02:15:31 PM) ***TimToady and snake oil go way back...
    42 lines of Perl - SHI - Home Site

  5. #15
    Join Date
    Jul 2009
    Beans
    59

    Re: Terminal Enhancements

    Quote Originally Posted by Bachstelze View Post
    Those are totally different issues, running the script as root is not always what you want.

    Understood but in his example it was implied he wanted a sudo. I was demonstrating my way around when I forget to run something I need as root. I do understand the issue of changing permissions that was used in that example. I am just pointing out an alternative if and when you need to fix a missing sudo or anything you may have missed in the previous command.

    opps I misread he was not implying a sudo.
    Last edited by xsinsx; July 5th, 2010 at 05:09 AM.
    Code:
     SELECT * FROM users WHERE clue > 0;
      0 rows returned

  6. #16
    Join Date
    May 2010
    Location
    Here
    Beans
    1,297
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Terminal Enhancements

    I was wondering what was the security risk with adding the . to the Path.
    I know that it could be dangerous for running the script as root, but the installation doesn't run it as root.
    Last edited by lkjoel; July 5th, 2010 at 07:04 PM.

  7. #17
    Join Date
    Apr 2007
    Location
    NorCal
    Beans
    1,149
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Terminal Enhancements

    Quote Originally Posted by lkjoel View Post
    I was wondering what was the security risk with adding the . to the Path.
    I know that it could be dangerous for running the script as root, but the installation doesn't run it as root.
    A malicious script could name itself "ls" and put it in the current directory. Then, the next time you want use ls, the malicious script is run instead.
    Posting code? Use the [code] or [php] tags.
    I don't care, I'm still free. You can't take the sky from me.

  8. #18
    Join Date
    May 2010
    Location
    Here
    Beans
    1,297
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Terminal Enhancements

    Quote Originally Posted by schauerlich View Post
    A malicious script could name itself "ls" and put it in the current directory. Then, the next time you want use ls, the malicious script is run instead.
    But wouldn't there be TWO ls's?
    Only one of them can run right?

    I could also add an antivirus feature, which would make this terminal the safest ever...

  9. #19
    Join Date
    May 2010
    Location
    Here
    Beans
    1,297
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Wink Re: Terminal Enhancements

    Quote Originally Posted by dwhitney67 View Post
    I agree; augmenting the PATH variable from within the .bashrc is all that is needed. Some may argue though, that appending the "." to the path may introduce a security risk.

    As for the other issue the OP was having, it was merely a file permission problem. It appears as if the script lacked the ability to be executed. That is easily solved with:
    Code:
    chmod 744 DriverforOpenGL.sh
    I'm not having any issues. This is mostly for beginners, who are new to Ubuntu, and are used to windows.
    And I prefer;
    Code:
    chmod +x DriverforOpenGL.sh

  10. #20
    Join Date
    Feb 2007
    Beans
    4,045
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Terminal Enhancements

    Quote Originally Posted by lkjoel View Post
    But wouldn't there be TWO ls's?
    Only one of them can run right?
    Yes, the first one it finds is the one it will run. But he/she can also be clever and call it sl and wait for you to slip up.

Page 2 of 7 FirstFirst 1234 ... LastLast

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
  •