suid problems

Nicolas Williams Nicolas.Williams at ubsw.com
Fri Feb 15 14:10:28 EST 2002


On Fri, Feb 15, 2002 at 01:29:31PM -0500, James M Craig wrote:
> 	The first problem that I am faced with is dealing with
> scripts that are suid and access files over nfs.  The way things work
> now, a student runs a program to submit their coursework.  This program
> is suid to a 'submit' uid, and this submit uid is allowed to dump files
> into the grader accounts, compile and run the projects, and provide
> feedback to the students.

Create a students-writeable, students-not-readable submission directory
and use that instead of a suid program.

> 	In my test Realm, I have noticed that if I run a program that is suid
> to another user, and attempt to write a file to an NFS mounted directory
> (exported with sec=krb5i), it doesn't work.  My understanding is that
> the process, which is now owned by someone else, does NOT have any
> credentials to manipulate the NFS mounted directory...

Right.

> 	Has anyone else had to deal with this?  What sort of changes are
> necessary?

See above. The good news is that with SecureNFS the server does all the
authorization checks, so you can rely on your files'/directories' ACLs.

> Jim Craig
> jmc at cs.rit.edu


Cheers,

Nico
-- 
-DISCLAIMER: an automatically appended disclaimer may follow. By posting-
-to a public e-mail mailing list I hereby grant permission to distribute-
-and copy this message.-

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.




More information about the Kerberos mailing list