bhushan_sharma <[EMAIL PROTECTED]> thus wrote:
> It's a practical issue.
> I wish that none of my students should be able to exchange there 
> assignments from their home directories
> How can i stop them, what permissions, ownership, group should be given. 
> If gibve any default permissions (umask) & have private groups for each, 
> then also they being the owner can change the permissions/ownership of 
> files themselves. How can I stop them, pl. suggest a strategy
> 

You can try replacing the chmod and chown binaries
with your own "hacked" version which prevents a 
user from modifying the permissions of their respective
home directory.
But then any user who knows C and has access to
a compiler can use the system call.

Better still... you should add the users such
that their home directory is owned by root
and the group ownership is their own.

for eg.
I have two users test1 and test2
[EMAIL PROTECTED] /home] ll
drwxrwx---    3 root     test1        4096 Aug  4 23:12 test1
drwxrwx---    3 root     test2        4096 Aug  4 23:13 test2


Try it out.
I'm just trolling...

--
arc_of_descent




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to