hosted by liquidweb


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

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
  #1  
Old
Web Hosting Master
 
Join Date: Jan 2005
Posts: 2,121

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
  #2  
Old
Quant Trader
 
Join Date: May 2001
Location: HK
Posts: 3,027
*

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"

Reply

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 TheWhir.com
Title Type Date Posted
SSHD Rootkit in the Wild Blog 2013-02-22 16:44:08


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
Login:
Log in with your username and password
Username:
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.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com 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?