Difference between revisions of "IT/AdminPermissions"

From CA Greens wiki
Jump to: navigation, search
Line 8: Line 8:
 
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 &lsquo;''new password''&lsquo;<br />
 
</code>
 
</code>

Revision as of 15:05, 21 March 2010

Changing "the site password"

Certain directories on http://www.cagreens.org are protected by the file /w/cal/internal/.htaccess. It refers to 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.

cd /w/cal/cc/internal
ls -a
cp -p .htpasswd htpasswd2010
htpasswd -b -c .htpasswd gpca ‘new password