Bug#1022823: nfs-kernel-server: /etc/default/nfs-kernel-server needs RPCNFSDOPTS

2022-10-26 Thread Alfredo Sola
Package: nfs-kernel-server
Version: 1:1.3.4-6
Severity: wishlist

Dear Maintainer,

I needed a way to have rpc.nfsd bind to a specific IP address.

The man page for rpc.nfsd documents a parameter exactly for this, plus some 
others.

At first signt, it seems that there is no Debian way to pass parameters to 
rpc.nfsd.

But there is; RPCNFSDOPTS can be set on /etc/default/nfs-kernel-server. It will 
then
be sourced from /usr/lib/systemd/scripts/nfs-utils_env.sh, which sends its 
variables
to /run/sysconfig/nfs-utils, from where they are read by nfs-server.service.

Setting RPCNFSDOPTS solves this issue, so I am suggesting that it be added 
(empty)
to /etc/default/nfs-kernel-server, along with a commentary pointing to the 
rpc.nfsd
man page for information on parameters.

-- Package-specific info:
-- rpcinfo --
   program vers proto   port  service
104   tcp111  portmapper
103   tcp111  portmapper
102   tcp111  portmapper
104   udp111  portmapper
103   udp111  portmapper
102   udp111  portmapper
134   tcp   2049  nfs
-- /etc/default/nfs-kernel-server --
RPCNFSDCOUNT=8
RPCNFSDPRIORITY=0
RPCMOUNTDOPTS="--manage-gids -N 2 -N 3"
NEED_SVCGSSD=""
RPCSVCGSSDOPTS=""
RPCNFSDOPTS="-H 10.RED.ACT.ED -N 2 -N 3"
-- /etc/exports --
/srv/REDACTED 10.RED.ACT.EF(rw,insecure,nohide,sync,anonuid=4001,anongid=4002)
/srv/REDACTED 10.RED.ACT.EF(rw,insecure,nohide,sync,anonuid=4001,anongid=4002)
-- /proc/fs/nfs/exports --
# Version 1.1
# Path Client(Flags) # IPs

-- System Information:
Debian Release: 11.5
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-19-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages nfs-kernel-server depends on:
ii  keyutils  1.6.1-2
ii  libblkid1 2.36.1-8+deb11u1
ii  libc6 2.31-13+deb11u4
ii  libcap2   1:2.44-1
ii  libsqlite3-0  3.34.1-3
ii  libtirpc3 1.3.1-1+deb11u1
ii  libwrap0  7.6.q-31
ii  lsb-base  11.1.0
ii  netbase   6.3
ii  nfs-common1:1.3.4-6
ii  ucf   3.0043

nfs-kernel-server recommends no packages.

nfs-kernel-server suggests no packages.

-- no debconf information



Bug#886568: exabgp is not able to create its command pipe

2018-01-07 Thread Alfredo Sola
Package: exabgp
Version: 3.4.17-3
Severity: normal

Dear Maintainer,

exabgp does not create its pipeby default. These commands need to be run as 
root before exabgp can start correctly:
mkdir /run/exabgp && chown exabgp /run/exabgp

After that, service starts:
service exabgp start

-- System Information:
Debian Release: 9.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages exabgp depends on:
ii  adduser   3.115
ii  debconf   1.5.61
ii  dpkg  1.18.24
ii  lsb-base  9.20161125
ii  python2.7.13-2
ii  python-pkg-resources  33.1.1-1
ii  ucf   3.0036

exabgp recommends no packages.

exabgp suggests no packages.

-- Configuration Files:
/etc/init.d/exabgp changed:
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="BGP route injector"
NAME=exabgp
CONFIG="/etc/exabgp/exabgp.conf"
DAEMON=/usr/sbin/exabgp
DAEMON_OPTS="--folder /etc/exabgp $CONFIG"
PIDFILE=/run/$NAME/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
[ -x $DAEMON ] || exit 0
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
. /lib/init/vars.sh
. /lib/lsb/init-functions
[ -f "$CONFIG" ] || exit 0
RUNDIR=$(dirname ${PIDFILE})
[ ! -d ${RUNDIR} ] && mkdir -p ${RUNDIR} && chown exabgp:exabgp ${RUNDIR}
do_start()
{
# Return
#   0 if daemon has been started
#   1 if daemon was already running
#   2 if daemon could not be started
# We create the PID file and we do background thanks to 
start-stop-daemon
start-stop-daemon --start --quiet --pidfile $PIDFILE -b -m --exec 
$DAEMON -- $DAEMON_OPTS
return $?
}
do_stop()
{
# Return
#   0 if daemon has been stopped
#   1 if daemon was already stopped
#   2 if daemon could not be stopped
#   other if a failure occurred
start-stop-daemon --stop --quiet --signal TERM --pidfile $PIDFILE
RETVAL="$?"
sleep 1
# clean stale PID file
rm $PIDFILE 2> /dev/null
[ "$RETVAL" = 2 ] && return 2
# Wait for children to finish too if this is a daemon that forks
# and if the daemon is only ever run from this initscript.
# If the above conditions are not satisfied then add some other code
# that waits for the process to drop all resources that could be
# needed by services started subsequently.  A last resort is to
# sleep for some time.
start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec 
$DAEMON
[ "$?" = 2 ] && return 2
sleep 1
return "$RETVAL"
}
do_reload() {
start-stop-daemon --stop --signal USR1 --quiet --pidfile $PIDFILE
return 0
}
do_force_reload() {
start-stop-daemon --stop --signal USR2 --quiet --pidfile $PIDFILE
return 0
}
case "$1" in
  start)
