UBUNTU LINUX COMMANDS FOR SERVICE ACCOUNT

Hi everyone,

For creating a service account in ubuntu Linux standalone machine we are facing issue with the below commands which is giving "syntax error near line 32", but it is working fine with redhat Linux machines

useradd pamsvc
passwd pamsvc
vi/etc/sudoers
pamsvc ALL=(root) NOPASSWD: /usr/bin/passwd, usr/bin/grep, usr/bin/egrep

can someone suggest if the commands are correct or any modification required,

appreciate support.