Permissions

Permissions

OWFS needs to work with network ports, hardware adapters, kernel modules, and filesystem mountpoints. There are some tricks to getting the permissions right.

Network ports:

  • Ports above 1024 are accessible by all users.
  • Allowing Bonjour to select ports will automatically choose a safe port.
  • owserver should be auto-selected, or an unused port above 1024 chosen.
  • owhttpd will need root privaledges to run on the standard http port 80. Choosing a port above 1024 will require the port to be included in the URL, but is otherwise well supported.
  • owftpd will not runon the standard ftp port 21 unless run as root. Use a port above 1024

Hardware:

  • Serial ports usually have a static device name (e.g. /dev/ttyS0 ). Permissions can be set using filesystem commands (chown, chmod) to allow access.
  • USB port assignment is autoconfigured each time the device is plugged in.
    • Older and embedded machines use hotplug
    • Current design is udev

Kernel modules

  • modprobe fuse must be done as root
  • rmmod ds9094r must be done as root.

Filesystem

  • Is used, the configuration file and PID file must have the correct permissions to allow read access.
  • The FUSE mountpoint must be accessible and free.
  • Others will only be able to look at the FUSE-mounted 1wire filesystem if the "allow_others" is speified in the commmand line