start-stop-daemon --status --quiet --pidfile $PIDFILE
retval=$?
if [ $retval -eq 0 ] ; then
log_warning_msg "$NAME is already running"
log_end_msg 1
else
log_daemon_msg "Starting $DESC" "$NAME "
do_start
case "$?" in
0|1) log_end_msg 0 ;;
2) log_end_msg 1 ;;
esac
fi
;;
  stop)
log_daemon_msg "Stopping $DESC" "$NAME "
do_stop
case "$?" in
0) log_end_msg 0 ;;
1|2) log_end_msg 1 ;;
esac
;;
  status)
status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME" && exit 0 || exit $?
;;
  reload)
log_daemon_msg "Reloading $DESC" "$NAME "
do_reload
log_end_msg $?
;;
  force-reload)
log_daemon_msg "Reloading $DESC (and subprocesses)" "$NAME "
do_force_reload
log_end_msg $?
;;
  restart)
log_daemon_msg "Restarting $DESC" "$NAME "
do_stop
case "$?" in
  0|1)
do_start
case "$?" in
0) log_end_msg 0 ;;
1) log_end_msg 1 ;; # Old process is still running
*) log_end_msg 1 ;; # Failed to start
esac
;;
  *)
# Failed to stop
log_end_msg 1
;;
esac
;;
  *)
log_warning_msg "Usage: $SCRIPTNAME 
{start|stop|restart|reload|force-reload|status}"
log_end_msg 3
exit 3
;;
esac
exit 0


-- no debconf information



Bug#750772: Confirmed with Jessie+OwnCloud 6.0.3

2014-06-16 Thread Alfredo Sola

I am hitting this bug with Jessie (updated as of today, has PHP 
5.6.0~beta3+dfsg-2) and OwnCloud stable (6.0.3 as of this writing).

I had php-apc 4.0.4-2. Removing it and restarting Apache did not help.

Contact data is there but doesnt't show and I am getting the Undefined 
index in apps/contacts/lib/backend/database.php#5[56] like previuos posters.

-- 
Alfredo Sola
http://www.tecnocratica.net/


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#669402: [moodle-packaging] Bug#669402: moodle: Package configuration asks for database administrative password

2012-04-20 Thread Alfredo Sola

 Package installer (dbconfig-common) asks for admin password only to create a 
 new user and new database. To confirm that, check /etc/moodle/config.php 
 after you install Moodle.

Yes, I think that is what is wrong. If the user installing Moodle is 
not going to be able to give an administrative user, why not give him the 
option to provide the database, user and password instead?

-- 
Alfredo Sola
ASP5-RIPE
http://www.solucionesdinamicas.net/






--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#669402: moodle: Package configuration asks for database administrative password

2012-04-19 Thread Alfredo Sola
Package: moodle
Version: 2.2.2.dfsg-1
Severity: normal

Dear Maintainer,

The moodle package asks for the administrative password of the database server 
being used.
However, this is not appropriate in all the circumstances that the package is 
expected to
reasonably work in.

For example, if an organization has a dba that issues databases and a username 
and password
with all privileges for them, but never releases an admin user. Or perhaps 
there is a
database server which is well hardened and doesn't allow root access from 
elsewhere.

