You are not logged in.
I have created a server for my local network and now i want it to prompt for a username and password when someone trys to access it.
Offline
You need to provide more info than that.
What kind of server? (http/ftp/nfs/etc)
What program are you running? (apache/vsftpd/samba/etc)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
http server
Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8j DAV/2
running on Arch of course
I used the "Comprehensive Server Guide" on the wiki to create an Apache server
and I added PHP to the server
Last edited by kmiller8 (2009-02-11 21:16:49)
Offline
How does the user access it? Do you want tot setup a fileserver or a webserver?
In the first case, you can do it with a simple .htaccess-file (but there are many other options to authenticate through apache-plugins). Google will give you plenty info on that file and how to set it up.
In the second case, you'll have to write/use a webpage that uses the user-input to authenticate with a known source. Gives a little more polish to it all.
And by the way: you could just use both methods at the same time... Your question is very vague I guess :-)
Zl.
Offline
right now I just want to set up a file server with limited acces to only those who have a proper username and password
and I want the users on the file server to have different usernames than the username on the computer
Offline
http://httpd.apache.org/docs/1.3/howto/auth.html
That explains how to set up basic username/password access, which should be good enough over a LAN.
http://httpd.apache.org/docs/1.3/mod/mod_access.html
You can couple that with mod_access to restrict access to specific IPs etc.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
thanks, I got it working now
Offline
now i have another question
how can i set access of folders to only one group?
Offline
Offline
Where do i put the <Directory> code
Offline
Please read if a link has been provided:
"These directives may be placed in a .htaccess file in the particular directory being protected, or may go in the main server configuration file, in a <Directory> section, or other scope container."
Zl.
Offline