Skip to main content

Thread: How to use PAM to restrict HTTP access for some users?


i've read pam can used restrict http access users, can't figure out how in ubuntu 12.04.

`/etc/security/time.conf` man page contains example:

users except root denied access console-login @ times:

code:
login ; tty* & !ttyp* ; !root ; !al0000-2400
for work, `/etc/pam.d/login` needs have line

code:
    account    requisite  pam_time.so
this example works, , tried adapt limit http access console. added

html code:
  http ; tty* & !ttyp* ; !root ; !al0000-2400
to `/etc/security/time.conf`, , created `/etc/pam.d/http` with

code:
    account    requisite  pam_time.so
this doesn't work. can still use `wget` non-root console.



Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] How to use PAM to restrict HTTP access for some users?


Ubuntu

Comments

Popular posts from this blog

Some mp4 files not displaying correctly (CS6)

Thread: Samba is not authenticating with LDAP