Where is the sudoers file on qnap?

2

I'm setting up a small QNAP for our department. I created an account for myself, and another one for the other admin - we don't want to use the main "admin" account unless necessary. I tried to switch to root prompt and this happens:

[Misiak@myQNAP ~]$ sudo -i
Password:
Misiak is not in the sudoers file.  This incident will be reported.

There is no sudoers file in /etc/sudoers or /usr/local/etc/sudoers None of the following groups exist when I try to use usermod -aG [group] [username]: sudo, wheel, operators.

What do I need to do? I'm completely new to this.

kukunamuniu

Posted 2018-01-18T15:32:52.593

Reputation: 23

Not a programming question - try [sf] ? – Paul R – 2018-01-18T15:34:57.693

Also, it's my recollection that there is a useful user-support community specific to QNAP. Did you try search the internet for 'QNAP support forum'. Good luck. – shellter – 2018-01-18T15:54:21.197

1@shellter Thanks for the tips. I didn't realize how vast this community was. As to the QNAP forum, I kind of trust stackexchange more and the people here reply faster. From what I found so far, people generally don't use QNAP this way in companies - they use it for storage connected to an actual webserver or they install packages that I can't use. So I couldn't find my problem. – kukunamuniu – 2018-01-18T19:49:40.477

I believe the qnap "server" is very similar in scope to the WD MyCloud "server" which in it's first incarnation was a stripped down Linux, and in later versions is a horribly crippled busy-box environment. It is very likely that QNAP doesn't have the facility to run sudo at least without figuring out to how to install it. Good luck! – shellter – 2018-01-18T20:55:50.550

@shellter Yeah, it is crippled, but when I told my manager "Would be cool if our department had a NAS" I never expected to be the one to pick a model and become the admin, so I'll have figure this out ;) I'm pretty sure this one has some kind of sudo, because I can use the command from the root account and trying from another account does not return a "command not found". – kukunamuniu – 2018-01-22T11:26:46.750

Answers

4

For firmware 4.3.3, the sudoers file can be found under /usr/etc/

Bulystc

Posted 2018-01-18T15:32:52.593

Reputation:

I think it would be noteworthy to indicate that any changes to this file are not persistent. The file is regenerated at reboot and all your changes will be lost. – Sam – 2019-04-01T23:31:37.323