Virgo Logbook
UTC--:--:--
GPS-
Reports
Electronics and Software›Software Installation and Test #564

(untitled)

End of the story about sudo on the RIOS
The logging function used locks to guarantee that simultaneous
loggins from differents hosts are synchronized.
The problem is that the log file is in an NFS-mounted file
and that LynxOS does not seem able to cope with that.
After a lot of tries (with a test program based on fnctl), I
realized that there were no issues.
So I simply disabled the locking. The only risk is to miss a line
or to have two lined mixed in the log, but we'll have to live
with it.
By the way, the log is in /rootfs/rw/logs/sudo.log
In order to have the name of the host logged, I have had to
add an option to the configuration.
The final configuration options are:
./configure  --bindir=/usr/local/sudo/LynxOS/bin
--sbindir=/usr/local/sudo/LynxOS/sbin/
--sysconfdir=/usr/local/etc --with-logging=file
--with-logpath=/rootfs/rw/logs/sudo.log --enable-log-host