hosted by liquidweb

Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : sudo ls

Forum Jump

sudo ls

Reply Post New Thread In Hosting Security and Technology Subscription
Send news tip View All Posts Thread Tools Search this Thread Display Modes
Web Hosting Master
Join Date: Jan 2005
Posts: 2,166

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.

Sponsored Links
Quant Trader
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
Thread Thread Starter Forum Replies Last Post
sudo vs su txitcs Hosting Security and Technology 7 04-09-2009 01:07 AM
Sudo help Dougy Hosting Security and Technology 4 11-27-2008 03:56 PM
how can I login as sudo sdhost1964 Hosting Security and Technology 5 10-19-2008 04:24 PM
sudo vs. su ub3r Web Hosting Lounge 6 12-15-2003 10:47 AM
SUDO help X-TechMedia Hosting Security and Technology 15 11-15-2002 05:27 PM

Related posts from
Title Type Date Posted

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Log in with your username and password

Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Web Hosting News:
WHT Membership
WHT Membership



Welcome to

Create your username to jump into the discussion! is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.

(4 digit year)

Already a member?