Ubuntu Servers :: Apache2 - Password Protect Directories With System User
Apr 12, 2011
I want to password protect say a subdirectory, or a subdomain via vhost, with a username/password, but use the systems users and passwords as logins -> I want go avoid any and all .htaccess... as everyone should be doing anyway How would I go about doing this? I know my way around the apache configs fairly well, so I'm not a total newb -> I now I can use .useraccess and .pwaccess but that's flat file driven, not based off of the systems users/passwords.
I recently installed Apache on Lucid Lynx (Macbook 1.1) using the following tutorial: [URL] Everything appears to work correct except that when I browse http://localhost/ in Firefox, I cannot see any of the directories. Although, files such as html documents are visible. When I view the /var/www directory using the default graphical file browser, all of its child directories have Xs over their icons. When I attempt to open the directory "js", the following error message displays:The folder contents could not be displayed. You do not have the permissions necessary to view the contents of "js".
I figured this was preventing Firefox from viewing the directories. So I launched it with the "gksu" command to see if it would help. I still couldn't see directories when browsing http://localhost/ I'm basically trying to achieve functionality identical to the MAMP local server for Mac OS X. I'm about to start a LAMP project for a new client so having this up and running is important!
To Protect Web Page Directories With Passwords i have done the below configuration but the problem is when i click the linux it is not asking username and password,
Created new account for logging into web interface:
htpasswd -c /etc/httpd/conf/.htpasswd travelkarega Created a file name .htaccess in /opt/apps/deploy/websites/travelkarega/html/ vi .htaccess AuthUserFile /etc/httpd/conf/.htpasswd AuthName "Please enter password" AuthType Basic <Limit GET POST> require user travelkarega </Limit>
Need help maintaining permissions across multiple directories. Have Ubuntu 8.04 Hardy Heron. O/S installed, updated and running with no problems.Why is it that my administrator user id doesn't seem to have root permissions to create directories? I am trying to setup hosting 3 separate websites and therefore create 3 separate directories to manage all associated files for the 3 websites. Also, I am attempting to read through the tutorials located at:URL...
I want to automaticly set the group ownership of user home directories to a group that the user is not part of. This is so that Apache can be part of this group and can access user public HTML directory, but other users are not able to access in any way the files in the users home directory. What I have seen that works manually is adding the user and then changing the group for the home directory. But I want to automatically set this when the user account is created. WHat I see happening is that when /etc/skel is copied, it automatically sets the group and ownership of everything to the users default group and ownership. I've seen some suggestions on setting permissions, but these don't seem to work because it seems that users are able to cd into a directory and not list it, but if they know the file name they can access the file.
does anyone know how to password protect the USB ports so if someone were to plug something in that is USB Ubuntu would ask for root password before allowing access to the device.
tell me a way to password protect the HOSTS file in ubuntu so that when i block certain websites the other person cannot unblock them. IMP: i donot want the HOSTS file to be protected by 'root' password as the other person knows it.
For my IPT assignment i need to make a database for a company and basically my only problem is i can't work out how to password protect a single table in the database.
I tried clicking encrypt with password but that encrypts the entire database.
I am currently running Lucid 10.04(lts) on a dual boot with windows xp. What i am looking for is some guidance on how to re-install the requirement for a password when trying to mount the xp partition as this was standard in Jaunty and i liked it like that as my computer is often open for many hours at work. Yeh i know i can lock the screen but sometimes other people need to use my computer.
I just want to know is it possible to protect our kernel through password. If i have three kernels and i want to protect it through kernel so any one without providing the correct password could not be able to boot from that kernel.
I pay $85 for each of my ebooks and have my UoP password and username to open them.The problem is that I want to move them to my kindle dx which does not support the password part of the pdf file.How can I remove the password protect from this file.Each page is password protected, but I only have to put in my password one time and it opens the whole ebook.However, on the kindle dx, the cursor does not go to the username or password box, so i can't open it on my kindle.I tried buying and using a PDF restrictions remover but all it does is say "Restrictions Removed" but the password protect is still on when I transfer it to the kindle.
I want to password protect evolution. How would I do that? I want to allow anyone to access all my other software, but my business email needs to be privateMy current solution seems to be to setup another account. But all the user switching and other what not seems a little much for one program.
I have a folder on my flash drive where I keep sensitive info (important numbers, passwords, etc.) and would like to protect this info in the event that someone gets a hold of this drive.
I figured the best method was encryption so I started experimenting with gpg, but I encountered problems as mentioned here:
[URL]
I still haven't found a solution so I'm looking into possible alternatives. As shown in the above thread, someone recommended using eCryptfs or an encfs directory. Before I spend anymore time researching this stuff, has anyone tried using these before? Do they work well and do you think these would suit my needs?
The only other alternative I can think is just compressing the folder into a password protected rar file. Would this work well or would I be leaving my data vulnerable?
ALSO, I would a prefer a solution that would still allow me to backup this folder using rsync. I like to keep and up-to-date backup of my entire flash drive by syncing it to another flash drive using rsync.
is there a way to password protect a file or folder from the terminal? i wanted to do this because I may have several friends depositing files on my ssh server that they don't want each other to see. Or i might have a file i don't want them to see.I installed cryptkeeper,but it can't take commands from the terminal. Anything else I can try?
I'm niomi and I'm the first account with sudo. I add an account, bob. niomi can get in reliably on active mode. (maybe relevant?: passive doesn't work) bob is jailed to his home directory, niomi is in ftp-special which gives her access to /. bob can't log in and his shell is set to bin/false. What could have gone wrong?
I create music and usually gets sold world wide. I have some distributors that have been able to access a private server and get the new tunes I make to download via ftp. Well that server is getting full and I was trying to create another directory on my website itself.I created the directory. made the ".htaccess" file. Then I tried to make the htpasswd file but my server just keeps saying no command by that name.
Im running apache2 on a debian webserver and i was wondering how i can password protect a folder in my www directory when someone try to access it from the web.
I've reduced my Grub2 menu(using Ubuntu 10.04) list to only 1 item.I want to automatically boot into the one item without providing a password (it does this now). I also want to disable someone from being able to bring up the Grub2 menu and hit 'e' to edit the menu item. Any ideas how to do that? I've been sifting through the forums, but I haven't had any luck finding a post about this
I want to fix my disks with fsck but using sudo init 1 is not allowing me in. It shuts my services down, then gives a "Give root password for maintenance" prompt. I've tried my password, but it rejects it.
I have webmin and usermin setup.Iam using dovecot and sendmail ,I can use usermin to login ,check or send emails.Outlook and thunderbird works as well.
But I want to use something for webmail. I am trying squirrelmail but it keeps saying invalid user and or password.
I can't login after the password-protect-screen-saver comes on during a download.The screen is black, the cursor arrow moves with the mouse, but no login window.I have no idea what is wrong but it seems to correlate with this combination.
actually i upload a password protect folder software, but unfortunately it was a trial version which i didn't know . now i am unable to recover my files from that.