Koozali.org: home of the SME Server

HELP - User www deleted

Offline Gert

  • *****
  • 208
  • +0/-0
    • http://www.huge.co.za
HELP - User www deleted
« 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.

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: HELP - User www deleted
« Reply #1 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.

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: HELP - User www deleted
« Reply #2 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.)  :)

Offline Gert

  • *****
  • 208
  • +0/-0
    • http://www.huge.co.za
Re: HELP - User www deleted
« Reply #3 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."

Offline m

  • *****
  • 276
  • +0/-0
  • Peet
Re: HELP - User www deleted
« Reply #4 on: May 22, 2008, 03:53:38 PM »
Simply add a new www user:
Code: [Select]
useradd -g www www

Offline Gert

  • *****
  • 208
  • +0/-0
    • http://www.huge.co.za
Re: HELP - User www deleted
« Reply #5 on: May 22, 2008, 03:56:19 PM »
what about the uid?

Offline m

  • *****
  • 276
  • +0/-0
  • Peet
Re: HELP - User www deleted
« Reply #6 on: May 22, 2008, 03:58:44 PM »
what about the uid?

the next available will be taken

Offline Gert

  • *****
  • 208
  • +0/-0
    • http://www.huge.co.za
Re: HELP - User www deleted
« Reply #7 on: May 22, 2008, 03:59:34 PM »
i know. but wount i have file permision problems then?

Offline Gert

  • *****
  • 208
  • +0/-0
    • http://www.huge.co.za
Re: HELP - User www deleted
« Reply #8 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

Offline m

  • *****
  • 276
  • +0/-0
  • Peet
Re: HELP - User www deleted
« Reply #9 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)

Offline byte

  • *
  • 2,183
  • +2/-0
Re: HELP - User www deleted
« Reply #10 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.

--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline byte

  • *
  • 2,183
  • +2/-0
Re: HELP - User www deleted
« Reply #11 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" ?
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline Gert

  • *****
  • 208
  • +0/-0
    • http://www.huge.co.za
Re: HELP - User www deleted
« Reply #12 on: May 29, 2008, 11:20:45 PM »
The user was created with lat

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: HELP - User www deleted
« Reply #13 on: May 30, 2008, 12:24:44 AM »
The user was created with lat

Then there's a bug in lat.

Offline Gert

  • *****
  • 208
  • +0/-0
    • http://www.huge.co.za
Re: HELP - User www deleted
« Reply #14 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.