Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jun 2003 20:48:35 -0400 (EDT)
From:      Jerry McAllister <jerrymc@clunix.cl.msu.edu>
To:        andre@krang.net (Andre)
Cc:        freebsd-questions@freebsd.org
Subject:   Re: accidently deleted user "www"
Message-ID:  <200306230048.h5N0mZPu028353@clunix.cl.msu.edu>
In-Reply-To: <003d01c33919$39ef5e20$0f00a8c0@yz123nn123zm128> from "Andre" at Jun 23, 2003 01:51:39 AM

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> Hi
> 
> i accidently deleted the user "www" and now my apache doesnt start. is there 
> a fast way to solve this problem?
> 

It seems like there are two possibilities of what you mean.
One is just that you deleted the id www out of your passwd file.
The other is that you really deleted user www which had lots of 
necessary files.

The first is easy.  Just make yourself root and do a 'vipw'

Add in an entry for the user www.   You will need to have an idea of
what the UID, GID, home directory and shel should be.    But, armed
with that you can just copy one of the nearby lines and edit it with
the appropriate info for www and :wq out and voila, it will be there.

Note, the UID and GID must be correct, not just the id name.
I have them as 80:80 on some other machines.
The home directory might also have to be correct, depending on
how you have Apache set up/configured.   Ours is /nonexistant since
we really don't use that directory.  The shell probably only
matters if you log in as www for some things.   Ours is /bin/nologin.

If you had files under user www, then you are going to either have 
to find some backups of recreate them.

Good lick,

> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306230048.h5N0mZPu028353>