LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-04-2007, 08:08 AM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 51
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 ?
 
Old 03-04-2007, 08:54 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
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:

Last edited by stress_junkie; 03-04-2007 at 08:58 AM.
 
Old 03-04-2007, 09:15 AM   #3
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
it seems, I don't have man user or group:
Code:
# grep man /etc/passwd
# grep man /etc/group
should I create ?
 
Old 03-04-2007, 10:11 AM   #4
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
I would try the following:
Code:
dpkg-reconfigure -phigh man-db
 
Old 03-06-2007, 04:03 AM   #5
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
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.

Last edited by cccc; 03-06-2007 at 04:07 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fake start-stop-daemon, messed up install tripmix Linux - Software 2 02-23-2007 11:11 PM
Debian "Start-Stop-Daemon" Notwerk Linux - Software 3 12-19-2005 03:16 AM
start-stop-daemon problems after process crash emarti20 Linux - Software 3 04-15-2005 08:54 AM
Logging with Start stop daemon bigsness Linux - General 0 01-19-2005 03:25 PM
Man I need to stop playing games... Whitehat General 6 10-12-2003 01:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration