How to change the login name for the system's UID 1000 user?

The title said already everything:
How to change the login name for the system’s UID 1000 user?

Hi there.

This is an old post i know and maybe not fully up to date but may give some indication for you

How to change user ID on a QNAP NAS?

I wouldn’t fiddle with system users at all, just leave em like that

@Toxic
Thanks, Simon, for your response. There is no easier way?

@dolbyman
There are two reasons for this:

  1. on my old TS-873 I always got the info to change my default login name to a more secure one, however, I never found where to do this
  2. on my new TS-873A I chose “user” when I set it up with QTS, which may be on the one hand also not very secure, and on the other is misleading as it is an admin accoun; even reinstalling the OS (I switched from QTS to QuTS hero) gave me no opportunity to change the login

Further, I encountered permission problems when running several PCs in the LAN with various UIDs and login names, but that’s another question.

Sorry, the first @ was definitely @Toxic, but it was apparently changed by the forum software (which is annoying anyway: less would be more).

Due to the embedded and heavy scripted nature of QTS, I would still not manually fiddle with the UID designations

Ignore any warning about the admin account, it stays active anyways and exploits do not care about names or disabled accounts (so never ever ever expose a NAS to WAN)

Thanks. Is there any good reason that user accounts on QNAP machines start with UID 1001? Linux standard would be that the first user UID on the system is 1000. Due to differing UIDs in the network I ran into quite some trouble on the older machine.

UIDs in QTS do start at 1000. But this isn’t a standard thing. Some distros start at 500. :nerd_face:

Have you confirmed you don’t already have an account using UID 1000?

cat /etc/passwd

Thanks for your answer. You are right, on my new TS-873A UIDs start at 1000, maybe I really deleted one on the older machine. My very old TS-420 has user UIDs from 503 to 506, here it is also possible that 500-502 were deleted.
Having read @dolbyman’s post, I reactivated the admin account and am happy now.