LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 03-10-2005, 08:18 AM   #1
spud
LQ Newbie
 
Registered: Oct 2004
Posts: 19

Rep: Reputation: 0
htaccess to shadow


Hi
Is there any way the users created in a .htpasswd file in Apache can be duplicated in /etc/shadow.....
Or is there a better way to have Apache .htpasswd users on the server as well..


Thanks
 
Old 03-10-2005, 02:23 PM   #2
TheLinuxDuck
Member
 
Registered: Sep 2002
Location: Tulsa, OK
Distribution: Slack, baby!
Posts: 349

Rep: Reputation: 33
My suggestion to you would be to keep the usernames separate. I mean, I would suggest that you not duplicate names in either file.. use unique names for each. Just my personal preference.

However, although I don't know of any way already in existence to duplicate users in /etc/passwd and the .htpasswd files, you could easily write a script to automate this process, using the htpasswd -b batch processing switch, and useradd to facilitate the duplication.

In some cases, things that require specific attention, IMHO, are best left not being easy. One thing to consider is that a root user is needed to add new users to the system, whereas the owner of the apache server can just as easily add users to an htpasswd file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
shadow 4.0.10 problem ParticleHunter Linux From Scratch 2 07-18-2005 12:04 PM
Shadow Problem leonidg Programming 1 04-17-2005 05:09 AM
/etc/shadow- (notice the dash after the word shadow) shellcode Linux - Security 1 09-03-2004 04:54 AM
shadow file? tjm Linux - Security 4 09-15-2003 04:23 PM
htaccess reads from /etc/shadow pk21 Linux - Security 2 04-10-2003 12:52 PM


All times are GMT -5. The time now is 04:33 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration