12-16-2014
Is apache allowed to read /var/auth/user ? What if you put the auth files inside public_html ?
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
For a schoolproject, I have to set up an intranet at a company headquarters in the Netherlands. But they want to give the division in the United States access to that intranet.
I have to find out how to do that. I've heard that you can do that by giving certain people access to the intranet with... (1 Reply)
Discussion started by: Puc conDoin
1 Replies
2. UNIX for Dummies Questions & Answers
i want to protect a folder on my HP....
does the folder need more than ".htaccess" and ".htpasswd" to be protected , and ask for login and password???
Please help ......
i use HTAdmin 1.2.1 to manage my access files..
The systemadmin cant or wount answer.....:confused:
Avenger (3 Replies)
Discussion started by: Avenger
3 Replies
3. Cybersecurity
Something is wrong. I do everything right make the .htaccess file and stuff, but when I try the htpasswd command it says command not found. I use Putty SSH client and I think server is running RedHat 7.1 with Apache some version.
HELP!!! (1 Reply)
Discussion started by: _hp_
1 Replies
4. Linux
dear unix,
need ur help, i have installed apache n apache is working... but i cant use htpasswd , the error said command not found. for web authentucation...
thanks for any help
:confused: (4 Replies)
Discussion started by: click007
4 Replies
5. UNIX for Advanced & Expert Users
I need to take our unix password file and make the usernames and passwords in a .htpasswd file to protect some webpages. I really dont want to type them in. Any suggestions how I do this?
/---Frank----/ (4 Replies)
Discussion started by: frankkahle
4 Replies
6. UNIX for Dummies Questions & Answers
I wrote a script to batch-create directories with .htaccess and .htpasswd files.
I am using the following line to create the .htpasswd file:
htpasswd -cb .htpasswd $USER $PASS
However, I keep getting this message in return:
Usage: htpasswd passwordfile username
The -c flag creates a new... (1 Reply)
Discussion started by: Spetnik
1 Replies
7. UNIX for Advanced & Expert Users
Hi,
I would like to use htaccess 301 redirect with URL hiding.
Ex:
when browse the website 'abc.com' it should show the contents of the page 'xyz.com/start/index.html' but in addressbar should show the domain 'abc.com'. I know it works with html URL frame rewrite. But my question is it... (0 Replies)
Discussion started by: chandranjoy
0 Replies
8. Web Development
I have the following directive in my .htaccess:
#RewriteRule ^mozrank/?$ "http://www.seobook.com/#a_aid=dh"
The problem is that the redirect is going to
http://www.seobook.com/%23a_aid=dh
How to preserve the # when redirecting? (2 Replies)
Discussion started by: rlopes
2 Replies
LEARN ABOUT ULTRIX
getauthuid
getauthuid(3) Library Functions Manual getauthuid(3)
Name
getauthuid, storeauthent, setauthfile, endauthent - get/set auth entry
Syntax
#include <sys/types.h>
#include <auth.h>
AUTHORIZATION *getauthuid(uid)
uid_t uid;
int storeauthent(auth)
AUTHORIZATION *auth;
void setauthfile(pathname)
char *pathname;
int endauthent()
Description
The function looks up the auth entry for the specified user ID and returns a pointer to a static area containing it.
The function will store the specified auth entry into the local auth database, overwriting any existing entry with the same a_uid field.
The function will set the pathname of the file to be used for the local auth database in all subsequent operations.
The functions closes the auth database. Subsequent calls to getauthuid and storeauthent will reopen it.
The auth database may be distributed via the BIND/Hesiod naming service.
Restrictions
Only the super-user and members of the group authread may read information from the auth database.
Only the super-user may modify the auth database.
The auth databse may not be distributed via the Yellow Pages service.
Return Values
Functions which return a pointer value will return the null pointer (0) on EOF or error. Other functions will return zero (0) on success
and a negative value on failure.
Files
See Also
getpwent(3), auth(5), edauth(8)
Security Guide for Users and Programmers
Security Guide for Administrators
Guide to the BIND/Hesiod Service
getauthuid(3)