You don't have permission to access /munki_repo/ on this server

1,936 views
Skip to first unread message

macman

unread,
Oct 12, 2015, 3:06:43 AM10/12/15
to munki-dev

A newbie question again (thank you for your patience).


OS X Yosemite Server and Munki - having trouble with web server.


Hitting web page http://127.0.0.1/munki_repo/ says 


Forbidden

You don't have permission to access /munki_repo/ on this server.


Munki Repo is on different volume: /Volumes/Data/munki_repo (linked from /Library/Server/Web/Data/Sites/Default)


lrwxr-xr-x   1 admin  admin 24 May 15 21:43 munki_repo -> /Volumes/Data/munki_repo


Here’s permissions for the munki_repo:


total 32

drwxrwxr-x+  9 root   wheel   306 Oct  9 21:49 .

drwxrwxr-x+ 18 root   wheel   680 Oct  9 21:03 ..

-rw-rw-r--@  1 root   wheel  8196 Oct  9 21:36 .DS_Store

drwxr-xr-x   2 root   wheel    68 Sep 21 13:34 NetBoot

drwxrwxr-x+  6 root   wheel   204 Oct  2 14:25 catalogs

drwxr-xr-x  60 admin  wheel  2040 Oct  2 14:25 icons

drwxrwxr-x+  6 root   wheel   204 Oct  2 14:02 manifests

drwxrwxr-x+ 26 root   wheel   884 Oct  2 14:25 pkgs

drwxrwxr-x+ 26 root   wheel   884 Oct  2 14:25 pkgsinfo

bigmac:munki_repo admin$ 


If I allow folder listing on Server setting I can see contents of repo in Safari. This must be something easy to fix, but can’t see it…

A.E. van Bochoven

unread,
Oct 12, 2015, 8:19:32 AM10/12/15
to munk...@googlegroups.com
Could you explain what your problem exactly is? As I read your description, I don’t see anything wrong with your setup.

To be clear: munki does not need to have folder listing enabled, it just needs to be told where the manifests and catalogs are.

Does this command give you the proper address?

defaults read /Library/Preferences/ManagedInstalls SoftwareRepoURL

-Arjen

--
Find related discussion groups here:
https://github.com/munki/munki/wiki/Discussion-Group
---
You received this message because you are subscribed to the Google Groups "munki-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-dev+...@googlegroups.com.
To post to this group, send email to munk...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

as...@siprep.org

unread,
Oct 14, 2015, 11:35:28 AM10/14/15
to munki-dev
Yeah, if you follow the standard procedures for a Munki repo, by default you can't see directory listings, which is okay (directory listings aren't necessary for Munki to function).

Benjamin Nasse

unread,
Oct 14, 2015, 3:44:43 PM10/14/15
to munki-dev

Weird, my munki server which has been working perfectly for over a year started doing this exact thing. I know folder listing doesn't need to be enabled but it always had been on my server. I first noticed the issue when I added a firefox update to Munki and none of my clients picked it up. When I ran it manually the Managed Software Update gave me a 404 error. My first test was to see if I could browse to munch_repo. I have attached a screen shot of what the error looks like in Managed Software Update. 

as...@siprep.org

unread,
Oct 14, 2015, 5:59:06 PM10/14/15
to munki-dev
That is odd. Have you tried re-correcting the permissions?

Something like

chmod -R a+rX /Users/Shared/munki_repo

Reply all
Reply to author
Forward
0 new messages