erikm101 Posted September 23, 2011 Share Posted September 23, 2011 Anyone have any thoughts on above permissions issue? Sorry I am rather newb-ish when it comes to Mac and *nix. Quote Link to comment
papester Posted November 18, 2011 Share Posted November 18, 2011 So is the plist named "com.media.mount.plist" or "com.mount.media.plist" as the download had the file named as the later but the instructions state "com.media.mount.plist"? Thanks, Papester Quote Link to comment
dhy8386 Posted November 21, 2011 Share Posted November 21, 2011 Doesn't matter. However it downloads is fine. Sent from my HTC Mecha using Tapatalk Quote Link to comment
speeding_ant Posted December 27, 2011 Author Share Posted December 27, 2011 Small update to script: Added the ability to call "wake" at the end of the script to wake the server, no matter which time limits on wake you've set. eg: /scripts/mount.sh wake Regarding issue with permissions and multi-user, I cannot do anything to fix this with my script (not easily anyway). It appears all AFP transactions are user based. NFS supports multi-user though! Cheers Quote Link to comment
insurroundsound Posted February 25, 2012 Share Posted February 25, 2012 hi guys...i'm a newb...i've been trying to get this to work with no luck... Here's what I have: Mac Mini running Os X 10.7.3 Readynas Duo NV+ [my itunes library is in a share called "media" on this device] Here's what I did: 1. Downloaded your file from post 1 2. Created a folder called "Scripts" and placed it in what I thought was my root folder [i clicked on the Macintosh HD icon on my desktop and placed folder inside there; I thought this was my root folder. If it is not, please let me know how I can get there] 3. I placed the mount.sh script and wolcmd file in my newly created folder and updated according to your instructions. [i think] I attached my textedit file just in case - passwords removed. By the way, my true password contains an "!" so I substituted it with %21 in the script. The URL encoding site you list does not give this as the special symbol for "!" but other URL encoding sites do. Is this a problem? It did not seem to work either way I did it - using a "!" or using the special code. 4. I placed the plist file in my user/library/launchagent directory [i turned on hidden files on my mac; I then clicked on the Macintosh HD icon; then the User folders; I then clicked on my username folder represented by the "house" icon; I then clicked on the hidden Library folder; I then clicked on the Launch Agents folder; and then I copied the file over] 5. I then opened Terminal and copied the first line of text you said needed to go in there [minus the dash in front]. I was then prompted to enter my password, which I did. I then copied the second line of text you said needed to go in there [minus the dash in front]. 6. I then restarted my computer, and unfortunately my NAS share called "media" did not automount. You mentioned that if it didn't work to double-check permissions but I'm not sure where exactly you want this to be checked. [inside NAS?; mac mini; permissions to just the script file?] As I mentioned before, I'm not a computer programmer or developer, but just trying to follow the instructions as listed. I did navigate to my "Scripts" folder using Finder and clicked "Get Info" I then changed all privileges for all names listed at the bottom of the window to "Read & Write". I also did the same for the actual mount.sh file. However, these changes did not seem to correct the problem. I then attempted to run the checks you mentioned using Terminal. When I typed in "/Scripts/mount.sh" in the Terminal window, it returned this message: "/bin/bash: bad interpreter: Operation not permitted" When I typed "launchctl list" in the Terminal window, it returned a list of items and I did notice that it had a 1 in front of the plist file that I added. So, again, this brings me back to the possibility that I did not place the plist file in my root folder. And I dont know how to get there. Any thoughts, suggestions, solutions? Thanks in advance!!! Quote Link to comment
insurroundsound Posted February 25, 2012 Share Posted February 25, 2012 Hmmm....just wanted to update my post.... Since my NAS has a static IP address, I used my hostname in the mount.sh file. However, I then changed it and replaced it with the actual IP address....and now my share mounts!! Yay!! It does take about a minute after the startup of my computer, but it does work....fantastic!! Quote Link to comment
Guest Artemidis Posted April 15, 2012 Share Posted April 15, 2012 Hello! I just wanted to set up this script but I get the this error: "/bin/bash: bad interpreter: Operation not permitted" I don't where my fault was, the files are in the correct folders and this is what I have set up in the mount.sh file. I also get a 1 when I am trying to run the script in terminal... Can someone please help me? Quote Link to comment
speeding_ant Posted April 15, 2012 Author Share Posted April 15, 2012 Hmm. Have you ever saved that file via text edit? Also check the permissions are ok on both the folder and the file. Your user must be set to execute. Just blanket chmod 777 the file to test. Welcome to send me your script file and I'll check it out. Quote Link to comment
Guest Artemidis Posted April 16, 2012 Share Posted April 16, 2012 Hi! I just checked the permissions of the folder and of the file both are set to 777... Here's my mount.sh file: http://dl.dropbox.com/u/5332371/mount.sh Quote Link to comment
speeding_ant Posted April 16, 2012 Author Share Posted April 16, 2012 Hmm, there is no problem with that script setup. I suspect that the problem is with 10.7.3. Check this thread for details: https://discussions.apple.com/message/17592744#17592744 Quote Link to comment
Guest Artemidis Posted April 16, 2012 Share Posted April 16, 2012 It still doesn't work for me Is this script running on other 10.7.3 machines? I think this could be the problem: https://discussions.apple.com/thread/3733712?start=0&tstart=0 This should be the solution: I deleted it using xattr -d com.apple.quarantine script.sh and the script worked again. Testing right now... Yup it works Quote Link to comment
sico_pata Posted April 21, 2012 Share Posted April 21, 2012 Same here with Lion 10.7.5, but I can't solve with xattr command When I write this in the terminal xattr -d com.apple.quarantine mount.sh I get this message xattr: mount.sh: No such xattr: com.apple.quarantine Quote Link to comment
smoldersonline Posted April 26, 2012 Share Posted April 26, 2012 I experienced the same issue as @sico_pata. I downloaded a fresh script and edited it with TextWrangler. Changed the location and updated the plist file. Works like a charm. Quote Link to comment
speeding_ant Posted April 26, 2012 Author Share Posted April 26, 2012 Correct! It is a 'security' feature only used by apple applications. Isn't it wonderful? Quote Link to comment
kavo Posted September 10, 2012 Share Posted September 10, 2012 Can't get this to work in OSX10.8.1 any ideas? Quote Link to comment
speeding_ant Posted September 10, 2012 Author Share Posted September 10, 2012 Don't use TextEdit, use text wrangler. Quote Link to comment
kavo Posted September 10, 2012 Share Posted September 10, 2012 Whats the deal with textwrangler vs textedit? Quote Link to comment
speeding_ant Posted September 10, 2012 Author Share Posted September 10, 2012 Apple security mumbo jumbo. Quote Link to comment
kavo Posted September 10, 2012 Share Posted September 10, 2012 Thanks I'll get on it! Quote Link to comment
Yivey_unraid Posted December 6, 2012 Share Posted December 6, 2012 Hi guys and thanks for this awesome script. I'm trying to get Plex Media Server on my mac to cooperate with the unRAID server. It has problems with the time stamps on the directories on the user share. Now I have to make sure I have all disk shares connected aswell, and these doesn't seem to connect via afp. So, question is: Is it possible to run a second version of this script that point to the disk shares over smb? First one is pointing at the user shares over afp. Thanks Quote Link to comment
xpakornx Posted October 25, 2013 Share Posted October 25, 2013 I use this script with Snow Leopard for aged.. work like champ. wondering if it gonna work with Maverick. Anyone already try? Quote Link to comment
speeding_ant Posted October 26, 2013 Author Share Posted October 26, 2013 I use this script with Snow Leopard for aged.. work like champ. wondering if it gonna work with Maverick. Anyone already try? I'm still using it on Mavericks - no worries Quote Link to comment
Naenyn Posted October 27, 2013 Share Posted October 27, 2013 How about adding some sort of fail count or network name detection for when you're not on a network with your file servers? -n Quote Link to comment
hjs Posted October 27, 2013 Share Posted October 27, 2013 hi there, I used the script as well for a long time and was very happy about it! but after the update on Mavericks it does not work any longer did I do something wrong somewhere? getting the rolling message in the terminal: Hans-Juergens-iMac:dev HJS$ /Scripts/mount.sh usage: ping [-AaDdfnoQqRrv] [-b boundif] [-c count] [-G sweepmaxsize] [-g sweepminsize] [-h sweepincrsize] [-i wait] [-l preload] [-M mask | time] [-m ttl] [-p pattern] [-S src_addr] [-s packetsize] [-t timeout] [-W waittime] [-z tos] host ping [-AaDdfLnoQqRrv] [-c count] [-I iface] [-i wait] [-l preload] [-M mask | time] [-m ttl] [-p pattern] [-S src_addr] [-s packetsize] [-T ttl] [-t timeout] [-W waittime] [-z tos] mcast-group /Scripts/mount.sh: line 193: [: ==: unary operator expected Attempting to close iTunes Hans-Juergens-iMac:dev HJS$ can anyone maybe have a look please? I have no idea about all this stuff... thanks!!!!! Quote Link to comment
hjs Posted October 28, 2013 Share Posted October 28, 2013 today I get the following message in the Terminal: usage: ping [-AaDdfnoQqRrv] [-b boundif] [-c count] [-G sweepmaxsize] [-g sweepminsize] [-h sweepincrsize] [-i wait] [-l preload] [-M mask | time] [-m ttl] [-p pattern] [-S src_addr] [-s packetsize] [-t timeout] [-W waittime] [-z tos] host ping [-AaDdfLnoQqRrv] [-c count] [-I iface] [-i wait] [-l preload] [-M mask | time] [-m ttl] [-p pattern] [-S src_addr] [-s packetsize] [-T ttl] [-t timeout] [-W waittime] [-z tos] mcast-group Waking Server Depicus Wake On Lan Command Line Usage: wolcmd [mac address] [ipaddress] [subnet mask] [port number] i.e. wolcmd 009027a322fc 195.188.159.20 255.255.255.0 4343 Copyright Depicus (Brian Slack) 1966-2011 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.