1755595 Members
3526 Online
108836 Solutions
New Discussion юеВ

Sudo error

 
Anthony khan
Frequent Advisor

Sudo error

Hi Guys,

I am getting following error when I run this command sudo -u basel ftp trmsrv06

sudo: [ID 850335 local2.alert] akhan22 : user NOT in sudoers ; TTY=pts/17 ; PWD=/home/akhan22 ; USER=basel ; COMMAND=/usr/bin/ftp trmsrv06

Here's my sudoers file looks like


akhan22 ALL = (basel) NOPASSWD: /usr/bin/ftp

Do any one know what I am missing here. What I am trying to achive here is to ftp trmsrv06 using basel id.


Thanks
Anwar
2 REPLIES 2
Paul F. Carlson
Valued Contributor

Re: Sudo error

It looks ok to me. Make sure you are using the correct (and updated the correct) sudoers file. Run sudo -l. This will show allowed commands for the current user. Make sure your ftp command is listed there. Post the results.

-Paul
Link down -- cable problem?
spex
Honored Contributor

Re: Sudo error

Anwar,

Did you use 'visudo' to edit your sudoers file?

PCS