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
-
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.
-
Gert,
I don't know how to fix your problem, however, on my working server 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.
-
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.) :)
-
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."
-
Simply add a new www user:
useradd -g www www
-
what about the uid?
-
what about the uid?
the next available will be taken
-
i know. but wount i have file permision problems then?
-
Seems that the new uid works fine.
I did: "useradd -g www www"
and now it works fine again.
thank you
-
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)
-
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.
-
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" ?
-
The user was created with lat
-
The user was created with lat
Then there's a bug in lat.
-
I tested it now. Lat was unable to create a user called "www", but was able to delete it.
[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.
-
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?
-
I was doing some tests and created the users qqq, www, eee, rrr, ttt and yyy. then deleted them again.