summaryrefslogtreecommitdiff
path: root/doc/faq.html
blob: 80e68a2ddb1cd0c95c7a6136f00ce045f322107f (plain)
  1. <ul>
  2. <p><li><h4>Error on converting from SQL-Ledger:
  3. ERROR: column "chart_id" contains null values</h4>
  4. SQL-Ledger does not enforce a NOT NULL constraint on the chart_id field in the
  5. acc_trans table. Consequently, it is possible in cirtain circumstances to
  6. insert transactions into the database with invalid information including NULL
  7. chart_id's. When this occurs, normally the Chart of Accounts and Trial Balance
  8. will fail to balance. So this is a serious problem with data integrity.
  9. LedgerSMB prevents this by adding the NOT NULL constraing but this can cause
  10. prevent people from migrating when they have invalid data in their databases.
  11. <br/><br/>
  12. If you encounter an error like this, the first thing to do is seek
  13. technical support, regardless of whether or not you wish to continue
  14. the migration. In general the providers of support for LedgerSMB and
  15. SQL-Ledger should all be able to be of some assistance.
  16. Unfortunately, since this problem involves information loss, no
  17. solution can be automated without invalidating your accounting
  18. information. </li></p>
  19. <p><li><h4>PostgreSQL 8.x</h4>
  20. PostgreSQL added a restriction in v8.x that a sequence cannot be dropped
  21. after if it is referenced by a table. However backups created with
  22. LedgerSMB v2.6.13 and earlier have a DROP SEQUENCE step in the backup
  23. which will fail. To fix this edit the backup before restoring on a 8.x
  24. system.
  25. <p>This typically looks like this:
  26. <pre>
  27. DROP SEQUENCE id ;
  28. CREATE SEQUENCE id START 10579;
  29. --
  30. DROP SEQUENCE invoiceid ;
  31. CREATE SEQUENCE invoiceid START 11096;
  32. --
  33. DROP SEQUENCE orderitemsid ;
  34. CREATE SEQUENCE orderitemsid START 178;
  35. --
  36. DROP SEQUENCE jcitemsid ;
  37. CREATE SEQUENCE jcitemsid START 53;
  38. </pre>
  39. <p>Change it to:
  40. <pre>
  41. CREATE SEQUENCE id;
  42. SELECT SETVAL('id', 10579);
  43. CREATE SEQUENCE invoiceid;
  44. SELECT SETVAL('invoiceid', 11096);
  45. CREATE SEQUENCE orderitemsid;
  46. SELECT SETVAL('orderitemsid', 178);
  47. CREATE SEQUENCE jcitemsid;
  48. SELECT SETVAL('jcitemsid', 53);
  49. </pre>
  50. <p><li><h4>PostgreSQL template1</h4>
  51. <tt>template1</tt> is a template that new databases are built from, by
  52. default. Anything you put into <tt>template1</tt> will be copied to a
  53. new database. Thus, when you try to create a new dataset, the tables
  54. are already drawn in from <tt>template1</tt> so that when LedgerSMB
  55. tries to create them, you will receive an error message indicating
  56. that the tables already exist.
  57. <p><li><h4>PostgreSQL 8.0+</h4>
  58. To use LedgerSMB with PostgreSQL 8.0+ you have to modify
  59. <tt>Pg-tables.sql</tt>. This file is in the sql directory.
  60. <pre>
  61. CREATE TABLE orderitems (
  62. trans_id int,
  63. parts_id int,
  64. description text,
  65. qty float4,
  66. sellprice float8,
  67. discount float4,
  68. unit varchar(5),
  69. project_id int,
  70. reqdate date,
  71. ship float4,
  72. serialnumber text,
  73. id int default nextval('orderitemsid')
  74. ) WITH OIDS;
  75. CREATE TABLE inventory (
  76. warehouse_id int,
  77. parts_id int,
  78. trans_id int,
  79. orderitems_id int,
  80. qty float4,
  81. shippingdate date,
  82. employee_id int
  83. ) WITH OIDS;
  84. CREATE TABLE assembly (
  85. id int,
  86. parts_id int,
  87. qty float,
  88. bom bool,
  89. adj bool
  90. ) WITH OIDS;
  91. </pre>
  92. This change is only required for LedgerSMB versions 2.6.3 and below.
  93. <p>If you already built a dataset without this change you will get
  94. an error when you try to save a PO or assembly.
  95. <p>"ERROR: column "oid" does not exist"
  96. <p>Drop the tables and rebuild WITH OIDS.
  97. <p><li><h4>Japanese characters</h4>
  98. modify apache so that EUC_JP is the main additional language.
  99. <br>comment out all unrelated languages except, UTF_8 shift jis, EUC_JP
  100. <br>restart apache
  101. <br>Fire up psql and do the encoding as per the table:-
  102. <br>Table 5-2. Postgres Client/Server Character Set Encodings
  103. <p>Server Encoding Available Client Encodings
  104. <br>EUC_JP EUC_JP, SJIS
  105. <br>EUC_TW EUC_TW, BIG5
  106. <br>LATIN2 LATIN2, WIN1250
  107. <br>LATIN5 LATIN5, WIN, ALT
  108. <br>MULE_INTERNAL EUC_JP, SJIS, EUC_KR, EUC_CN, EUC_TW, BIG5, LATIN1 to LATIN5, WIN, ALT, WIN1250
  109. <p>Create the dataset from admin.pl, now the Japanese shows up in multibyte encoding
  110. <p>Now you can write in Hiragana, Katakana, Kanji and English
  111. <p><li><h4>Error posting a check/receipt</h4>
  112. <pre>
  113. DBD::Pg::db do failed: ERROR: syntax error at or near "," at character 114
  114. Error!
  115. INSERT INTO acc_trans (trans_id, chart_id, transdate,amount)
  116. VALUES (13314, , '03-22-2005',1.00 * 1)
  117. ERROR: syntax error at or near "," at character 114 </pre>
  118. This error is caused by a transaction which does not have links to
  119. an AR/AP account.
  120. <br>set up your chart of accounts properly and create at least one
  121. AR and AP account. Then edit all your transactions and repost.
  122. <p><li><h4>SELinux</h4>
  123. <a href=http://fedora.redhat.com/docs/selinux-faq-fc3/index.html>http://fedora.redhat.com/docs/selinux-faq-fc3/index.html</a>
  124. <p>modify <tt>/etc/selinux/conf</tt> and set <tt>SELINUX=permissive</tt>
  125. <p>use <tt>audit2allow</tt>, add the following to
  126. <tt>policy.conf</tt>, then run <tt>make reload</tt>
  127. <p>#line 83
  128. <br>allow httpd_sys_script_t port_type:{ tcp_socket udp_socket } { send_msg
  129. recv_msg };
  130. <br>allow httpd_sys_script_t sysctl_kernel_t:dir search;
  131. <br>allow httpd_sys_script_t sysctl_t:dir search;
  132. <br>allow httpd_sys_script_t tmp_t:sock_file write;
  133. <br>allow httpd_sys_script_t httpd_sys_content_t:lnk_file read;
  134. <br>allow httpd_sys_script_t sysctl_kernel_t:file read;
  135. <br>allow httpd_sys_script_t unconfined_t:unix_stream_socket connectto;
  136. <p><li><h4>session timeouts</h4>
  137. If you get frequent timeouts or can't even log in, synchronize
  138. the clocks between the server and workstation.
  139. <p><li><h4>lineitems not printing</h4>
  140. Templates designed on a UNIX platform don't work on a DOS platform.
  141. To make them work load the template either with the builtin template editor
  142. or a text editor and save. Templates designed on a Windows platform have the
  143. same problem and won't work on a UNIX platform. Once you strip the ^M's
  144. the'll work just fine.
  145. <p><li><h4>UTF-8 character encoding</h4>
  146. Most of the translations are in ISO format. To convert the translations
  147. change directory to locale/cc and convert the files with iconv to UTF-8.
  148. You should also convert the COAs too and make sure you select UTF-8
  149. encoding when you set up a new dataset.
  150. <p><li><h4>characterset problems</h4>
  151. If you have problems displaying the correct characterset try adding
  152. <pre>
  153. AddDefaultCharset On</pre>
  154. in your <tt>httpd.conf</tt> file.
  155. <p><li><h4>About installation</h4>
  156. The easiest is to use the setup.pl script as root.
  157. You don't need to know very much about your system, just login as root,
  158. run 'perl setup.pl' and follow the prompts.
  159. <p>setup.pl does not check for missing software packages and it is your
  160. responsibility to make sure you have the required software
  161. installed either from source or from a package.
  162. <p>Requirements are clearly indicated in the <tt>README</tt> file and
  163. on the download page.
  164. <p><li><h4>cannot create function</h4>
  165. <ol>
  166. <li>either run <tt>createlang plpgsql</tt> to install the plpgsql
  167. language handler or install yourself. For more information how to do
  168. that, visit <a href=http://www.postgresql.org/docs/>PostgreSQL</a> and
  169. read the interactive documentation for procedural languages.
  170. <li>load admin.pl
  171. <li>unlock the system
  172. <li>login
  173. </ol>
  174. <p><li><h4>The requested URL /ledger-smb/admin.pl was not found</h4>
  175. Your webserver doesn't know where to find the script. Most commonly this
  176. results when distributions hide webserver configuration files in unexpected
  177. locations so that <tt>setup.pl</tt> wasn't able to configure the location for
  178. you. Find out which file (<tt>httpd.conf</tt>, <tt>httpdcommon.conf</tt>, ...)
  179. controls your webserver configuration and add
  180. <pre>
  181. # LedgerSMB
  182. Include /etc/httpd/ledger-smb-httpd.conf</pre>
  183. Create a file 'ledger-smb-httpd.conf' in /etc/httpd and copy the next part
  184. into the file.
  185. <pre>
  186. AddHandler cgi-script .pl
  187. AddDefaultCharset On
  188. Alias /ledger-smb /var/www/ledger-smb/
  189. &lt;Directory /var/www/ledger-smb&gt;
  190. Options ExecCGI Includes FollowSymlinks
  191. &lt;/Directory&gt;
  192. &lt;Directory /var/www/ledger-smb/users&gt;
  193. Order Deny,Allow
  194. Deny from All
  195. &lt;/Directory&gt;</pre>
  196. replace '/etc/httpd' and '/var/www' with the appropriate directories.
  197. <p><li><h4>users/members : Permission denied</h4>
  198. Your webserver must have write access to the users directory.
  199. If your server runs as user/group 'apache:apache' then set the
  200. users directory to owner/group apache:apache.
  201. <pre>
  202. # chown -R apache:apache users</pre>
  203. <p><li><h4>Dataset newer than version</h4>
  204. You are trying to use an older version with a dataset which was
  205. created with a newer version.
  206. <p><li><h4>PDF option not working</h4>
  207. Check if you have latex and pdflatex installed.
  208. <p><li><h4>Apache 2.0 "error 500"</h4>
  209. Some of the early versions of Apache 2.0 (< patchlevel 44) had a rewrite engine
  210. which decoded escaped strings. This created a lot of problems and I worked
  211. around it by escaping strings twice.
  212. If you get a server 500 error 'filename too long' or if collapsed menus
  213. don't expand you may have to adjusted the following code in
  214. SL/Form.pm and change the number (44) on line 84.
  215. <pre>
  216. # for Apache 2 we escape strings twice
  217. if (($ENV{SERVER_SIGNATURE} =~ /Apache\/2\.(\d+)\.(\d+)/) && !$beenthere) {
  218. $str = $self->escape($str, 1) if $2 < 44;
  219. }</pre>
  220. <p><li><h4>IDENT Authentication failed for user "sledger-smb"</h4>
  221. Edit pg_hba.conf and change authentication to
  222. <pre>
  223. local all all MD5</pre>
  224. The file is in the 'data' directory of your postgresql installation.
  225. This is different with every distribution so look for it.
  226. <pre>
  227. # find / -name 'pg_hba.conf'</pre>
  228. <p>Some people can't read and seem to think 'localhost' is just some
  229. fancy word for a local machine.
  230. 'localhost' is a host like any other host on a network.
  231. A 'local' entry in pg_hba.conf will allow socket connections ONLY and
  232. not allow a host connection. If you then try to connect to 'localhost',
  233. PostgreSQL will come back with an authentication error.
  234. <p>So, if the database resides on the same server as the web server,
  235. forget you ever heard there is such a thing as 'localhost' and leave
  236. the Host portion blank.
  237. <p><b>WARNING!</b> DO NOT just put a 'host all all trust' in
  238. pg_hba.conf unless you know what you are doing; that can introduce a
  239. pretty huge security hole.
  240. <p><li><h4>DBD-Pg for Mandrake 9.0</h4>
  241. Mandrake did not package a compiled DBD-Pg package again, so install DBD-Pg
  242. from the source package.
  243. Install perl-DBD-Pg-1.01-4mdk.i586.rpm from the 'contrib' area.
  244. (Mandrake / 9.0 / contrib / RPMS)
  245. <p><li><h4>LaTeX error</h4>
  246. If for some reason LaTeX produces an error message check for strange
  247. characters in your account description and parts description
  248. and use \usepackage[latin1]{inputenc} in the preamble.
  249. <p><li><h4>LaTeX templates</h4>
  250. If you don't want to edit tex code by hand,
  251. you could use Lyx, Abiword, or any WYSIWYG editor capable of exporting
  252. latex code.
  253. To do that you must change the tokens for the variables <% and %> to something
  254. like << and >>. % is the comment character in tex. There is also a
  255. pagebreak block which must be commented out.
  256. When you are done with the changes
  257. replace << and >> with <% and %> and uncomment the pagebreak block.
  258. <p>LaTeX is somewhat complex to learn, initially, but offers a much
  259. superior environment to produce professional-looking forms in
  260. postscript and PDF format.
  261. <p><li><h4>W3M</h4>
  262. pass terminal=mozilla when you start w3m
  263. <pre>
  264. $ w3m -F http://localhost/ledger-smb/login.pl?terminal=mozilla</pre>
  265. To use without frames
  266. <pre>
  267. $ w3m http://localhost/ledger-smb/login.pl?terminal=lynx</pre>
  268. <p><li><h4>PDF option disappeared</h4>
  269. Edit ledger-smb.conf and set $latex = 1;
  270. <br>ledger-smb.conf is perl code, check if it compiles, if it does not,
  271. the internal defaults are used which turn off $latex, hence no PDF option.
  272. <p><li><h4>Installation on Windows (WIN32)</h4>
  273. <ul>
  274. <li>install Apache, perl,
  275. <a href=http://techdocs.postgresql.org/guides/InstallingOnWindows>Postgres</a>
  276. or Oracle, DBI and the appropriate DBD
  277. module
  278. <br>if you can't compile DBD-Pg here is a precompiled
  279. <a href=http://http://pgfoundry.org/projects/dbdpgppm/>DBD-Pg module</a>
  280. <li>download the latest version of <a
  281. href=http://ledger-smb.sourceforge.net>LedgerSMB</a>
  282. <li>extract the files to c:\apache\ledger-smb
  283. <li>run 'perl shebang' to change the first line of the scripts. If perl
  284. is not in c:\perl\bin' change '#!c:\\perl\\bin\\perl' to the location where
  285. your perl binary is.
  286. <li>edit c:\apache\conf\httpd.conf and add
  287. <pre>
  288. Alias /ledger-smb "c:/apache/ledger-smb/"
  289. &lt;Directory "c:/apache/ledger-smb"&gt;
  290. AllowOverride All
  291. AddHandler cgi-script .pl
  292. AddDefaultCharset On
  293. Options +ExecCGI
  294. Order Allow,Deny
  295. Allow from All
  296. &lt;/Directory&gt;
  297. &lt;Directory "c:/apache/ledger-smb/users"&gt;
  298. Order Deny,Allow
  299. Deny from All
  300. &lt;/Directory&gt;
  301. </pre>
  302. <li>start Apache
  303. <li>start Postgres|Oracle|DB2
  304. <li>connect to http://localhost/ledger-smb/admin.pl and set up users
  305. and datasets
  306. <li>connect to http://localhost/ledger-smb/login.pl and login
  307. </ul>
  308. <p><li><h4>What do I enter for the language</h4>
  309. If you use English, nothing, if you want to use a foreign language for
  310. the login screen and admin stuff enter the language code, this is the
  311. directory in the locale directory.
  312. <p><li><h4>printing to a printer</h4>
  313. Printers are defined in ledger-smb.conf
  314. <pre>
  315. %printer = ( 'Default' => 'lpr', 'Color' => 'lpr -PEpson' );</pre>
  316. Check in your /etc/printcap file for the names of available printers.
  317. <p>If you have LaTeX installed set
  318. <pre>
  319. $latex = 1</pre> in ledger-smb.conf
  320. <p>To send the document to the printer check the "Postscript" or "PDF" format,
  321. enter the number of copies and click on the "Print" button.
  322. <p>The printer you enter in your preferences is the default printer.
  323. You can choose any other available printer. This makes it possible
  324. to print from anywhere on the network to any printer.
  325. <p>Note: html format is for screen preview. Use the "Print" option from your
  326. browser to print to a printer.
  327. <p><li><h4>Using samba to send printjobs to a printer attached to a Windows XP workstation</h4>
  328. The next part applies to roll your own print filters only. If you use CUPS or
  329. LPRng your milage may vary but you can still use this as a guide how it works.
  330. I use the printer 'Epson' as an example which is
  331. attached to a XP workstation called Raven.
  332. <pre>
  333. /etc/printcap entry on the server which runs lpd
  334. epson:Epson\
  335. :sh:\
  336. :lp=/dev/null:\
  337. :sd=/var/spool/output/epson:\
  338. :if=/usr/libexec/lpr/epson/prnfilter:\
  339. # end of entry in /etc/printcap
  340. # prnfilter shell script
  341. #!/bin/sh
  342. # Filter for Epson Stylus
  343. PATH="$PATH:/usr/local/bin"
  344. #read first_line
  345. read tmp
  346. first_line=`echo $tmp | cut -b1-2 | sed -n '1p'`
  347. first_chr=`expr "$first_line" : '\(.\)'`
  348. first_two=`expr "$first_line" : '\(..\)'`
  349. rewindstdin
  350. if [ "$first_two" = "%!" ]; then # Postscript file
  351. gs @st640p.upp -dSAFER -dNOPAUSE -q -sOutputFile=/tmp/$$ -
  352. else
  353. # text file
  354. cat &gt; /tmp/$$
  355. echo -n "^L" &gt;&gt; /tmp/$$
  356. smbclient '\\Raven\Epson' "" -c 'printmode text'
  357. fi
  358. smbclient '\\Raven\Epson' "" -P -c "print /tmp/$$"
  359. rm /tmp/$$
  360. # EOF
  361. rewindstdin is a small program to rewind the filehandle for STDIN
  362. save the next part up to EOF to a file rewindstdin.c and compile
  363. #include &lt;sys/types.h&gt;
  364. #include &lt;unistd.h&gt;
  365. extern int errno;
  366. main()
  367. {
  368. if( lseek(0,0,0) == 0 ){
  369. errno = 0;
  370. }
  371. return( errno );
  372. }
  373. # EOF
  374. compile to an executable
  375. gcc -o /usr/local/bin/rewindstdin rewindstdin.c
  376. </pre>
  377. <p><li><h4>beginning balances</h4>
  378. Add a GL Journal entry and enter the beginning balance for your accounts.
  379. Beginning balances are the balances from your last balance sheet. If you also
  380. add open invoices to account for COGS for inventory, add the invoices
  381. and make the appropriate adjustments.
  382. <p><li><h4>establish a beginning inventory</h4>
  383. add the parts with a vendor invoice. Use the <b>real cost</b> for the items,
  384. not zero. If you use zero cost then the cost of goods will be zero when you
  385. sell the item.
  386. <p><li><h4>Assemblies</h4>
  387. Assemblies are manufactured goods assembled from parts, services and
  388. assemblies. Because you do not buy assemblies you 'stock assemblies' by
  389. adding assembled units to your inventory. The quantity for individual parts
  390. is reduced and the quantity for the assembly increased. To disassemble an
  391. assembly you simply return the parts to inventory by entering a negative
  392. quantity for the number of assemblies to stock.
  393. <p><li><h4>DBD-Pg not installed</h4>
  394. Most modern distributions now package DBD-Pg. If it is
  395. not packaged follow this recipe to get it working.
  396. <ul>
  397. <li>check if you have the header files for PostgreSQL
  398. <br>$ find / -name 'libpq-fe.h'
  399. <br>if nothing shows up install the development package for PostgreSQL
  400. <li>download and untar DBD-Pg
  401. <li>set the environment variables POSTGRES_LIB and POSTGRES_INCLUDE
  402. <li>cd to DBD-Pg directory
  403. <br>as ordinary user
  404. <br>$ perl Makefile.PL
  405. <br>$ make
  406. <br>$ make test
  407. <br>if all went well su to root
  408. <br># make install
  409. <li>remove DBD-Pg
  410. </ul>
  411. <p><li><h4>login.pl has compilation error</h4>
  412. This could be because of a missing configuration file in the users directory
  413. <p>check the permission for the users directory. The directory must be
  414. set writeable for the webserver. If your webserver runs ias user/group
  415. nobody.nogroup set the directory to
  416. <pre>
  417. drwx--x--x 2 nobody nogroup 1024 May 26 16:49 users
  418. or
  419. drwxrwx--x 2 johndoe nogroup 1024 May 26 16:49 users</pre>
  420. <p><li><h4>script not executing, shows in browser instead</h4>
  421. Add
  422. <pre>
  423. AddHandler cgi-script .pl</pre>
  424. in your httpd.conf file.
  425. <p><li><h4>unknown terminal!</h4>
  426. the frontend script couldn't figure out which browser you are using
  427. <p>include the terminal variable on the URL
  428. <pre>
  429. http://localhost/ledger-smb/login.pl?terminal=lynx</pre>
  430. Valid terminal variables are lynx, mozilla and js
  431. <p><li><h4>permission denied</h4>
  432. Check if your web server has write permission to write to the following
  433. files and directories:
  434. <pre>
  435. users/
  436. templates/
  437. users/members
  438. # chown nobody:nogroup users templates users/members
  439. </pre>
  440. <p><li><h4>permission denied to access tables</h4>
  441. The user you entered in the "Database section" must be a valid
  442. database user who has rights to access the tables.
  443. <p>If the tables are owned by 'joe' and you enter 'mary' as the dba
  444. you might run into this problem if mary doesn't have the rights to
  445. access tables owned by joe.
  446. <p><li><h4>html and graphics files don't show up on screen</h4>
  447. Enable Includes and FollowSymlinks Options in your httpd.conf file
  448. <pre>
  449. &lt;Directory /usr/local/ledger-smb&gt;
  450. Options ExecCGI Includes FollowSymlinks
  451. &lt;/Directory&gt;
  452. </pre>
  453. <p><li><h4>switch display to a foreign language</h4>
  454. Load your preferences and select the language.
  455. <br>Language selection is in accordance to
  456. <a href=http://www.unece.org/cefact/locode/service/main.htm>
  457. ISO 3166-1</a> standards.
  458. <p><li><h4>Text shows in English when I use a foreign language</h4>
  459. This is because the corresponding hash entry is missing.
  460. Add the missing text in the locale/cc/all or locale/cc/missing
  461. file and run 'perl locales.pl' from the command line to rebuild
  462. the individual files.
  463. <br>cc refers to the country code.
  464. <p><li><h4>switch to a foreign language for the login and admin screen</h4>
  465. Edit ledger-smb.conf and enter the code for the $language variable
  466. <pre>
  467. $language = "de";</pre>
  468. <p>This is a global change and applies to all logins, individual settings
  469. may be changed by setting the language in your Preferences.
  470. </ul>
  471. <p>
  472. <hr>
  473. <a name=security>
  474. <h1>LedgerSMB security</h1>
  475. </a>
  476. <ul>
  477. <li>The security features built into LedgerSMB provide encrypted passwords
  478. and access control which makes it fairly safe out of the box to run even in
  479. front of a firewall.
  480. Some precautions which are out of our control must be taken though.
  481. It matters where you install SL and how you configure your web server and
  482. SQL server.
  483. <pre>
  484. Typical setups:
  485. /usr/local/vh/www <- DocumentRoot for virtual host
  486. /usr/local/vh/ledger-smb <- Alias for ledger-smb
  487. /usr/local/vh/users <- users directory out of reach
  488. <hr width=60% align=left>
  489. /usr/local/vh/www <- DocumentRoot for virtual host
  490. /usr/local/vh/www/ledger-smb <- Alias for ledger-smb
  491. /usr/local/vh/www/ledger-smb/users <- users configuration files and tmp space
  492. &lt;Directory /usr/local/vh/www/ledger-smb/users&gt; <- disable webserver access
  493. Order Deny,Allow for users directory
  494. Deny from All
  495. &lt;/Directory&gt;
  496. </pre>
  497. The location for the users directory can be specified in ledger-smb.conf
  498. <p><li>Set permission for the users and templates directory to 711
  499. <p><li>If you do not want anyone to change the templates with the built-in
  500. editor set the files in templates/directory/ to read only or disable
  501. the menu item to edit the templates.
  502. <p><li>You can set up a read-only environment if you disable the menu items
  503. to add data. i.e 'Add Transaction' if unchecked you will not be able to add
  504. a transaction or repost a transaction. You may look at it but nothing else.
  505. <p><li>There are various settings for audit control and you may disable
  506. reposting entirely or up to a certain date. And with the audit trail enabled
  507. you can keep tab of who is doing what.
  508. <p><li>For PostgreSQL you may also set who has access to the server in the file
  509. pg_hba.conf
  510. <br>Authentication crypt does not work because not all SQL servers
  511. accept encrypted passwords.
  512. <p><li>in addition you can secure the tables from unauthorized access by
  513. setting up a different database user and GRANT rights. For instance,
  514. users without DELETE rights will still be able to use the program, change
  515. customers and vendors, add transactions but will not be able to delete or
  516. repost transactions.
  517. <br>To lock all the tables to create a RO system GRANT SELECT rights only.
  518. <p><li>Other security options include a secure shell, your webserver's
  519. authentication system, SSL, encrypted tunnels, ...
  520. </ul>
  521. </BODY>
  522. </HTML>