Page 3 of 3

Re: root user.

Posted: 2019/11/10 14:17:04
by jlehtone
hack3rcon wrote:
2019/11/10 06:18:48
I can't do a clean installation. It is a web server.
Do you mean "the service cannot be taken down long enough to replace the OS"?

Re: root user.

Posted: 2019/11/10 16:56:53
by Whoever
hack3rcon wrote:
2019/11/10 06:18:48
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...
You are going to have to do a clean install when CentOS 6 reaches its end of life in 12 months time. Why not do it now?

Re: root user.

Posted: 2019/11/11 06:21:19
by hack3rcon
jlehtone wrote:
2019/11/10 14:17:04
hack3rcon wrote:
2019/11/10 06:18:48
I can't do a clean installation. It is a web server.
Do you mean "the service cannot be taken down long enough to replace the OS"?
Yes.
Can I change the user uid manually?

Re: root user.

Posted: 2019/11/11 08:16:14
by jlehtone
hack3rcon wrote:
2019/11/11 06:21:19
jlehtone wrote:
2019/11/10 14:17:04
Do you mean "the service cannot be taken down long enough to replace the OS"?
Yes.
I would probably migrate the service to different server. The downtime should be quite short, if done properly.
(Shorter than reboot of hardware server. You do reboot when you get a kernel update, don't you?)
hack3rcon wrote:
2019/11/11 06:21:19
Can I change the user uid manually?
Step 1: Does any service in the server refer to username "testuser"?
If yes, then update them to use a different account.

Step 2: Verify that you can become root without the "testuser"

Step 3: Remove the "testuser" entry from /etc/passwd