root user.
-
- Posts: 1250
- Joined: 2014/05/21 20:16:00
- Location: Central New York, USA
Re: root user.
Apologies - I'd never considered anyone would ever do that.
Remember - importing/building packages will likely "byte you in the butt" come update time, long after you'd forgotten you did that! Use repos whenever possible.
Re: root user.
Another user configured this server and I want to know why this happening.
Re: root user.
Please carefully reread jlehtone's post.
Re: root user.
Because they did it wrong. You should never add another user with a duplicate uid - you have two of them that are uid==0 which is root. One of your root users is called 'testuser'.
Do not do this. Set up a normal user and configure sudo to allow its access to the things it actually needs to do.
Do not do this. Set up a normal user and configure sudo to allow its access to the things it actually needs to do.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
Re: root user.
Thanks.TrevorH wrote: ↑2019/11/09 13:32:22Because they did it wrong. You should never add another user with a duplicate uid - you have two of them that are uid==0 which is root. One of your root users is called 'testuser'.
Do not do this. Set up a normal user and configure sudo to allow its access to the things it actually needs to do.
How can I convert "testuser" to the normal?
Re: root user.
Don't know if it's recommended, but you could remove "testuser"
from /etc/passwd+shadow and then create a new user.
Edit: Also look at the userdel command (NB: do not use the "-r"
option).
Wonder how many other questionable "surprises" are left in your
system: You may be better off with a complete reinstall. If so,
use CentOS 7 or 8, as 6 only has one year support left.
from /etc/passwd+shadow and then create a new user.
Edit: Also look at the userdel command (NB: do not use the "-r"
option).
Wonder how many other questionable "surprises" are left in your
system: You may be better off with a complete reinstall. If so,
use CentOS 7 or 8, as 6 only has one year support left.
-
- Posts: 1250
- Joined: 2014/05/21 20:16:00
- Location: Central New York, USA
Re: root user.
So - testuser was logging in and had no restrictions, and everything "he" did got logged as root? (I don't know but it seems that way to me) - I'd be clean installing, as tunk suggests, if it were a machine for which I was responsible.
Remember - importing/building packages will likely "byte you in the butt" come update time, long after you'd forgotten you did that! Use repos whenever possible.
Re: root user.
He had it set up with two users with the same iud so they are the same user by different names.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
-
- Posts: 1250
- Joined: 2014/05/21 20:16:00
- Location: Central New York, USA
Re: root user.
bends the brain as to how that might have worked; I'll need to think more about this. I always just 'accepted' the group and passwd files without actually knowing their actual use/purpose(s).
And, testuser in this case was 500 (initial user during install back then) in 'group', but 0:0 in 'passwd'. Clearly, I need to lookup/study.
And, testuser in this case was 500 (initial user during install back then) in 'group', but 0:0 in 'passwd'. Clearly, I need to lookup/study.
Remember - importing/building packages will likely "byte you in the butt" come update time, long after you'd forgotten you did that! Use repos whenever possible.
Re: root user.
I can't do a clean installation. It is a web server.
I'm afraid to use "deluser" command because the user act as root and...
I'm afraid to use "deluser" command because the user act as root and...