Re: Access to nfs server, Part 2

Scott Gifford <[email protected]>
Newsgroups gmane.comp.security.linux
Message-ID <[email protected]>
Kevin Johnson <[email protected]> writes:

> I believe that using sudo to give the developer access to what ever
> commands he needs to run should prevent the 'su - <username>' trick.
> I am always leery of giving someone root access to any machine on my
> network if I don't trust him on EVERY machine.

This will only work if you're very careful of what commands you allow
them to run, and the commands are designed to be run with elevated
privileges.  Otherwise the developer may be able to use command-line
options or interactive commands to get into a shell or otherwise run
arbitrary commands.

For example, let's say you put a command in sudoers to allow a
developer to edit /etc/services with vi.  Once vi starts up, they can
simply use :! to run commands as root.  There are many variations on
this sort of attack/abuse, and it can be quite difficult to find them
all.

-----ScottG.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.