Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 07:26 am EST
Geeklog Forums
Admin user deleted
Status: offline
thegreedyturtle
Forum User
Newbie
Registered: 04/06/05
Posts: 2
In a classic case of nincompoopery, I created my own username on geeklog, gave it all permissions, then deleted the Admin and Moderator accounts.
Now, I can create another account named 'Admin' but it seems that some of the scripts use the uid instead of the actual name, specifically in the upper right corner of my site where it says Contact.
There's probably a couple of ways to fix it, the best way would probably be to re-create user number 2, and name it Admin, but other options I'm willing to do are to change the 'contact' uid to a different one, or to just get rid of the offending 'Contact' altogether. (I kinda wanted to do that anyway, but I'd rather do both, since there may be other places that tries to contact uid=2.)
I should also mention that I can't just login to mySQL and fiddle around. (as far as I know - I don't know much about mySQL, but I do know that when I putty into my buddies server it gives me an access denied for user message)
My site is at http://www.evilstudio.com/thegreedyturtle
I suppose I could just recreate the whole environment, but to be honest I'd like the learning experience.
Now, I can create another account named 'Admin' but it seems that some of the scripts use the uid instead of the actual name, specifically in the upper right corner of my site where it says Contact.
There's probably a couple of ways to fix it, the best way would probably be to re-create user number 2, and name it Admin, but other options I'm willing to do are to change the 'contact' uid to a different one, or to just get rid of the offending 'Contact' altogether. (I kinda wanted to do that anyway, but I'd rather do both, since there may be other places that tries to contact uid=2.)
I should also mention that I can't just login to mySQL and fiddle around. (as far as I know - I don't know much about mySQL, but I do know that when I putty into my buddies server it gives me an access denied for user message)
My site is at http://www.evilstudio.com/thegreedyturtle
I suppose I could just recreate the whole environment, but to be honest I'd like the learning experience.
7
14
Quote
Status: offline
Robin
Forum User
Full Member
Registered: 02/15/02
Posts: 725
Quote by thegreedyturtle:There's probably a couple of ways to fix it, the best way would probably be to re-create user number 2, and name it Admin, but other options I'm willing to do are to change the 'contact' uid to a different one, or to just get rid of the offending 'Contact' altogether.
All you need to do is to edit the header.thtml of the theme you're useing and remove the "offending Contact" entry. BTW why is it offending to you .
It's a legacy theme and it was hardcoded there.
Geeklog Polish Support Team
7
10
Quote
Status: offline
thegreedyturtle
Forum User
Newbie
Registered: 04/06/05
Posts: 2
Sorry, just a figure of speech! There's nothing offensive about it, I just don't personally happen to like that specific location of where it's displayed. I guess I tend to like cleaner headers...
Thanks for your help!
Update: This tip has pretty much solved my 'problem' I changed the uid mailer to my account, and after a bit I commented out the Home / Contact thingy at the top. I still wish that I could recreate the user with an id of 2, but I don't think it'll be an issue really.
Thanks for your help!
Update: This tip has pretty much solved my 'problem' I changed the uid mailer to my account, and after a bit I commented out the Home / Contact thingy at the top. I still wish that I could recreate the user with an id of 2, but I don't think it'll be an issue really.
7
8
Quote
Status: Banned
machinari
Forum User
Full Member
Registered: 03/22/04
Posts: 1512
It will be an issue when you begin to administer plugins.. many of them rely on uid=2 rather than checking for root priviledges.
6
9
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by machinari: It will be an issue when you begin to administer plugins.. many of them rely on uid=2 rather than checking for root priviledges.
Really? They shouldn't do that. What if I made that user a normal user? Any examples for plugins that do that?
Geeklog itself doesn't require a user with uid=2 or a user named "admin". It only requires at least one user with "Root" permissions.
bye, Dirk
10
9
Quote
mach
Anonymous
WHoop! I spoke before I thought.. I was thinking of denying page access and anon users rather than anything to do with admin.
8
9
Quote
Status: offline
beewee
Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
You could play it safe and change the uid of your new Admin to 2 with PHPMyAdmin, or will that make it even more dangerous (that will depend of the activities made by your new Admin)...
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
8
9
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by beewee: You could play it safe and change the uid of your new Admin to 2 with PHPMyAdmin
No, don't do that!
The uid must be kept in sync with the information stored in other tables, e.g. gl_group_assignments.
As I said, you don't need a user with uid=2 and any plugin that may require that is buggy and should be fixed.
bye, Dirk
9
10
Quote
All times are EST. The time is now 07:26 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content