NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
dunkelheit
Jul 19, 2011Initiate
SSH: Deactivate root account and use a "non-root" one?
Hi all, this is my first post, but I follw this very useful forum since I got my readynas, one year ago. I usually like to play with ssh protocol to gain acces to my home readynas Duo from my workpl...
lpreat
Jul 20, 2011Aspirant
Please look at the man page of sudoers for further details of the syntax.
%sudo ALL = ALL should enable the password authentication
You can also mix authentication and no authenticiation. For instance
%sudo ALL = command1, NOPASSWD: command2
will allow you to launch command1 with password authentication and command2 without authentication. No other commands than command1 and command2 will be accepted.
Please be also aware that the use of visudo is preferable to edit the sudoers file. This command will automatically check the syntax before saving the file.
%sudo ALL = ALL should enable the password authentication
You can also mix authentication and no authenticiation. For instance
%sudo ALL = command1, NOPASSWD: command2
will allow you to launch command1 with password authentication and command2 without authentication. No other commands than command1 and command2 will be accepted.
Please be also aware that the use of visudo is preferable to edit the sudoers file. This command will automatically check the syntax before saving the file.
Related Content
- Nov 02, 2022Retired_Member
- Apr 16, 2020Retired_Member
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!