Skip navigation

Problem with Launchd running bash script and bindfs

776 Views 2 Replies Latest reply: Oct 13, 2012 7:06 PM by shorts RSS
shorts Level 2 Level 2 (455 points)
Currently Being Moderated
Oct 9, 2012 8:33 PM

Hi, I have been trying to get a launchd script working and it's not working and this error appears in the system log:


10/10/12 12:35:44 PM          com.sysadmin.bindfs[83]          Not a valid user ID: user1

10/10/12 12:35:44 PM          com.sysadmin.bindfs[83]          Not a valid user ID: user2


What I'm aiming to do is run a sftp chroot for virtual hosts and mount the chroot folders that are linked to to the corresponding vhost folders in Library/Webserver/Documents folder.


I've tested it and it works fine if I just run the commands or the script by itself via the terminal. The problem from there is that the bindfs mounts do not remount on startup. So I decided to make a launchd plist to located @ /Library/LaunchDaemons. I've been using Lingon (gui plist editor) to set it up as a Launch Daemon and call the script located in /usr/bin/


I have chmod +x'ed the file and chowned to root. I've placed the script in /usr/bin (hope thats the correct or appropriate location and permissions)




sudo /opt/local/bin/bindfs -u user1 /Library/Webserver/Documents/user1 /vhosts/user1/public_html

sudo /opt/local/bin/bindfs -u user2 /Library/Webserver/Documents/user2 /vhosts/user2/public_html


I've tried mucking around with the script ie removing sudo from the commands etc and its still not working.


The system is a 10.6.8 Snow Leopard Server.


What am I doing wrong? TIA




More Like This

  • Retrieving data ...

Bookmarked By (0)


  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.