It would be better to either (a) offer to use an ordinary database user 
(without access to
database creation but with all privileges on the particular database to be 
used; or (b) let
the user simply work it out manually without failing.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages moodle depends on:
ii  apache2-mpm-prefork [httpd]  2.2.22-3
ii  dbconfig-common  1.8.47+nmu1
ii  debconf [debconf-2.0]1.5.42
ii  libapache2-mod-php5  5.4.0-3
ii  libjs-yui2.8.2r1~squeeze-1
ii  mysql-client 5.1.61-2
ii  mysql-client-5.1 [mysql-client]  5.1.61-2
ii  php5-cli 5.4.0-3
ii  php5-curl5.4.0-3
ii  php5-gd  5.4.0-3
ii  php5-mysql   5.4.0-3
ii  ucf  3.0025+nmu2

Versions of packages moodle recommends:
pn  aspell none
pn  mimetexnone
pn  php5-ldap  none
pn  php5-xmlrpcnone
pn  postgresql | mysql-server  none

Versions of packages moodle suggests:
pn  clamav  none

-- Configuration Files:
/etc/cron.d/moodle changed:
*/15 * * * * www-data [ -f /usr/share/moodle/admin/cli/cron.php ]  
/usr/bin/php -f /usr/share/moodle/admin/cli/cron.php  /dev/null


-- debconf information:
  moodle/pgsql/method: unix socket
  moodle/dbconfig-remove:
* moodle/dbu_name: mudel
* moodle/db_server: mysql-server
* moodle/mysql/admin-user: root
  moodle/pgsql/manualconf:
* moodle/pgsql/authmethod-user: password
* moodle/db_host: bd1
* moodle/create_tables:
* moodle/database-type: mysql
  moodle/dbconfig-reinstall: false
* moodle/webserver: apache2
* moodle/dbconfig-install: true
* moodle/remote/newhost: bd1
  moodle/internal/reconfiguring: false
  moodle/notconfigured:
* moodle/db/app-user: mudel
* moodle/pgsql/authmethod-admin: ident
  moodle/internal/skip-preseed: false
* moodle/remote/port:
* moodle/mismatch:
  moodle/purge: false
  moodle/pgsql/admin-user: postgres
* moodle/www: http://localhost/moodle
* moodle/remote/host: bd1
* moodle/db/dbname: moodlefernandoborrajomillan
  moodle/install-error: abort
* moodle/dba_name: root
* moodle/mysql/method: tcp/ip
  moodle/pgsql/changeconf: false
  moodle/remove-error: abort
* moodle/dbconfig-upgrade: true
  moodle/pgsql/no-empty-passwords:
  moodle/upgrade-backup: true
  moodle/passwords-do-not-match:
  moodle/db/basepath:
  moodle/upgrade-error: abort
  moodle/missing-db-package-error: abort



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#609582: iscsitarget: init.d script should be able to start ietd with parameters

2011-01-10 Thread Alfredo Sola
Package: iscsitarget
Version: 1.4.20.2-1
Severity: normal

The ietd daemon has several command-line switches that can be used. Some are
even security-related, for example ietd's ability to bind only to certain
address can only be specified on the command line. This is important in boxes
that are connected to a SAN and a public network on different interfaces, as
would be often the case with servers running an iSCSI target.

The init.d script makes use of start-stop-daemon but does not pass any 
parameters.
It would seem adequate to pick the parameters from /etc/default, like in many
other daemons.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages iscsitarget depends on:
ii  libc6 2.11.2-7   Embedded GNU C Library: Shared lib
ii  lsb-base  3.2-23.1   Linux Standard Base 3.2 init scrip
ii  procps1:3.2.8-9  /proc file system utilities

Versions of packages iscsitarget recommends:
pn  iscsitarget-modulenone (no description available)

Versions of packages iscsitarget suggests:
ii  iscsitarget-dkms  1.4.20.2-1 iSCSI Enterprise Target kernel mod
pn  iscsitarget-sourcenone (no description available)

-- Configuration Files:
/etc/default/iscsitarget changed:
ISCSITARGET_ENABLE=true

/etc/iet/ietd.conf [Errno 13] Permission denied: u'/etc/iet/ietd.conf'

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#606005: netatalk: Internal Error after ad_open on sparc (server_child killed by signal 10)

2010-12-05 Thread Alfredo Sola
Package: netatalk
Version: 2.1.4-1
Severity: important
Tags: patch upstream

This happens with netatalk on sid and squeeze at least. There is a patch from 
upstream at:
http://sourceforge.net/tracker/index.php?func=detailaid=3110004group_id=8642atid=108642

After applying the patch to 2.1.4-1 source, things work as they should.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: sparc (sparc64)

Kernel: Linux 2.6.33
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages netatalk depends on:
ii  libc6   2.11.2-7 Embedded GNU C Library: Shared lib
ii  libcomerr2  1.41.12-2common error description library
ii  libcrack2   2.8.16-4 pro-active password checker librar
ii  libcups21.4.4-7  Common UNIX Printing System(tm) - 
ii  libdb4.84.8.30-2 Berkeley v4.8 Database Libraries [
ii  libgcrypt11 1.4.5-2  LGPL Crypto library - runtime libr
ii  libgnutls26 2.8.6-1  the GNU TLS library - runtime libr
ii  libgssapi-krb5-21.8.3+dfsg-2 MIT Kerberos runtime libraries - k
ii  libk5crypto31.8.3+dfsg-2 MIT Kerberos runtime libraries - C
ii  libkrb5-3   1.8.3+dfsg-2 MIT Kerberos runtime libraries
ii  libpam-modules  1.1.1-6.1Pluggable Authentication Modules f
ii  libpam0g1.1.1-6.1Pluggable Authentication Modules l
ii  libwrap07.6.q-19 Wietse Venema's TCP wrappers libra
ii  netbase 4.43 Basic TCP/IP networking system
ii  perl5.10.1-16Larry Wall's Practical Extraction 
ii  zlib1g  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages netatalk recommends:
ii  cracklib-runtime2.8.16-4 runtime support for password check
ii  db4.8-util  4.8.30-2 Berkeley v4.8 Database Utilities
pn  libpam-cracklib none   (no description available)
ii  lsof4.81.dfsg.1-1+b1 List open files
ii  procps  1:3.2.8-9/proc file system utilities
pn  rc  none   (no description available)

Versions of packages netatalk suggests:
ii  db4.2-util 4.2.52+dfsg-5 Berkeley v4.2 Database Utilities
pn  db4.7-util none(no description available)
pn  groff  none(no description available)
pn  quota  none(no description available)
pn  texlive-base-bin   none(no description available)

-- Configuration Files:
/etc/default/netatalk changed:
AFPD_MAX_CLIENTS=4
ATALK_NAME=zervio
ATALK_MAC_CHARSET='MAC_ROMAN'
ATALK_UNIX_CHARSET='LOCALE'
AFPD_UAMLIST=-U uams_dhx.so,uams_dhx2.so
AFPD_GUEST=nobody
ATALKD_RUN=no
PAPD_RUN=no
TIMELORD_RUN=no
A2BOOT_RUN=no
CNID_METAD_RUN=yes
AFPD_RUN=yes
ATALK_BGROUND=no
export ATALK_MAC_CHARSET
export ATALK_UNIX_CHARSET

/etc/netatalk/AppleVolumes.default changed:
:DEFAULT: options:upriv,usedots
~/ $u cnidscheme:dbd
/home/alfredo/TimeMachine TimeMachine allow:alfredo options:tm
/home/alicia/TimeMachine Time Machine allow:alicia options:tm

/etc/netatalk/afpd.conf changed:
- -tcp -uamlist uams_dhx2_pam.so -nosavepassword -advertise_ssh -timeout 1


-- no debconf information
diff --git a/libatalk/adouble/ad_attr.c b/libatalk/adouble/ad_attr.c
index ce1e1fa..8b3a320 100644
--- a/libatalk/adouble/ad_attr.c
+++ b/libatalk/adouble/ad_attr.c
@@ -60,7 +60,7 @@ int ad_getattr(const struct adouble *ad, u_int16_t *attr)
 /* - */
 int ad_setattr(const struct adouble *ad, const u_int16_t attribute)
 {
-u_int16_t *fflags;
+uint16_t fflags;
 
 /* we don't save open forks indicator */
 u_int16_t attr = attribute  ~htons(ATTRBIT_DOPEN | ATTRBIT_ROPEN);
@@ -78,22 +78,24 @@ int ad_setattr(const struct adouble *ad, const u_int16_t attribute)
 }
 #if AD_VERSION == AD_VERSION2
 else if (ad-ad_version == AD_VERSION2) {
-if (ad_getentryoff(ad, ADEID_AFPFILEI)) {
+if (ad_getentryoff(ad, ADEID_AFPFILEI)  ad_getentryoff(ad, ADEID_FINDERI)) {
 memcpy(ad_entry(ad, ADEID_AFPFILEI) + AFPFILEIOFF_ATTR, attr, sizeof(attr));
 
 /* Now set opaque flags in FinderInfo too */
-fflags = (u_int16_t *)ad_entry(ad, ADEID_FINDERI) + FINDERINFO_FRFLAGOFF;
+memcpy(fflags, ad_entry(ad, ADEID_FINDERI) + FINDERINFO_FRFLAGOFF, 2);
 if (attr  htons(ATTRBIT_INVISIBLE))
-*fflags |= htons(FINDERINFO_INVISIBLE);
+fflags |= htons(FINDERINFO_INVISIBLE);
 else
-*fflags = htons(~FINDERINFO_INVISIBLE);
+fflags = htons(~FINDERINFO_INVISIBLE);
 
 /* See above comment in ad_getattr()