HELP!! how to prevent floppy mounts under Hardy/LTS
john
lists.john at gmail.com
Tue Sep 22 16:50:18 BST 2009
> Hi John,
>
> To fix your problem you need to add a script to fix perm of the /media/$USER because your user all belong to the same group.
>
>
> * Install perl-suid on the server
>
> then create a script in /etc/ltspfs/mounter.d (you may have to create that
> directory) on the application server
> and a script called fixperm inside it, containing:
> == cut here ==
> #!/usr/bin/perl
> if ( $ARGV[0] eq 'add' ) {
> $ENV{'PATH'} = '/bin:/usr/bin';
> $user=getpwuid($<);
> system "chown", "$user.root","//media//$user";
> }
> == cut here ==
> then you have to set permission 4755 on that script
>
> Marc
>
Thanks Mark,
I appreciate your advice.
Since we aren't using floppies on thin clients I've ended up creating
a cronjob that removes the mounts every 5 mins.
#!/bin/sh
cd /media
for dir in /media/*
do
cd $dir
umount -fl "floppy0"
cd ..
done
I know that your solution gives the user more control over their own
destiny, but in this case I think this approach may be suited to our
needs.
Thanks again for taking the time to reply!
John
>
>
> --
> edubuntu-users mailing list
> edubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
>
More information about the edubuntu-users
mailing list