Security :: Created A .htaccess File In The Folder And Added AuthType Basic?
Jan 26, 2010
I have a folder on my server i want to protect with http authentication but i have problem. i created a password htpasswd -c .htpasswd razzera
then i created a .htaccess file in the folder and added
AuthType Basic
AuthName "Restricted Files"
# (Following line optional)
AuthBasicProvider file
AuthUserFile /.htpasswd
Require user razzera
but when i go tho the folder it wont request any login details. why ??
View 6 Replies
ADVERTISEMENT
Apr 27, 2011
I couldn't help but notice that there are some lines in the default file that resemble those that should be in a htaccess file.
AllowOverride None Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
[Code]...
If I am running multiple virtual hosts, what happens to the default file? When I put my ip into a browser "http://ip.ip.ip.ip" I get a forbidden message. but all URLs point to where they are supposed to... Maybe its because I don't have an index file in the www folder.. (not at the machine, will try it later to see what happens).
View 1 Replies
View Related
Feb 2, 2011
I need to redirect through a .htaccess file in my root folder. The redirect needs to be done from http://www.department.univeristy.edu/reuir to a different server [url]. I am having trouble in determining the pattern that is required for it to take effect.
View 2 Replies
View Related
Feb 21, 2011
I have a folder named "logs" which contains log files. I would like to have a bash script or a cron job or something like this which will check the folder continuousy and perform some tasks (for example echo "New file is created") every time a new file with pattern like "Screen.log.***" is created in the folder "logs"
Is it possible in Linux?
View 14 Replies
View Related
Apr 23, 2010
My program need to monitor the foler to know which file under the folder is being opened/created for writing. I add the folder into watch list using inotify_add_watch, when a file -- say 'AA' -- is created, I'll get the event through read api call. But the inotify_event only have file name 'AA' and a event mask. these parameters can't help me to know how the 'AA' is created/openned. So I have to scan the /proc folder to get to know how is 'AA' created/openned. I don't think this is a efficient way, especially if there are lots of files are openned/created in a short time span.
View 3 Replies
View Related
Feb 18, 2010
I installed qt-creator 4.5.3 in fedora 12 (gnome) . I then created an empty Qt projet and added a main.cpp as below
Code:
#include <QApplication>
#include <QPushButton>
[code]....
View 2 Replies
View Related
Oct 29, 2010
I have this nasty habit of refreshing desktop in a quick succession by right-clicking and selecting 'Refresh',on my XP system at office.(And,iam sure most of us do the same).With Ubuntu,if a right-click on desktop slowly and select 'align by...',it simulates the XP refresh action as explained above.But,if i perform the same action rapidly,it takes this first option from right-click context menu,which is 'Create Folder',and results in an empty folder being created on desktop.I tried double right-clicking and again it created an empty folder.Is there any workaround to handle this.I mean:Can the right-click context menu items be shuffled so that the 'Create Folder' option is moved from 1st place
View 9 Replies
View Related
Aug 5, 2009
in /srv/www/htdocs/tale i have a .htaccess how to enable it? i don't changed anything in
Code:
/etc/apache2/httpd.conf
/etc/apache2/default-server.conf
View 9 Replies
View Related
Aug 1, 2011
I'm a little bit confused with partitioning the filesystem in Linux. the difference between creating the file system with fdisk and mkfs (when formatting the disk). I can't clearly tell my problem, so please look at this picture:
View 2 Replies
View Related
May 29, 2010
I just installed Ubuntu on a desktop. Can anyone give me some guidance on installing basic security software? In particular, I'm looking for a firewall, antivirus, and anti-spyware/malware utilities.
View 2 Replies
View Related
Jan 30, 2011
I can't seem to get htaccess to work.I've created a .htpasswd file like so:
Code:
htpasswd -c -m .htpasswd user
Then it prompts me for a password for that user. I put the password file one dir above my
[code]....
View 6 Replies
View Related
Aug 9, 2010
My server (CentOS 5.4) is being bombarded 24x7 with IP addresses from China trying to exploit phpMyAdmin. For every one I block on the firewall, half a dozen come to the funeral! It's a pity these morons don't have something better to occupy their time. I'm getting page after page of this (see below) every day and it's been going on for weeks. I don't even have phpMyAdmin on the server. I don't use it and I deleted it.
I've read that you can use .htaccess and / or mod_rewrite to redirect / block them based on any query for phpMyAdmin (they try all letters in upper and lower case, leading to page after page). Unfortunately, I have no idea of how to do this. I already have an .htaccess file. Maybe someone can suggest what to add to stop these pests from wasting my bandwidth and suggest somewhere I could redirect them to to cause them maximum problems. I don't want to block the entire country, seems a bit like overkill, not all Chinese are morons. we aren't even in the USA, so why they are doing this is beyond me.
A TINY sample!
[Sun Aug 08 13:29:08 2010] [error] [client 61.191.41.53] File does not exist: /var/www/corp/phpMyAdmin-2.7.2
[code]...
View 6 Replies
View Related
May 20, 2011
I was created one folder in linux with current time was 1978(For example). I was moved this folder to usb(FAT32 file format).While seeing this folder in window its not showing the folder time created time stamp, because the USB file system only support the year after 1980 . But again i am putting the same folder in linux ,its showing the correct time stamp.How is it possible? Because FAT32 only supports timestamp after 1980, but still its showing 1978 in linux system
View 7 Replies
View Related
Jan 7, 2011
I was able to synch my folders to Ubuntu One.However, when I add any new files to one of the synched folders, it is not synching up to Ubuntu One. I've tried re-synching the folder where I place the file and all I get is the circular arrow with the ! in it. I've also tried disconnecting and connecting in the Device tab on "Ubuntu One Preferences". Am I missing a procedure here or is this a bug? I would hope that adding, removing, or updating files would automatically be synched.
View 1 Replies
View Related
Feb 28, 2010
I'm looking for something in Ubuntu (o Linux) that would put newly added and unwatched video files into a folder.
View 1 Replies
View Related
Apr 3, 2010
Is there a program that allows me to password lock a single file or folder?
View 5 Replies
View Related
Feb 24, 2011
However, configured a website on a dedicated server using WHM/cPanel. The site was uploaded using the master account for the website.
The security issue is public users are able to upload files on to my server via the website. They could even access the root and execute whatever they want on the server.
I have consulted with 2-3 Linux experts. According to them, the PHP user has rights to execute anything on the server or upload & store files in whichever folder they want.
Can I protect my folders to avoid file uploads via the website. The application has security vulnerabilites. However, I want to prevent hackers to enter my site until the vulnerabilities are fixed.
View 2 Replies
View Related
Mar 29, 2010
I am looking for a basic guide to Linux security. I am assessing a multi-server farm and have very limited experience with Linux. Where can I get a list of basic things I should be looking at from a security standpoint, i.e. ports, vulnerabilities, users, etc? Looking for a checklist I can run through. We are running CentOS Linux 5.0.
View 6 Replies
View Related
Jun 22, 2010
There's a folder on my Linux desktop which shouldn't exist. The first time I saw it, I thought I'd accidentally copied it from somewhere else, so I deleted it. Now it's back again. So it must have been automatically created by some process, but what can I do to figure out which program is creating it? I think it's likely that if I delete the folder it'll eventually be created again, so I should be able to catch this program in the act if anyone can suggest a technique for doing so. By the way, there are no files in this mystery folder, and its name is the same as another folder I created months ago to hold my personal documents, not something that a program would create to hold its own configuration files or the like.
View 2 Replies
View Related
Jun 14, 2010
No app folders being created in home folder. For example, when I do something like code...
View 3 Replies
View Related
Jun 15, 2010
For example, when I do something like...
sudo apt-get install vim
No .vim folder is created in the home folder.
View 1 Replies
View Related
Feb 20, 2011
I changed some settings to see what will happen ( specifically to login with having to type my password) and now I can log in without a password. The problem is that I think that my password is still required, but now I can't use my laptop. Here is what happens log in (it doesn't ask for a password), then I get the error that it can't update ICEauthority, then I get the error "There is a problem with the configuration server./usr/lib/libconf2-4/gconf-sanity-check-2 exited with status 256)I also get the error that Nautilus can't create my Desktop folder and .nautilus folder.The problem is that I do not have another account, as in no root account. Each time I had to do administrative tasks ,like install software, etc, i used the cli with sudo and the command. If I wanted to do a few commands, I usually entered sudo -i
View 2 Replies
View Related
Dec 4, 2010
I just want to know how the default size of a newly created file or folder is 4.0 kb.Does this value is mentioned in any configuration file,if that is the case can we edit that file and can we change this default value.
View 7 Replies
View Related
Feb 18, 2010
Just setup an Apache2 server, and I would like to setup a login. I also wanted to use the same method that is setup for vsftpd For vsftpd I've created a mysql database.... structured as:
Code:
mysql> use vsftpd
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> describe accounts;
[Code]...
View 2 Replies
View Related
Apr 4, 2011
Basically, whenever I am on an unencrypted wireless hotspot, I open up an SSH tunnel to my home server to do all my browsing for the privacy and security it provides.But I got to thinking, and now I am curious, if I am visiting a site like gmail for instance that always uses SSL/TLS for it's connections, is there any added benefit to also using an encrypted tunnel? or is it perhaps superfluous to use both
View 3 Replies
View Related
Dec 16, 2010
Is anyone here fluent with the usage of the .htaccess file? Is it the way to go to deter search bots or is there a better method? Never mind. I already have a thread about .htaccess here.
View 1 Replies
View Related
Jan 27, 2011
I am running into a very strange problem where my my .htaccess file keep getting deleted.Attempted scenarios ftp upload file.txt rename to .htaccess ftp upload .htaccess ssh - wget url/.htaccess ssh - wget url/htaccess.txt, rename to .htaccess
[Code]...
View 7 Replies
View Related
Jun 15, 2011
I am using Apache with Kerberos security enabled. The http page simply lists the directories contained in /var/www/html. I want to make only one of the directories in the document root secured so that when someone clicks on it, it requires him/her to enter credentials. Right now when I place the .htaccess file in the directory I want to protect, the directory is hidden from the list and the user has to enter the whole path to get authenticated and access the files.
I've tried Options +Indexes which was posted all over the net, but it didn't work.
View 3 Replies
View Related
Feb 28, 2010
I created a little bash script for renaming files from a folderEvery time i hv to put that bash script file (rename.sh) in folder Is there any ways i will call (rename.sh) from terminal without moving rename.sh into any folder ?ne More Question : Whenever i run any .sh file automatically one .sh~ file created it is my programing mistake or is it exists ?
View 7 Replies
View Related
Jul 21, 2011
I'm dipping my toes into some bash scripting and was wondering if there was a way to delete a file not based on how old it is, but rather how many other files are currently in the folder... or something to that effect....
What I'm doing is creating a script to back up a folder nightly. I'd like to keep a maximum of 3 backups. However in case the script for some reason fails to run one night (computer turned off possibly) I don't want to set the condition for deletion to be the date.
I know that if I run:
Code:
find /path/to/files* -mtime +3 -exec rm {} ;
that it will delete everything older than three days. -atime and -ctime don't seem to be what I"m looking for... is there another command I can use to achieve what I"m trying to?
View 5 Replies
View Related