Difference between revisions of "IT/AdminPermissions"
From CA Greens wiki
(→Changing "the site password") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
==Changing "the site password"== | ==Changing "the site password"== | ||
− | Certain directories on http://www.cagreens.org are protected by the file /w/cal/internal/.htaccess. | + | Certain directories on http://www.cagreens.org are protected by the file <code>/w/cal/internal/.htaccess</code>. |
− | The passwords are stored, encrypted, in a file /w/cal/internal/.htpasswd which you manipulate with the htpasswd command. | + | The passwords are stored, encrypted, in a file <code>/w/cal/internal/.htpasswd</code> which you manipulate with the <code>htpasswd</code> command. |
These root shell incantations update the password for the gpca user ID. The htpasswd command comes with the Apache web server. Obviously, the <code>man</code> and <code>ls</code> commands are optional. The <code>cp</code> command seems like a reasonable precaution. | These root shell incantations update the password for the gpca user ID. The htpasswd command comes with the Apache web server. Obviously, the <code>man</code> and <code>ls</code> commands are optional. The <code>cp</code> command seems like a reasonable precaution. | ||
<code>cd /w/cal/cc/internal<br /> | <code>cd /w/cal/cc/internal<br /> | ||
− | man htpasswd | + | man htpasswd<br /> |
ls -a<br /> | ls -a<br /> | ||
cp -p .htpasswd htpasswd2010<br /> | cp -p .htpasswd htpasswd2010<br /> | ||
htpasswd -b -c .htpasswd gpca ‘''new password''‘<br /> | htpasswd -b -c .htpasswd gpca ‘''new password''‘<br /> | ||
</code> | </code> |
Latest revision as of 14:16, 21 March 2010
Changing "the site password"
Certain directories on http://www.cagreens.org are protected by the file /w/cal/internal/.htaccess
.
The passwords are stored, encrypted, in a file /w/cal/internal/.htpasswd
which you manipulate with the htpasswd
command.
These root shell incantations update the password for the gpca user ID. The htpasswd command comes with the Apache web server. Obviously, the man
and ls
commands are optional. The cp
command seems like a reasonable precaution.
cd /w/cal/cc/internal
man htpasswd
ls -a
cp -p .htpasswd htpasswd2010
htpasswd -b -c .htpasswd gpca ‘new password‘