I've got a question on .htaccess on a web server. My friend has one of those ftp only web space accounts, so I can't get telnet access to it. I want to create a .htaccess file to password protect one of the directories, with corresponding .htpasswd file so I can prompt visitors to enter a username and password, and then it allows them to view the web pages in that directory. In the documents I have read on the web it indicates I need to issue an htpasswd command (with appropiate arguments) to create the .htpasswd file. This isn't possible as I have no telnet access to issue the command. Is it possible to fudge the .htpasswd file, either by hand or on my own linux box and then upload the resulting file?
I currently have the .htaccess file set up to certain domains (e.g. anything ending with .dial.pipex.com), but this solution is not ideal. What we really want is a single user/password to access a restricted area. Furthermore I thought I would be able to write a perl script with a user/password setup for this type of application, but then I realised that once past the perl script password checker, you can get straight to the desired files :(
Please email me your replies or see me at the meeting on Sunday to discuss this further if needed.
Ashley
Mr. Ashley T. Howes Email: ashley_t_howes@dial.pipex.com http://www.ydu09.dial.pipex.com
"When all the animals of this world are gone, man will die of loneliness"
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
On Sat, Sep 04, 1999 at 11:06:49AM +0100, Ashley T. Howes wrote:
the command. Is it possible to fudge the .htpasswd file, either by hand or on my own linux box and then upload the resulting file?
Yes, as long as both systems use the same crypt method (MD5, DES, whatever... simplest way to find out is to try). htpasswd has the format: username1:cryptpassword1 username2:cryptpassword2 and so on. You can make the cryptpasswords with a command like: perl -e 'print crypt("password",chr(rand(95)+32).chr(rand(95)+32))."\n"'
Hope that works,
MJR
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
On Sunday I was given a Debian 2.1 CD (thanks Andrew) which I have been playing with today. I have a few questions I hope the group can answer:
1) I boot my system using a boot floppy, however the boot floppy takes ages to load (about 3-4 minutes) and seems to only be accessing the floppy drive once every 30 seconds. Any idea what is causing this delay? Once the floppy access stops, the main Linux boot process flies along as normal.
2) A windows question, but I hope someone can answer it. In order to install Debian I repartitioned my 2.5 Gig drive into 1 Gig for Win98 and 1.5 Gig for Linux, using cfdisk during the installation process. I'm now in the process of reinstalling Win98, but when I format the windows drive from a DOS prompt, it will only format the first 500Meg on the 1Gig windows partition. How can I overcome this limitation? If it helps the DOS version of fdisk displays the following partition table:
Partition Status Type Volume Label Mbytes System Usage C: 1 A PRI DOS 1201 FAT16 50% 2 Non-DOS 1221 50%
Thanks for your help.
Ashley
Mr. Ashley T. Howes Email: ashley_t_howes@dial.pipex.com http://www.ydu09.dial.pipex.com
"When all the animals of this world are gone, man will die of loneliness"
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
"Ashley T. Howes" wrote:
On Sunday I was given a Debian 2.1 CD (thanks Andrew) which I have been playing with today. I have a few questions I hope the group can answer:
- I boot my system using a boot floppy, however the boot floppy takes ages
to load (about 3-4 minutes) and seems to only be accessing the floppy drive once every 30 seconds. Any idea what is causing this delay? Once the floppy access stops, the main Linux boot process flies along as normal.
dunnon about this...
- A windows question, but I hope someone can answer it. In order to
install Debian I repartitioned my 2.5 Gig drive into 1 Gig for Win98 and 1.5 Gig for Linux, using cfdisk during the installation process. I'm now in the process of reinstalling Win98, but when I format the windows drive from a DOS prompt, it will only format the first 500Meg on the 1Gig windows partition. How can I overcome this limitation? If it helps the DOS version of fdisk displays the following partition table:
turn on LBA in the bios ;)..
Scoobz
turn on LBA in the bios ;)..
Erm... or that *cough*. Check both ;-)
Paul
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
Paul Russell wrote:
turn on LBA in the bios ;)..
Erm... or that *cough*. Check both ;-)
;).. Sz
Paul
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
Partition Status Type Volume Label Mbytes System Usage C: 1 A PRI DOS 1201 FAT16 50% 2 Non-DOS 1221 50%
That's your problem right there, that 'FAT16'... Restart fdisk, when it says "enable large disk support?" (or similar), say yes, then delete the FAT partition, and create it again, and you *should* find all is well. All standard disclaimers apply ;-)
HTH
Paul
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
On 06-Sep-99 Ashley T. Howes wrote:
On Sunday I was given a Debian 2.1 CD (thanks Andrew) which I have been playing with today. I have a few questions I hope the group can answer:
- I boot my system using a boot floppy, however the boot floppy takes ages
to load (about 3-4 minutes) and seems to only be accessing the floppy drive once every 30 seconds. Any idea what is causing this delay? Once the floppy access stops, the main Linux boot process flies along as normal.
Caldera boot disks do the same. But Slackware is much faster: you get a steady ticking from the floppy drive and the whole thing takes about 30 secs to load.
At 09:20 AM 9/7/99 +0100, you wrote:
Caldera boot disks do the same. But Slackware is much faster: you get a
steady
ticking from the floppy drive and the whole thing takes about 30 secs to
load.
Having used a slackware distribution for the last 2 years, I was expecting the same type of floppy boot performance from Debian. Oh well, no great loss.
Thanks to Paul, Neill and Raphael for their help. I've now got a 1.2 Meg Windows partition on my machine as well.
Ashley
Mr. Ashley T. Howes Email: ashley_t_howes@dial.pipex.com http://www.ydu09.dial.pipex.com
"When all the animals of this world are gone, man will die of loneliness"
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]