Hi

Now I see the fault. Dpsyco do a su to the user and do some test as
that user.

When it su to the user sync it seem to do something wrong.

su sync -c "test /bin/sh"

This user sync seems to be a very special user as it behaves different
from any other user.

Maybe I should remove that user from the list... I'll think of a solution.

It is nothing cricical as everything should work as expected anyway,
but it can of course be a bit annoying to have that printed.

Regards,

// Ola

On Fri, Jul 07, 2006 at 11:48:54AM +0200, Raúl Sánchez Siles wrote:
>   Hello,
> 
> I attach the result of the 
> command /bin/bash -x /usr/sbin/update-dpsyco-users-sshaccess 
> where /usr/sbin/update-dpsyco-users-sshaccess is the file pointed 
> by /etc/dpsyco/cmd/R30users-sshaccess.
> 
> Search for sync in the file to find the error.
> 
> Regards,
> 
> El Miércoles, 5 de Julio de 2006 23:08, Ola Lundqvist escribió:
> > Hi
> >
> > On Thu, Jun 22, 2006 at 12:23:47PM +0200, Raúl Sánchez Siles wrote:
> > > Package: dpsyco-ssh
> > > Version: 1.0.29
> > > Severity: normal
> > >
> > > Everytime I use apt it consequently runs the /etc/apt/apt.conf.d/
> > > scripts which includes the /etc/apt/apt.conf.d/90dpsyco. This script run
> > > the update-dpsyco script which in turns calls the
> > > /etc/dpsyco/cmd/R30users-sshaccess
> > >
> > > If you run this latter on its own, you have this error:
> > > sync: opción inválida -- c
> > > Pruebe `sync --help' para más información.
> > >
> > > Which means:
> > > sync: invalid option -- c
> > > Try sync --help for more information.
> > >
> > > I can't see why this error related to sync appears when running such a
> > > script.
> >
> > Neither do I... I can not see any reference to a sync command anywhere
> > in the callchain for that script...
> >
> > That file is a symlink, what do it point to on your system?
> >
> > Regards,
> >
> > // Ola
> >
> > > -- System Information:
> > > Debian Release: testing/unstable
> > >   APT prefers testing
> > >   APT policy: (900, 'testing'), (100, 'unstable')
> > > Architecture: i386 (i686)
> > > Shell:  /bin/sh linked to /bin/bash
> > > Kernel: Linux 2.6.16-p4s
> > > Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
> > >
> > > Versions of packages dpsyco-ssh depends on:
> > > ii  dpsyco-lib                    1.0.29     Libraries for the debian
> > > packages ii  ssh                           1:4.2p1-8  Secure shell client
> > > and server (tr
> > >
> > > dpsyco-ssh recommends no packages.
> > >
> > > -- no debconf information
> 
> -- 
> Raúl Sánchez Siles
> Barracuda Systems S.L.
> C/ Luxemburgo, 4 - Local
> Pozuelo de Alarcón
> 28224 Madrid
> Tlf.: +34 91 351 11 20
> Fax: +34 91 352 54 44

> + . /etc/dpsyco/defaults.conf
> ++ BASEDIR=/usr/share/dpsyco
> ++ ETCDIR=/etc/dpsyco
> ++ USERSC=/etc/dpsyco/users.conf
> ++ GROUPSC=/etc/dpsyco/users.conf
> ++ USERSRC=/usr/share/dpsyco/users
> ++ GROUPSRC=/usr/share/dpsyco/groups
> ++ SKELSRC=/usr/share/dpsyco/skel
> ++ PATCHSRCS='/usr/share/dpsyco/patch /etc/dpsyco/patch'
> ++ CFENGINESRC=/usr/share/dpsyco/cfengine
> ++ USERSKELSRC=/usr/share/dpsyco/userskel
> ++ USERPATCHSRCS='/usr/share/dpsyco/userpatch /etc/dpsyco/userpatch'
> ++ BASE_UID=500
> ++ PWDF=/etc/passwd
> ++ GRPF=/etc/group
> ++ SHDF=/etc/shadow
> ++ SMBF=/etc/samba/smbpasswd
> ++ ADDUSERCFG=/etc/adduser.conf
> ++ . /etc/adduser.conf
> +++ DSHELL=/bin/bash
> +++ DHOME=/home
> +++ GROUPHOMES=no
> +++ LETTERHOMES=no
> +++ SKEL=/etc/skel
> +++ FIRST_SYSTEM_UID=100
> +++ LAST_SYSTEM_UID=499
> +++ FIRST_SYSTEM_GID=100
> +++ LAST_SYSTEM_GID=999
> +++ FIRST_UID=1000
> +++ LAST_UID=29999
> +++ FIRST_GID=1000
> +++ LAST_GID=29999
> +++ USERGROUPS=yes
> +++ USERS_GID=100
> +++ DIR_MODE=0755
> +++ SETGID_HOME=no
> +++ QUOTAUSER=
> ++ DPADDUSERCFG=/etc/dpsyco/adduser.conf
> ++ '[' -f /etc/dpsyco/adduser.conf ']'
> ++ . /etc/dpsyco/adduser.conf
> +++ DSHELL=/bin/bash
> +++ DHOME=/home
> +++ GROUPHOMES=no
> +++ LETTERHOMES=no
> +++ SKEL=/etc/skel
> +++ FIRST_SYSTEM_UID=100
> +++ LAST_SYSTEM_UID=499
> +++ FIRST_SYSTEM_GID=100
> +++ LAST_SYSTEM_GID=999
> +++ FIRST_UID=500
> +++ LAST_UID=999
> +++ FIRST_GID=1000
> +++ LAST_GID=29999
> +++ USERGROUPS=yes
> +++ USERS_GID=100
> +++ DIR_MODE=0755
> +++ SETGID_HOME=no
> +++ QUOTAUSER=
> +++ UID_MATCH='[5-9][0-9][0-9]'
> +++ GID_MATCH='[3-4][0-9][0-9]'
> ++ ONREMOVE=mv
> ++ SUDOERSF=/etc/sudoers
> ++ SUDOSRC=/etc/dpsyco/sudoers
> ++ CHECKNFS=yes
> + TESTNFS='/ /home'
> + . /usr/share/dpsyco/checknfs.test
> ++ '[' yes = yes -o yes = '' -o yes = 1 -o yes = y -o yes = Y -o yes = YES ']'
> ++ for TEST in '$TESTNFS'
> ++ mount
> ++ grep 
> 'on[[:space:]][[:space:]]*/[[:space:]].*type[[:space:]][[:space:]]*nfs[[:space:]]'
> ++ for TEST in '$TESTNFS'
> ++ mount
> ++ grep 
> 'on[[:space:]][[:space:]]*/home[[:space:]].*type[[:space:]][[:space:]]*nfs[[:space:]]'
> + IFS=:
> + cat /etc/passwd
> + read user junk uid gid gecos home shell
> + '[' root '!=' '' ']'
> + '[' root '!=' + ']'
> + '[' 0 '!=' '' ']'
> + '[' 0 -le 999 ']'
> + su root -c 'test -w /root'
> + find '/usr/share/dpsyco/users/*/root' -printf ''
> + read user junk uid gid gecos home shell
> + '[' daemon '!=' '' ']'
> + '[' daemon '!=' + ']'
> + '[' 1 '!=' '' ']'
> + '[' 1 -le 999 ']'
> + su daemon -c 'test -w /usr/sbin'
> + read user junk uid gid gecos home shell
> + '[' bin '!=' '' ']'
> + '[' bin '!=' + ']'
> + '[' 2 '!=' '' ']'
> + '[' 2 -le 999 ']'
> + su bin -c 'test -w /bin'
> + read user junk uid gid gecos home shell
> + '[' sys '!=' '' ']'
> + '[' sys '!=' + ']'
> + '[' 3 '!=' '' ']'
> + '[' 3 -le 999 ']'
> + su sys -c 'test -w /dev'
> + read user junk uid gid gecos home shell
> + '[' sync '!=' '' ']'
> + '[' sync '!=' + ']'
> + '[' 4 '!=' '' ']'
> + '[' 4 -le 999 ']'
> + su sync -c 'test -w /bin'
> sync: opción inválida -- c
> Pruebe `sync --help' para más información.
> + read user junk uid gid gecos home shell
> + '[' games '!=' '' ']'
> + '[' games '!=' + ']'
> + '[' 5 '!=' '' ']'
> + '[' 5 -le 999 ']'
> + su games -c 'test -w /usr/games'
> + read user junk uid gid gecos home shell
> + '[' man '!=' '' ']'
> + '[' man '!=' + ']'
> + '[' 6 '!=' '' ']'
> + '[' 6 -le 999 ']'
> + su man -c 'test -w /var/cache/man'
> + find '/usr/share/dpsyco/users/*/man' -printf ''
> + read user junk uid gid gecos home shell
> + '[' lp '!=' '' ']'
> + '[' lp '!=' + ']'
> + '[' 7 '!=' '' ']'
> + '[' 7 -le 999 ']'
> + su lp -c 'test -w /var/spool/lpd'
> + read user junk uid gid gecos home shell
> + '[' mail '!=' '' ']'
> + '[' mail '!=' + ']'
> + '[' 8 '!=' '' ']'
> + '[' 8 -le 999 ']'
> + su mail -c 'test -w /var/mail'
> + find '/usr/share/dpsyco/users/*/mail' -printf ''
> + read user junk uid gid gecos home shell
> + '[' news '!=' '' ']'
> + '[' news '!=' + ']'
> + '[' 9 '!=' '' ']'
> + '[' 9 -le 999 ']'
> + su news -c 'test -w /var/spool/news'
> + read user junk uid gid gecos home shell
> + '[' uucp '!=' '' ']'
> + '[' uucp '!=' + ']'
> + '[' 10 '!=' '' ']'
> + '[' 10 -le 999 ']'
> + su uucp -c 'test -w /var/spool/uucp'
> + read user junk uid gid gecos home shell
> + '[' proxy '!=' '' ']'
> + '[' proxy '!=' + ']'
> + '[' 13 '!=' '' ']'
> + '[' 13 -le 999 ']'
> + su proxy -c 'test -w /bin'
> + read user junk uid gid gecos home shell
> + '[' www-data '!=' '' ']'
> + '[' www-data '!=' + ']'
> + '[' 33 '!=' '' ']'
> + '[' 33 -le 999 ']'
> + su www-data -c 'test -w /var/www'
> + read user junk uid gid gecos home shell
> + '[' backup '!=' '' ']'
> + '[' backup '!=' + ']'
> + '[' 34 '!=' '' ']'
> + '[' 34 -le 999 ']'
> + su backup -c 'test -w /opt/backups'
> + find '/usr/share/dpsyco/users/*/backup' -printf ''
> + read user junk uid gid gecos home shell
> + '[' list '!=' '' ']'
> + '[' list '!=' + ']'
> + '[' 38 '!=' '' ']'
> + '[' 38 -le 999 ']'
> + su list -c 'test -w /var/list'
> + read user junk uid gid gecos home shell
> + '[' irc '!=' '' ']'
> + '[' irc '!=' + ']'
> + '[' 39 '!=' '' ']'
> + '[' 39 -le 999 ']'
> + su irc -c 'test -w /var/run/ircd'
> + read user junk uid gid gecos home shell
> + '[' gnats '!=' '' ']'
> + '[' gnats '!=' + ']'
> + '[' 41 '!=' '' ']'
> + '[' 41 -le 999 ']'
> + su gnats -c 'test -w /var/lib/gnats'
> + read user junk uid gid gecos home shell
> + '[' nobody '!=' '' ']'
> + '[' nobody '!=' + ']'
> + '[' 65534 '!=' '' ']'
> + '[' 65534 -le 999 ']'
> + read user junk uid gid gecos home shell
> + '[' Debian-exim '!=' '' ']'
> + '[' Debian-exim '!=' + ']'
> + '[' 102 '!=' '' ']'
> + '[' 102 -le 999 ']'
> + su Debian-exim -c 'test -w /var/spool/exim4'
> + read user junk uid gid gecos home shell
> + '[' rasasi '!=' '' ']'
> + '[' rasasi '!=' + ']'
> + '[' 1000 '!=' '' ']'
> + '[' 1000 -le 999 ']'
> + read user junk uid gid gecos home shell
> + '[' identd '!=' '' ']'
> + '[' identd '!=' + ']'
> + '[' 100 '!=' '' ']'
> + '[' 100 -le 999 ']'
> + su identd -c 'test -w /var/run/identd'
> + read user junk uid gid gecos home shell
> + '[' sshd '!=' '' ']'
> + '[' sshd '!=' + ']'
> + '[' 101 '!=' '' ']'
> + '[' 101 -le 999 ']'
> + su sshd -c 'test -w /var/run/sshd'
> + read user junk uid gid gecos home shell
> + '[' hplip '!=' '' ']'
> + '[' hplip '!=' + ']'
> + '[' 103 '!=' '' ']'
> + '[' 103 -le 999 ']'
> + su hplip -c 'test -w /var/run/hplip'
> + read user junk uid gid gecos home shell
> + '[' messagebus '!=' '' ']'
> + '[' messagebus '!=' + ']'
> + '[' 104 '!=' '' ']'
> + '[' 104 -le 999 ']'
> + su messagebus -c 'test -w /var/run/dbus'
> + read user junk uid gid gecos home shell
> + '[' gkrellmd '!=' '' ']'
> + '[' gkrellmd '!=' + ']'
> + '[' 105 '!=' '' ']'
> + '[' 105 -le 999 ']'
> + su gkrellmd -c 'test -w /var/run'
> + read user junk uid gid gecos home shell
> + '[' hal '!=' '' ']'
> + '[' hal '!=' + ']'
> + '[' 106 '!=' '' ']'
> + '[' 106 -le 999 ']'
> + su hal -c 'test -w /var/run/hal'
> + read user junk uid gid gecos home shell
> + '[' Debian-console-log '!=' '' ']'
> + '[' Debian-console-log '!=' + ']'
> + '[' 108 '!=' '' ']'
> + '[' 108 -le 999 ']'
> + su Debian-console-log -c 'test -w /var/run/console-log'
> + read user junk uid gid gecos home shell
> + '[' saned '!=' '' ']'
> + '[' saned '!=' + ']'
> + '[' 110 '!=' '' ']'
> + '[' 110 -le 999 ']'
> + su saned -c 'test -w /home/saned'
> + read user junk uid gid gecos home shell
> + '[' dictd '!=' '' ']'
> + '[' dictd '!=' + ']'
> + '[' 111 '!=' '' ']'
> + '[' 111 -le 999 ']'
> + su dictd -c 'test -w /var/lib/dictd'
> + read user junk uid gid gecos home shell
> + '[' avahi '!=' '' ']'
> + '[' avahi '!=' + ']'
> + '[' 112 '!=' '' ']'
> + '[' 112 -le 999 ']'
> + su avahi -c 'test -w /var/run/avahi-daemon'
> + read user junk uid gid gecos home shell
> + '[' miguel '!=' '' ']'
> + '[' miguel '!=' + ']'
> + '[' 1007 '!=' '' ']'
> + '[' 1007 -le 999 ']'
> + read user junk uid gid gecos home shell
> + '[' svn '!=' '' ']'
> + '[' svn '!=' + ']'
> + '[' 56 '!=' '' ']'
> + '[' 56 -le 999 ']'
> + su svn -c 'test -w /home/svn'
> + read user junk uid gid gecos home shell
> + '[' gerar '!=' '' ']'
> + '[' gerar '!=' + ']'
> + '[' 1001 '!=' '' ']'
> + '[' 1001 -le 999 ']'
> + read user junk uid gid gecos home shell
> + '[' bacula '!=' '' ']'
> + '[' bacula '!=' + ']'
> + '[' 107 '!=' '' ']'
> + '[' 107 -le 999 ']'
> + su bacula -c 'test -w /var/lib/bacula'
> + read user junk uid gid gecos home shell
> + '[' devel '!=' '' ']'
> + '[' devel '!=' + ']'
> + '[' 1002 '!=' '' ']'
> + '[' 1002 -le 999 ']'
> + read user junk uid gid gecos home shell
> + '[' statd '!=' '' ']'
> + '[' statd '!=' + ']'
> + '[' 109 '!=' '' ']'
> + '[' 109 -le 999 ']'
> + su statd -c 'test -w /var/lib/nfs'
> + read user junk uid gid gecos home shell
> + '[' proftpd '!=' '' ']'
> + '[' proftpd '!=' + ']'
> + '[' 113 '!=' '' ']'
> + '[' 113 -le 999 ']'
> + su proftpd -c 'test -w /var/run/proftpd'
> + read user junk uid gid gecos home shell
> + '[' ftp '!=' '' ']'
> + '[' ftp '!=' + ']'
> + '[' 114 '!=' '' ']'
> + '[' 114 -le 999 ']'
> + su ftp -c 'test -w /home/ftp'
> + read user junk uid gid gecos home shell




-- 
 --------------------- Ola Lundqvist ---------------------------
/  [EMAIL PROTECTED]                     Annebergsslingan 37      \
|  [EMAIL PROTECTED]                 654 65 KARLSTAD          |
|  +46 (0)54-10 14 30                  +46 (0)70-332 1551       |
|  http://www.opal.dhs.org             UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to