LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   start-stop-daemon: user `man' not found (https://www.linuxquestions.org/questions/debian-26/start-stop-daemon-user-%60man-not-found-534455/)

cccc 03-04-2007 08:08 AM

start-stop-daemon: user `man' not found
 
hi

I have debian sarge stable installed and get this error:
Code:

/etc/cron.daily/man-db:
chown: `man': invalid user
start-stop-daemon: user `man' not found

run-parts: /etc/cron.daily/man-db exited with return code 2

# vi /etc/cron.daily/man-db
Code:

#!/bin/sh
#
# man-db cron daily

set -e

if ! [ -d /var/cache/man ]; then
    # Recover from deletion, per FHS.
    mkdir -p /var/cache/man
    chown man:root /var/cache/man
    chmod 2755 /var/cache/man
fi

# expunge old catman pages which have not been read in a week
if [ -d /var/cache/man ]; then
  cd /
  if ! dpkg-statoverride --list /var/cache/man >/dev/null 2>&1; then
    chown -R man /var/cache/man || true                # just in case
  fi
  start-stop-daemon --start --pidfile /dev/null --startas /bin/sh \
        --oknodo --chuid man -- -c \
        "find /var/cache/man -type f -name '*.gz' -atime +6 -print0 | \
        xargs -r0 rm -f"
fi

# regenerate man database
if [ -x /usr/bin/mandb ]; then
    # --pidfile /dev/null so it always starts; mandb isn't really a daemon,
    # but we want to start it like one.
    start-stop-daemon --start --pidfile /dev/null \
                      --startas /usr/bin/mandb --oknodo --chuid man \
                      -- --no-purge --quiet
fi

exit 0

knows someone howto solve this problem ?

stress_junkie 03-04-2007 08:54 AM

I'm not sure about Debian but in general Linux systems have a user account named man and a user group named man. Use the grep command to search the /etc/passwd file for the user account record for the man account.
Code:

grep man /etc/passwd
man:x:13:62:Manual pages viewer:/var/cache/man:/bin/bash

While your doing this you may as well check to see that you have a user group called man.
Code:

grep man /etc/group
man:x:62:


cccc 03-04-2007 09:15 AM

it seems, I don't have man user or group:
Code:

# grep man /etc/passwd
# grep man /etc/group

should I create ?

cgjones 03-04-2007 10:11 AM

I would try the following:
Code:

dpkg-reconfigure -phigh man-db

cccc 03-06-2007 04:03 AM

I don't know if this is a correct way, but after:
Code:

# useradd -d /var/cache/man -s /bin/sh man
it seems to be solved.


All times are GMT -5. The time now is 12:48 PM.