Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: Gert on May 22, 2008, 03:01:21 PM

Title: HELP - User www deleted
Post by: Gert on May 22, 2008, 03:01:21 PM
Hi

httpd wont start. It complaines about "httpd: bad user name www"

I created a random user by the name of "www" (i wasnt thinking) and then deleted it.

How can i recreate the www user?

"db accounts show www" shows the following:

www=user-deleted
    City=
    Company=
    Dept=
    EmailForward=local
    FirstName=FTP
    ForwardAddress=
    Gid=5025
    LastName=qqq
    PasswordSet=yes
    Phone=
    Street=
    Uid=5026
    VPNClientAccess=no

PLEASE HELP.
Title: Re: HELP - User www deleted
Post by: mercyh on May 22, 2008, 03:48:41 PM
Gert,

I don't know how to fix your problem, however, on my working server
Code: [Select]
db accounts show does not return a www user at all.

Please do not act on this suggestion until somebody else with more knowledge weighs in

Possibly deleting the www db key would help.
Title: Re: HELP - User www deleted
Post by: mercyh on May 22, 2008, 03:50:30 PM
The quickest way to catch the eye of a Dev is to post it out on the bugtracker. (I know it is not exactly a bug but you surely are not the first that has pulled this trick.)  :)
Title: Re: HELP - User www deleted
Post by: Gert on May 22, 2008, 03:52:10 PM
Thank you

Yes I know its not supposed to be there. It only shows user accounts created by SME Server Manager. At leat i can get the UID now.

I tried the following: "useradd -u 5025 www"
and get the repsone: "useradd: group www exists - if you want to add this user to that group, use -g."
Title: Re: HELP - User www deleted
Post by: m on May 22, 2008, 03:53:38 PM
Simply add a new www user:
Code: [Select]
useradd -g www www
Title: Re: HELP - User www deleted
Post by: Gert on May 22, 2008, 03:56:19 PM
what about the uid?
Title: Re: HELP - User www deleted
Post by: m on May 22, 2008, 03:58:44 PM
what about the uid?

the next available will be taken
Title: Re: HELP - User www deleted
Post by: Gert on May 22, 2008, 03:59:34 PM
i know. but wount i have file permision problems then?
Title: Re: HELP - User www deleted
Post by: Gert on May 22, 2008, 04:09:13 PM
Seems that the new uid works fine.

I did: "useradd -g www www"

and now it works fine again.
thank you
Title: Re: HELP - User www deleted
Post by: m on May 22, 2008, 04:10:21 PM
the original uid was < 5000, usually 102. sme users have uids >= 5000
Figure out the original uid either from /etc/passwd- or from /etc/passwd from your latest backup. Or use the groupid of www as the uid. (the usually should be identical  on SME)
Title: Re: HELP - User www deleted
Post by: byte on May 22, 2008, 07:30:45 PM
The quickest way to catch the eye of a Dev is to post it out on the bugtracker. (I know it is not exactly a bug but you surely are not the first that has pulled this trick.)  :)

Maybe the quickest but we would re-route (marking bug INVALID) all support questions back to these forums as it was something the sys admin done rather than a potential bug within the SME Server.

Title: Re: HELP - User www deleted
Post by: byte on May 22, 2008, 10:00:50 PM
I created a random user by the name of "www" (i wasnt thinking) and then deleted it.

Please explain how you created the user name "www" ?
Title: Re: HELP - User www deleted
Post by: Gert on May 29, 2008, 11:20:45 PM
The user was created with lat
Title: Re: HELP - User www deleted
Post by: CharlieBrady on May 30, 2008, 12:24:44 AM
The user was created with lat

Then there's a bug in lat.
Title: Re: HELP - User www deleted
Post by: Gert on May 30, 2008, 12:36:55 AM
I tested it now. Lat was unable to create a user called "www", but was able to delete it.

Code: [Select]
[root@terraserv temp]# lat-users -a -c="www|www|.|www"
Creating user account for www (Uid:5003).
An error occurred while creating account 'www'.
[root@terraserv temp]# lat-users -d -c="www"
Do you want to delete user 'www'?
All files belonging to this user account will be deleted! [yes/NO/all] yes
Deleting user account 'www'.
The group '*' does not exist on this server.

So to correct my first post: I must have just deleted the www user with lat.
Title: Re: HELP - User www deleted
Post by: CharlieBrady on May 30, 2008, 05:33:07 AM
So to correct my first post: I must have just deleted the www user with lat.

That's also a bug. Please report via the Bug Tracker. Thanks.

BTW, why did you delete the www user?
Title: Re: HELP - User www deleted
Post by: Gert on May 30, 2008, 08:28:24 AM
I was doing some tests and created the users qqq, www, eee, rrr, ttt and yyy. then deleted them again.