accidently deleted user www

2003-06-22 Thread Andre
Hi

i accidently deleted the user www and now my apache doesnt start. is there a fast 
way to solve this problem?

im learning mysql/php and need to have my apache up and running as soon as possible, 
and i dont want to reinstall apache from ports, because if i do so i need to bring my 
friends here again to setup apache to work with mysqld :-)

dont answer man apache then i dont know the meaning of this mailinglist.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: accidently deleted user www

2003-06-22 Thread Chuck Swiger
Andre wrote:
i accidently deleted the user www and now my apache doesnt start.
 is there a fast way to solve this problem?

1) Change your apache's httpd.conf to run as nobody/nogroup.
2) Use vipw or adduser commands to recreate the www user.
3) Restore /etc's config files from backups.
But most importantly, however, is that you should figuring out how to undo a 
change before you make it, not afterwards

--
-Chuck
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: accidently deleted user www

2003-06-22 Thread Mikko Työläjärvi
On Mon, 23 Jun 2003, Andre wrote:

 Hi

 i accidently deleted the user www and now my apache doesnt
 start. is there a fast way to solve this problem?

Don't do that. :-)

If your machine has been running for a while there should be backups
in /var/backup, so you can do:

 # grep '^www:' /var/backups/master.passwd.bak  /etc/master.passwd
 # pwd_mkdb -p /etc/master.passwd

   $.02,
   /Mikko
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: accidently deleted user www

2003-06-22 Thread Jerry McAllister
 
 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,

 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]