LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-24-2004, 03:49 AM   #1
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Rep: Reputation: 32
Adding user for password folder


Hi guys for some reason i cant seem to add another user with password

here is what i'm doing

[root@www root]# htpasswd /var/www/pass/passwords/password username

answer
htpasswd: cannot modify file /var/www/pass/passwords/password; use '-c' to
create it
[root@www root]# htpasswd -c /var/www/pass/passwords/password username
htpasswd: cannot create file /var/www/pass/passwords/pasword


When i first create this a few weeks ago it went well
it will only let one user in..

TT
 
Old 02-24-2004, 04:07 AM   #2
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Original Poster
Rep: Reputation: 32
just an update

Now i get this

[root@www root]# htpasswd /var/www/pass/passwords Username
New password:
Re-type new password:

htpasswd: The file /var/www/pass/passwords does not appear to be a valid htpasswd file.
[root@www root]#

Do i have to rename my passwords to htpasswd ?

TT
 
1 members found this post helpful.
Old 02-24-2004, 05:14 AM   #3
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
A couple of things to try:

1.Make sure that the directory you are trying to create the file in actually exists firsts. Then use the htpasswd -c to create it, then use just htpasswd by itself (w/o -c to add other users)

2. If that still doesn't work, it may not like the permissions on the directory or something.

I just tried it and it works for me on a FC1 box:
Code:
[root@Helios root]# mkdir /var/www/pass/
[root@Helios root]# htpasswd -c /var/www/pass/passwords user1
New password: 
Re-type new password: 
Adding password for user user1
 
1 members found this post helpful.
Old 02-24-2004, 06:38 AM   #4
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Original Poster
Rep: Reputation: 32
Thank you

I see where i went wrong, it now works ok

thanks again


karl
 
  


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
Password protect folder? sall Linux - Security 4 07-18-2005 05:57 PM
Password Protect Folder?? sall Linux - Software 5 07-18-2005 06:58 AM
adding a stuff to a folder i don't have permission to SurfCHimp Linux - Newbie 3 09-11-2004 11:58 AM
Password Protected Folder? crab_2004 Linux - Software 2 02-22-2004 10:50 PM
ProFTP-adding user and password ? lostboy Linux - General 1 07-04-2003 08:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:23 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration