[Gllug] re: use of sudo

t.clarke tim at seacon.co.uk
Fri Jul 2 11:43:21 UTC 2004


Does 'sudo' actually run commands as root without having to enter a
password ?

If so, it would seem to defeat the whole file-protection mechanism !!

If a file is writeable only by root, I assume there is a good reason for it.

You should only be able to write to that file either by 'being' root or
assuming root permissions after entering (usually) the root password
blindly on the screen.

It is possible to knock-up a general purpose c program that executes commands
as root without a password - but very dangerous !  In any event, as understand
it, the > redirector attempts to open the target-file within the currently
executing shell, so redirections of this sort would never seem to work if
the file permissions are 'wrong'


Tim

********************************************************************************
This E-Mail and any files transmitted  with it, are confidential
and intended solely for the use of the individual or entity to
whom they are addressed. If you have received this message
in error please notify the sender and delete the message.

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list