Webalizer root permissions error

labrocca

Verified User
Joined
Mar 12, 2006
Messages
138
http://www.directadmin.com/features.php?id=286

I believe my problem is related to that.

I get this error from directadmin when viewing my stats:

error setting privileges

Details

still has root privilege

I am running the latest version of Directadmin 3.15 I believe. I tried to manually chmod, chown, and chgrp the folders and files but so far no combination has been successful.

Please advise and if you need access please PM me (staff only of course).

Thank you.
 
I was hoping I posted this in the correct place to get an actual response.

Anyone???
 
Hello,

That's actually not an error relating to the stats folder.
It's an error relating to the setgid and setuid functions called just after the chroot of the process. You'll get that error if getuid or getgid return a value of 0 (root).

So.. my question would be, is the current user you're logged into DA with manually set to use a UID or GID of 0 in your /etc/passwd or /etc/group?

That's about my only explanation for what's going on. If the user didn't exist, then there would be an error relating to no user.. and you wouldn't be able to login... but the getUID or getGID functions are in fact returning a value of 0 .. hence I'm guessing something was manually set to root which would be a security risk, in my opinion. Check your /etc/passwd and /etc/group files.

John
 
Hello,

That's actually not an error relating to the stats folder.
It's an error relating to the setgid and setuid functions called just after the chroot of the process. You'll get that error if getuid or getgid return a value of 0 (root).

So.. my question would be, is the current user you're logged into DA with manually set to use a UID or GID of 0 in your /etc/passwd or /etc/group?

That's about my only explanation for what's going on. If the user didn't exist, then there would be an error relating to no user.. and you wouldn't be able to login... but the getUID or getGID functions are in fact returning a value of 0 .. hence I'm guessing something was manually set to root which would be a security risk, in my opinion. Check your /etc/passwd and /etc/group files.

John

Admin is set with GID of 0 since I need to be part of wheel group to su into root from SSH.

Hmm...should I create a new user (daadmin?)then for my directadmin access? How would I do that?
 
The way I'd do it is I'd set a new login as a member of wheel to use for ssh.

Jeff
 
That depends on your OS distribution, and what it sets up; I don't believe DirectAdmin even cares.

On Red Hat, CentOS, and Fedora boxes, the group and the username are the same; when each system user is created a group of the same name is also created. Whether the actual GID is the same or not depends on how many GIDs have been created before the username admin is created.

On all our servers the admin UID is 501 because we build the admin account before we install DirectAdmin. The GID is either 501 or 502.

Jeff
 
FreeBSD 6.3

And I did have the admin account setup before installation (I think?).

I will play around with the settings. See if I can't get this fixed...thanks for assistance as to why. I would have never guessed the guid being 0 would effect directadmin in such a way.
 
As John pointed out, it's not really a DirectAdmin issue; it's related to the fact that setuid or setgid are trying to change from root to root.

Jeff
 
I have the same problem, but i didn't manually change the gid or uid. Last time i checked the stats (a couple of months ago) i could view them.. (it's my personal account, not the admin account) nothing special happend between the last viewtime and today :confused:
 
Back
Top