skip to main
|
skip to sidebar
Virtual Private Server Life
Saturday, May 5, 2012
How to make stable $PATH when using sudo command?
To make your sudo commands works with the $PATH of your logged-in user you just type the following command and then close all your terminals and login again:
echo "alias sudo='sudo env PATH=$PATH'" >> ~/.bashrc
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Subscribe To:
Posts
Atom
Posts
Comments
Atom
Comments
Bookmarking
Categories
Antiddos
Apache
Centos
Extensions
Fast-Cgi
Firewall
FTP
ftp server
Hardware
Hostname
iptables
LAMP
Linux Performance
memcached
MYSQL
Network
Nginx
path shell
PHP
Php-cgi
Security
Setup
System
Text Editors
Timezone
Unix Shell Commands
Virtual Host
vsftp
Webmin
Handy Links
Ip Adresim Ne
Archives
▼
2012
(3)
▼
May
(2)
How to run a unix command as a USER on startup?
How to make stable $PATH when using sudo command?
►
January
(1)
►
2011
(1)
►
October
(1)
►
2010
(6)
►
July
(2)
►
February
(3)
►
January
(1)
►
2009
(12)
►
October
(3)
►
September
(2)
►
April
(3)
►
March
(4)
►
2008
(10)
►
October
(10)
Recent Comments
Loading...
No comments:
Post a Comment