Newly created admin account has gid 100

Questions about SNMP, Power, System, Logs, disk, & RAID.
Locked
kamion
New here
Posts: 6
Joined: Fri Sep 09, 2016 1:12 pm

Newly created admin account has gid 100

Post by kamion »

So I followed the official QNAP steps here to create a different named admin account, and to disable the original admin account for security purposes.

Now, I tried to SSH in with my new "admin-2" account, and used my password. That is fine, unfortunately, I can't add my public key to the /etc/config/ssh/ directory (as detailed on QNAP's wiki) because my new admin-2 account is not in the administrator's group.

Here is my new admin-2 `id -a`:

Code: Select all

uid=1001(admin-2) gid=100(everyone) groups=0(administrators),100(everyone)
It appears I'm in gid 100 (everyone), instead of gid 0 (administrator). When I do a `ls -la` in the home directory, it shows even the files/folders in there belong in the everyone group:

Code: Select all

drwxrwx---  4 admin-2        everyone       4096 2020-05-05 21:08 ./
drwxrwxrwx 10 admin          administrators 4096 2020-05-05 21:08 ../
What is the correct way to resolve this?

Thanks.
kamion
New here
Posts: 6
Joined: Fri Sep 09, 2016 1:12 pm

Re: Newly created admin account has gid 100

Post by kamion »

I had to re-enable the original admin account, SSH in and then changed the gid for admin-2 to 0 (administrators).

I had to create a separate .ssh in the home directory of admin-2 as the admin .ssh directory is a symlink to /etc/config/ssh and it cannot be shared.
munky06
New here
Posts: 2
Joined: Tue Jan 24, 2017 8:34 am

Re: Newly created admin account has gid 100

Post by munky06 »

I have the same issue as you. I understand the first part of changing the gid.

but can you provide instructions as to the second part of the ssh directory?
FSC830
Experience counts
Posts: 2043
Joined: Thu Mar 03, 2016 1:11 am

Re: Newly created admin account has gid 100

Post by FSC830 »

Avoid necroposting :wink: .
The home directories are usualle in /shares/CACHEDEVx_DATA/homes/<username>.
Just login with your (alternate) admin account via SSH. Login is possible even if .ssh directory is not present.
Run a ssh-keygen -t rsa -b 2048 (or 4096) and .ssh is created automatically.
You will find the keys in .ssh directory.
If you want to access with SSH using your new admin account without a password from a client, .ssh is the directory in which authorzied_keys file is to put.

Regards
User avatar
dolbyman
Guru
Posts: 35215
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Newly created admin account has gid 100

Post by dolbyman »

Topic closed for necroposting
Locked

Return to “System & Disk Volume Management”