Forbidden Permissions Error with username localhost

Hello all,
I have a new 15" Powerbook Retina with a clean install of Mountain Lion 10.8. As has been well documented, web hosting doens't work off the bat. I have gone through the steps of setting up local web hosting but am running into a problem that several people have but I can't find a solution to. I get a 403 error when trying to load anything in my local Sites directory. My conf file looks like this:
<Directory "/Users/patrick/Sites/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Permission on Sites is set to drwxr-xr-x. I have found various permission fixes like:
sudo chown root:wheel /etc/apache2/users/*
sudo chmod 644 /etc/apache2/users/*
I have rebooted Apache a bazillion times but still errors. Things run fine on the root Documents directory, but I can't get things working in my local directory. I Have no caps in my shortname. I have tried many different things. Looking at the Apache error logs I am just getting this:
[Thu Aug 23 18:46:24 2012] [error] [client fe80::1] (13)Permission denied: access to /~patrick/phpMyAdmin denied
Any help greatly appreciate!

hi, thanx for replying my msg.. here is my jsp code..
<html>
<head>
<title>Inventory</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<%@page import="java.lang.*"%>
<%@page import="java.util.*"%>
<%@page import="Inventory" %>
<jsp:useBean id="myinv" scope="session" class="Inventory" />
<jsp:setProperty name="myinv" property="*" />
<% myinv.setDriver();
myinv.setQuery();
myinv.getColumn();
myinv.getRow(); %>
<%! int col =0; %>
<%! int row =0; %>
<% col = myinv.getColumn();
row = myinv.getRow();%>
<% out.print(col); %>
<% Vector outVector = myinv.getVectorRow(); %>
<body bgcolor="#FFFFFF">
<table width="65%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="4%"> </td>
<td width="38%">ProductID</td>
<td width="23%">Quantity</td>
<td width="35%">Stock Status</td>
</tr>
</table>
<P><br><br></P>
<% int vd =0;%>
<%! String product_ID; %>
<table width="60%" border="0" cellspacing="0" cellpadding="0">
<% vd=0; %>
<% while (vd<outVector.size()) { %>
<tr>
<% for (int j=0; j<col; j++) { %>
<td width=30%>
<% if (j==0) { %>
<% product_ID = (String)outVector.elementAt(vd) ;%>
<a href="http://10.1.23.99:8080/inv/jsp/viewall.jsp?prodID=<%=product_ID%>">
<% out.print(outVector.elementAt(vd)); %> </a>
<% } %>
<% if (j > 0) { %>
<% out.print(outVector.elementAt(vd)); %>
<% } %>
</td>
<% vd++; %><% } %>
</tr>
<% } %>
</table>
<% myinv.CloseConnection(); %>
</body>
</html>

Similar Messages

  • New permissions errors with OSX 10.5

    I have a script that I have been using to transfer files from one account to another under OSX 10.4. However, with the change to 10.5, I have started to get permissions errors. Just wondering what has changed.
    The shell script runs under an executable wrapper (for security), with the “s” permissions bit set:
    #define REAL_PATH "/Users/Shared/transferFileScript"
    main(ac, av)
    char **av;
    execv(REAL_PATH, av);
    The permissions are:
    -rwsr-xr-x 1 root myadminacct 11532 Apr 22 2005 wrapper
    The script itself is as follows:
    #!/bin/sh
    mkdir /Users/"$1"/Desktop/Transferred_Files
    /Developer/Tools/cpMac -r "$2" /Users/"$1"/Desktop/Transferred_Files/
    chown -R "$1" /Users/"$1"/Desktop/Transferred_Files
    Here are its permissions:
    -rw-r-xr-x 1 root myadminacct 180 Dec 31 2004 transferFileScript
    The whole mess is executed via an AppleScript (which provides the user interface). No special permissions on that.
    As I said, it worked fine in 10.4. Any thoughts as to what is going wrong? Thanks in advance.
    Eric

    Eric S wrote:
    Thanks for the suggestion. In doing an "id", it appears that Leopard has left all the group settings alone (I did an upgrade, rather than a clean install).
    OK, I did that initially. However, the groups with gid and name the same as your uid and name don't really exist, so I'd bet this is still the cause of the problem.
    Maybe I should have specified where the error is occurring... The AppleScript runs and it executes the wrapper, which in turn begins executing the Unix script. The permission error occurs when the Unix script tries to execute the "mkdir" command.
    I can't help with AppleScript, but if it is failing on a "mkdir" you should look at the permissions on the parent directory.

  • Time Capsule Permissions Error with Torrent Client

    Hi all.. i'm having a problem with using my torrent client with Time capsule and i'm wondering if anyone can help me at all?
    I am using time caspsule as a wireless external hard drive with my macbook pro. And i'm using it to store my torrent files and as a download foler for my torrents. Lately my torrent client(i've used both transmission and Utorrent) has been giving me permission/data missing errors.
    What hapens when i start downloading a torrent is that it will start downloading for about 30 seconds and then gives an error saying either permission denied or data missing.
    I'm assuming this is happening because somewhere there are permissions on the time capsule that prevents the torrent client from reading and writing to it.
    However when i bring up the info on any folders in the time capsule it clearly startes that i have read/write permissions for all user types.
    That being said, i notice that when i bring up the information window of the time capsule as a whole(similair to viewing an external hard drive info) and view the permissions, i notice that permissions for 'unkown' users are 'read/write', however permissions for 'everyone' are 'no access'. i'm not sure if this is contributing to the torrent client error. When i try to change the permission for 'everyone' a messafe comes up saying that i don't have priveledges to change the setting! and i can't figure out how to change this setting. i'm not even sure if this is what i need to change tho.
    I am the only user for this time capsule and my macbook pro is the only computer connected to it. i am using airport to connecr to it and i ccess internet through it. I can still transfer files and open up files on the time capsule through my macbook pro. i can access everything on it, it's just that both transmission and utorrent seem to be having trouble accessing the files on it due to some permissions settings which i must need to chang to allow access. however tranmission / utorrent have no issues with dealing with torrent files on my hard drive on my macbook pro, so i;m sure its not an issue with te torrrent client itself.
    Any help would be much appreciated!
    thanks!

    Just go to the disk file sharing page, turn on guest access and give it full permissions for read and write.
    But let me say this is probably a poor way to do things.. All the files you collect are actually being loaded into temporary files on the MBP and then copied across to the TC.. in the end you may as well just use the MBP to do your torrenting.. and once you have the files, move them across the TC.
    We have also had issues with the TC dropping off the network on the latest firmware. So what you might be seeing is issues with afp connection to the TC.. open the log and see if you get loads of connection and disconnections from the IP of the MBP.. if so you are seeing the issue we are having.

  • My MB Pro is no longer syncing my iPad in iTunes. It did in the beginning, however I had to change my MB Pro password. Now I get a permissions error message trying to sync: "error storing your authorization information on this computer." Can you help?

    My MB Pro is no longer syncing my iPad in iTunes. It did in the beginning, however I had to change my MB Pro password. Now I get a permissions error message trying to sync: "error storing your authorization information on this computer." Can you help?

    First I would just try deleting the SCInfo folder, restart your computer, open itunes and see if you are still getting the error, at that point if you are it is a permissions error with the computer specificaly and not in itunes.
    http://support.apple.com/kb/TS1389
    that is for deleting the scinfo folder. scroll to the bottom of the article and the steps are there

  • I can't sync my macbook air with my ipad, problems with authorization... this keeps cropping up: "The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permi"

    Help, cannot sync completely with my ipad, and i also cannot remove or delete shared photos which are clogging up my ipad 64GB memory! Some issue with this keeps croppin gup, so frustrating:
    "The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed."
    Not sure how we can correct his permissions problem, and whether authorising or deautorizing makes any difference, with more and more errors keep popping up, this got to be such after an update of the OS, can remember which!?
    HELP!!!

    follow this:
    Launch iTunes
    select iTunes Store from the menu on the left side.
    sign in via the link on the top right area if you haven't done so already
    click the link where you Apple ID email appears, enter your Apple ID password, click View Account, this will take you to a page displaying detailed information about your Apple ID account.
    The last item under Apple ID summary should be Computer Authorisations, click Deauthorize All
    now reauthorize any computers as needed when the system prompts you.
    good luck.

  • I am trying to back up my new iPhone after downloading/updating iTunes with iCloud. I get this message: The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permiss

    I am trying to back up my new iPhone after downloading/updating iTunes with iCloud. I get this message: The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permiss
    how do I find the file and replace it or install it?

    I'll reload it tonight when I get home...basically, I bought a new iPhone and downloaded some new medical apps. also had to download an update for iTunes into my mac laptop so I could access iCloud (which was NOT on my prior iTunes software)
    When I synched my new iPhone with the newly downloaded iTunes, I registered my iphone and tried to "back it up" to iCloud and the message indicating that "the required file was not found or has a permissions error...." popped up.
    How do I correct the permissions error, or...am I able to do this somewhere? Or...how do I find the file that is missing?
    Dr. Bob001

  • Why is it that I can't sign in on facetime, but I can sign in on app.store? With facetime,I'm getting an error, invalid username and password eventhough I have typed exactly the same when I'm signing in on the app.store. pls.help, thanks

    Why is it that I can't sign in on facetime, but I can sign in on app.store? With facetime,I'm getting an error, invalid username and password eventhough I have typed exactly the same when I'm signing in on the app.store. pls.help, thanks

    1. Make sure software is up to date
    2. Make sure FaceTime is enabled; Settings>FaceTime
    3. Make sure Date and Time is correctly set; Settings>General>Date and Time>Set Automatically>On
    4. Make sure Push Notification is enabled
    5. Make sure phone number or email address is correct
    6. Hold the Sleep and Home button down (together) until you see the Apple Logo

  • Error -61 with FTP Write permissions error; Not a publisher

    Hi,
    I am trying to use Safari to FTP with my schools server (FreeBSD) but when I try to delete something I get error -61 which is FTP Write permissions error; Not a publisher. When I select "Get Info" I see the permissions say "You can only read". How can I fix this?

    Hi Rob
    so far as I know, Safari and/or Finder can only read from ftp sites - hence the response you are seeing.
    I've used http://cyberduck.ch/ for a few years - there are many other free/sharewware ftp clients

  • Permissions Error Installing Graphic Update With Software Update

    I tried to install Leopard Graphic Update 1.0 using Software Update and got a permissions error. There was also a message saying the package had been moved to the trash and to use the Finder to install it.
    There was no package in the trash so I manually downloaded and installed Leopard Graphic Update 1.0.
    I am running 10.5.2 on a 1 GHz iMac G4.
    Has any one else seen this problem? Any idea what is wrong?
    Thanks.

    Ditto for me when installing Leopard Graphics Update 1.0 via Software Update.
    Manual download and install worked w/o a hitch.
    Curious Note: /Library/Updates/Leopard Graphics Update/Packages/SUGraphicsDrivers200801-1.0.dist had odd permissions in that the admin group had read access but a different admin account had write access. This was the last account logged in prior to my upgrading to Leopard from the DVD, but Software Update has never been run from that account. I gave the admin group write access (from the Get Info window) prior to manually installing the update. I doubt that had anything to do with the manual install working, but it might have something to do with Software Update failing.

  • Permissions Error if Script is run more than once with out closing Diadem

    I am in a REAL pickle here and need some HELP......
    I get a permissions error message when I try and run my scripts more than once with out closing Diadem 2011.
    Call scriptinclude ("D:\_Calterm_Configuration_Files\Technical_Information\DIAdem_Scripts\Importing Multiple Data Logs_CaltermIII_Local.VBS")
    Error is around this portion of script:
    '******* GetFilePaths() *** *** NEW Function ***
    Function GetFilePaths(DefaultDir, ExtFilter, MultipleDir, Msg)
    Dim i, k, f, fso, iMax, FileListPath, StartIdx, CurrFiles, FileList
    ' Promt the User to select the ASCII files to load with a File Dialog
    FileListPath = AutoActPath & "FileDlgList.asc"
    Set fso = CreateObject("Scripting.FileSystemObject")
    StartIdx = 0
    ReDim FileList(0)
    Do ' Until (DlgState = "IDCancel")
    Call FileNameGet("ANY", "FileRead", DefaultDir, ExtFilter, FileListPath, 1, Msg)
    IF (DlgState = "IDCancel") THEN Exit Do
    ' Read in the saved list of file(s) selected in the File Dialog into FileList()
    **** This next line is where the ERROR happens *******
    Set f = fso.OpenTextFile(FileListPath, 1, True) ' f.ReadAll returns file contents
    CurrFiles = Split(vbCRLF & f.ReadAll, vbCRLF) ' turn file lines into an array
    f.Close ' close the file
    iMax = UBound(CurrFiles)
    IF iMax > 0 AND Trim(CurrFiles(iMax)) = "" THEN
    iMax = iMax - 1
    ReDim Preserve CurrFiles(iMax)
    END IF
    Call BubbleSort(CurrFiles) ' sort the array of file names alphabetically
    ' Append current file dialog selection(s) to any previous file dialog selection(s)
    IF iMax < 1 THEN iMax = 0
    ReDim Preserve FileList(k + iMax)
    FOR i = 1 TO iMax
    k = k + 1
    FileList(k) = CurrFiles(i)
    NEXT ' i
    IF MultipleDir <> TRUE THEN Exit Do ' forces only 1 dialog, good if all desired files are in the same folder
    Loop ' Until (DlgState = "IDCancel")
    GetFilePaths = FileList
    End Function ' GetFilePaths()
    266 6:18:34 PM Error:
    Error in <NoName(1).VBS> (Line: 8, Column: 1):
    Error in <Importing Multiple Data Logs_CaltermIII_Local.VBS> (Line: 140, Column: 5):
    Permission denied
    I can send the script and file I am loading if that would help.
    Solved!
    Go to Solution.

    Jcheese,
    I understood that if you call this script within DIAdem you don't get any error, however, when you run that script from another source (with DIAdem opened) for the second time you get the error, right? 
    If this is the case, I think it might be that the file haven't close correctly in the script. Could you upload the script file?
    Carmen C.

  • Software Updates Fail With Permissions Error

    Three recent software updates (Security Update 2008-02 v1 & v1.1, Aperture 2.1) have given me problems when using the default mode where the Software Update Systems Preferences application downloads and installs in one continuous sequence. The Security updates both failed with a permissions error at the end of the download, saying they'd move the Package file to the trash where I could install it manually. Neither one actually placed anything in the trash though. Instead I downloaded the installer disk images from the direct link at Apple.com and installed the Package from Finder. With the Aperture installer the error was something about an inability to expand the installer. This time I performed a "Download Only" in Software Update then ran the installer once the download was complete that way. This worked too.
    So far I've run a permissions repair from Disk Tool and changed the read/write permissions on the /Library/Updates folder as suggested in an earlier thread. Neither had any effect on subsequent updates. What should I try next?

    I just ran into this and what was happening to me was I had SU to automatically download updates in the background.
    But I have 2 user accounts i use, so it was downloading the package under user A and I was trying to install via user B.
    So i just deleted the old file in /Library/Updates then re-downloaded. I could have also just changed the permissions on the file.

  • Apply patch to 11gR2 through OEM - ERROR: Invalid username and/or password

    I am trying to apply a patch to an 11gR2 database (11.2.0.1.0) running on AIX 6.1. Using Oracle Enterprise Manager, I click on 'Software & Support' on Database tab, click on 'Patch Advisor' and click on 'Stage Patch' link. I use 'Search by number', locate the patch, click Next etc etc - select target, enter Oracle Home credentials etc. Finally I submit the patch job, and, after a minute or so I am getting 'Step: prereqCheckOnHome Initialization Error'. When looking at details of the step, I can see only:
    Error Log
    ERROR: Invalid username and/or password
    I am at fault to understand which username/password is being referred to. I have checked Oracle Home credentials by running an OS command job with these credentials - job completed fine.
    Obviously, patches can be applied the 'old' way - using OPatch from command line and then runing necessary SQL scripts, but I wanted to try new 'civilized' approach.
    Anyone had this issue and know how to tackle it?
    Alex

    Thank you for advice. I made checks for nmo/nmb binaries permissions and made sure filesystems are mounted without nosuid option. Also, I re-entered preferred credentials (and tested them, wheneve rpossible). Enabled authentification tracing as per document, got following in emagent.trc when performing patch procedure:
    2010-06-20 00:48:26,847 Thread-1066 DEBUG Dispatcher: Request ID = 2273, type = 10640, Timeout = -1
    2010-06-20 00:48:26,847 Thread-1066 DEBUG Dispatcher: Adding wrapper context for request ID = 2273, batch = 0, type = 10640
    2010-06-20 00:48:26,847 Thread-1066 INFO Dispatcher: nmemdisp.c: Entering nmemdisp_StreamOpReq
    2010-06-20 00:48:27,327 Thread-772 INFO Authentication: Default nmo binary has setuid permissions
    2010-06-20 00:48:27,327 Thread-772 DEBUG Authentication: nmejcap.c :_adjustArgsForPDP args[0] = /app/oracle/product/11.2.0/perl/bin/perl
    2010-06-20 00:48:27,340 Thread-2604 DEBUG Dispatcher: Adding abort context for ID = 2273
    2010-06-20 00:48:27,386 Thread-2604 DEBUG Authentication: nmejcap.c: buf=''
    2010-06-20 00:48:27,386 Thread-2604 DEBUG Authentication: nmejcap: read error 7 from process
    2010-06-20 00:48:27,850 Thread-2604 DEBUG Dispatcher: Removing abort context for ID = 2273
    2010-06-20 00:48:27,850 Thread-2604 DEBUG Dispatcher: Removing wrapper context for asynchronous request ID = 2273
    Apparentry error happens in the Perl procedure and it is not being recorded in the log file. Any further advice?
    OEM Version I am using: Oracle Enterprise Manager Database Console     11.2.0.1.0
    Edited by: ultradumb on Jun 20, 2010 1:18 AM

  • Upgrade assistant Server error: your username is root, but must be SID adm

    Hi GURU's,
    I am working on "Combined Upgrade & Unicode Conversion" 4.6C ==> NW2004s
    When starting Upgrade assistant and continuue with upgrade getting following error:
    Server error: your username is root, bu must be <SID>adm
    I have option to continue, or cancel
    When I choose "Continue" Upgrade assistant disconects from Upgrade server
    Has someone any idea, what is the reason, and how can I solve this issue.
    PS: I have also tried to start upgrade with <SID>adm user, but the same error.
    Thanks for your help in advance.

    Hi,
    The whole upgrade should only be executed using <sid>adm, not root. I suggest to re-run the upgrade using <sid>adm user.
    Also ensure all files in  /put directory have correct permissions.
    Cheers!

  • Migration Assistant and permissions issues with new Mac Pro

    Hi There,
    I've not had any significant issues with Migration Assistant in the past but I can't create a reliable system with my new Mac Pro.
    After using Migration Assistant during the initial setup, my user account wasn't even transferred. I tried restarting but in the end, I followed these instructions to reset and run the assitant again: http://stationinthemetro.com/2013/11/10/make-mavericks-re-run-the-setup-assistan t
    I've just finished running it for a second time, and while the user account is now on my new system, there are so many permissions issues that the system is unusable (I can't even run Safari). Creative cloud, 1Password, safari, Dropbox are all apps that give me Disk i/o or permissions errors.
    If I look in the user folder, many directories within it have a red minus icon. I've tried fixing permissions using Disk Utility but something is not right.
    In the past, the new system just boots like the old one but this time round, it asked me to create an account after Migration Assistant had finished - is this normal? I used the same username and password as before but I'm not sure Migration Assistantis working properly.
    Does anyone know a full-proof way of fixing and transferring my account without having to spend hours downloading OSX for a full erase and install?
    Any help would be much appreciated.
    Cheers
    Ben

    Thanks for the reply,
    I didn't understand exactly what to put into AppleScript sorry (never used it before) - so I just ran the following from the Terminal:
    $ echo $UID
    $ sudo chown -R 503 ~
    And restarted - everything works now - thanks heaps.
    What had happened and is this something I did or did Migration Assistant just get confused?
    I have 3 new Mc Pros to setup on Monday so just want to ensure those are hassle free.
    Cheers
    Ben

  • Can't open gifs?!  I'm getting permissions errors even though I'm the admin.  Help!

    I assume this is new since upgrading to Mavericks.  I'm having all kinds of permissions errors where if I open a file (pdf, gif, jpg, etc) even though I'm logged in as myself, and I'm the admin.  I've repaired permissions, but no errors were found.  When I click Get Info on a file, it shows that I have permission to read & write.  What?!  I'm baffled!!!

    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    I've tested these instructions only with the Safari web browser. If you use another browser, they may not work as described.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box markedAllow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click anywhere in the following line on this page to select it:
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). I've tested these instructions only with the Safari web browser. If you use  another browser, you may have to press the return key after pasting.
    You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take a few minutes to run, or perhaps longer if you have literally millions of files in your home folder. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1 or if it doesn't solve the problem.
    Boot into Recovery. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

Maybe you are looking for