restricted http acces with /etc/passwd and /etc/shadow

restricted http acces with /etc/passwd and /etc/shadow

Post by Alex B » Sun, 27 Oct 1996 04:00:00

Hi all!

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.


1. CDE vs. /etc/passwd, /etc/shadow and /etc/group

Can anybody tell me what happens to the /etc/passwd, /etc/shadow and
/etc/group when DCE is installed?
I've seen images of these files and seems like CDE adds users & groups
with funny names like 'hosts/machine/group' and

If this is the case, how do the Solaris commands (useradd/mod/del,
passwd, etc.) get along with these weird users/groups?


/* EagleEye Control Software, LTD., Tel-Aviv, Israel                  */
/* .. I busted a mirror and got seven years bad luck, but my        ..*/
/* .. lawyer thinks he can get me five.        (Steven Wright)      ..*/

2. Bad RAM

3. Convert NIS passwd back to standard /etc/passwd & /etc/shadow

4. Linux on 486/33??

5. Comment out a line in /etc/passwd & /etc/shadow

6. Problems with PPP & PAP

7. rconsiling the /etc/shadow and /etc/passwd files

8. Screenblank for Solaris 2.2

9. kuser etc/shadow and etc/passwd

10. Moving etc/shadow & etc /passwd

11. how to tell /etc/passwd from /etc/shadow?

12. what's the difference between /etc/shadow and /etc/passwd?

13. Removing entries in /etc/shadow and /etc/passwd via a program