Skip to content

Commit

Permalink
Added explaination of why setuid() is disabled when using HD44780
Browse files Browse the repository at this point in the history
  • Loading branch information
hacknix committed May 5, 2016
1 parent 3617199 commit 4369224
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions README.daemon
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
On Linux, to run MMDVMHost as a daemon, set "Daemon=1" in the ini file.

When this is set, MMDVMHost will attempt to drop privileges to user "mmdvm" and
group "mmdvm". If this user and group on your system, an error will occur and
group "mmdvm". If this user and group do not exist on your system, an error
will occur and
MMDVMHost will not start.

To add these users, please do the following from the Linux command line:
Expand All @@ -12,10 +13,13 @@ usermod mmdvm -G dialout

Note, without the last line, MMDVMHost will not be able to open the modem.

Also note, when running as a daemon, STDIN, STDOUT and STDERR are closed, so you
must use a logfile to capture logging
and the logfile entry in the ini file must be given a full path as MMDVMHost
calls "cd /" when daemonising.
Also note, when running as a daemon, STDIN, STDOUT and STDERR are closed, so
you must use a logfile to capture logging and the logfile entry in the ini file
must be given a full path as MMDVMHost calls "cd /" when daemonising.

Also, please note that the code to drop privileges is currently disabled when
MMDVMHost is compiled with the HD44780 display as it's currently not possible to
use this display as a non-root user.


Simon - G7RZU

0 comments on commit 4369224

Please sign in to comment.