The Ubuntu community has contributed 15328 ideas, 75068 comments, 1387413 votes
| |
-26
|
|
|
|
Sudo -w PASSWORD
|
|
Written by xxkirastarothxx the 18 Nov 08 at 11:19. Category: Security.
Related to: Nothing/Others.
New
|
|
A simple command line to use sudo "in-one-line".
ex:
* sudo -w mYPaSsWORD /etc/init.d/apache2 restart
* sudo -s -w mYPaSsWORD
...
It could be realy usefull for Webmasters who uses exec()/system()/... command from php or PHPShell and other shell system without interactivity.
For the moment, the one way is to define /etc/sudoers to use sudo WITHOUT password; or write the password in a file.pw
* su -c /etc/init.d/apache2 restart < root.pw
that could be a security fail for servers
|
|
|