SUDO

1 – Instale o pacote sudo

apt-get install sudo

2 – Adicione esta variável de ambiente no “/etc/profile”

vi /etc/profile
export EDITOR=vim

* Após este passo faça o logout em seguida login.

3 – Adicione as entradas no arquivo de configuração do sudo “/etc/sudoers”

visudo

www-data        ALL=NOPASSWD:   /etc/init.d/squid
www-data        ALL=NOPASSWD:   /usr/bin/killall
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s