[sudo-users] sudo and friends

jan kalcic jandot at googlemail.com
Fri Jan 19 10:56:42 EST 2007


jan kalcic wrote:
> Hi All,
>
> I've been playing with sudo and I found that using the absolute path of
> the command:
> user ALL = /usr/bin/sudoedit /etc/samba/*
>
> I get the error:
> Sorry, user user is not allowed to execute 'sudoedit
> /etc/samba/smb.conf' as root on host.
>
> whereas if I put only the command without the path it works:
> user ALL = sudoedit /etc/samba/*
>
> As said this is not secure but it's the only which works. I don't
> understand.
>
> I addition, I set vi instead of sudoedit just to try and it doesn't work
> at all:
> user ALL = /usr/bin/vi /etc/samba/*
>
>
> :wq
>
>
>   
Sorry. I did a big mistake. I didn't use the sudo command before
launching the editor. That's why it didn't work

Regards,
Jan



More information about the sudo-users mailing list