root user.

Support for security such as Firewalls and securing linux
User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: root user.

Post by jlehtone » 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"?

Whoever
Posts: 1357
Joined: 2013/09/06 03:12:10

Re: root user.

Post by Whoever » 2019/11/10 16:56:53

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?

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: root user.

Post by hack3rcon » 2019/11/11 06:21:19

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?

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: root user.

Post by jlehtone » 2019/11/11 08:16:14

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

Post Reply