Results 1 to 2 of 2

Thread: sudo ls

  1. #1
    Join Date
    Jan 2005
    Posts
    2,167

    sudo ls

    Is there a way to list the contents of a directory without having to type 'sudo ls' then the password every time? I just want to be able to type ls like a root user but using a non-root account.

  2. #2
    Join Date
    May 2001
    Location
    HK
    Posts
    3,077

    *

    You just need to enter the password once to authenticate yourself and then you can "sudo ls" without the prompt after.

    In your .bashrc, you can just add an alias: alias ls="sudo ls"

Similar Threads

  1. sudo vs su
    By txitcs in forum Hosting Security and Technology
    Replies: 7
    Last Post: 04-09-2009, 01:07 AM
  2. Sudo help
    By Dougy in forum Hosting Security and Technology
    Replies: 4
    Last Post: 11-27-2008, 03:56 PM
  3. how can I login as sudo
    By sdhost1964 in forum Hosting Security and Technology
    Replies: 5
    Last Post: 10-19-2008, 04:24 PM
  4. sudo vs. su
    By ub3r in forum Web Hosting Lounge
    Replies: 6
    Last Post: 12-15-2003, 10:47 AM
  5. SUDO help
    By X-TechMedia in forum Hosting Security and Technology
    Replies: 15
    Last Post: 11-15-2002, 05:27 PM

Related Posts from theWHIR.com

Posting Permissions

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