I'm not sure if this is the right group to ask this, but I'll give it a try.
As we all know, one can restrict certain dirs from http access by puting a
.htaccess in it. Since I have a dir that has to be accessable (sp?) for known
users (all users in /etc/passwd that is), and _only_ those users, I'm looking
for a way to generate a .htaccess and a .htpasswd automatically from
/etc/passwd and /etc/shadow. Ofcourse I could modify my adduser script, but
this has a few drawbacks. In that case the http password doesn't change
whenever a user decides to change his or her password, for instance. I know
that the encryption method used in /etc/shadow is different from the one used
in .htpasswd, so cutting the password field from /etc/shadow and pasting it to
.htpasswd won't work.
Maybe there is some other (easyer?) way to give all known users access to a
http dir that is restricted for others? I'm using NCSA HTTPd 1.5.2, but I
couldn't find any info on this issue in the documentation.
| Standard disclaimer: The views of this user are strictly his own.