Andrew Farmer wrote: - snip -
So, is it a problem on your linux (where you are root)
Farmer, farmer, u really can't read !!! Translation just for u: Previous sencence is CLEARLY saying, you are ROOT on your system !
Once again, NO, 'cause you are ROOT on your system !to copy some program (e.g. /bin/cat, but the best your own
statically linked prog to new directory,
and set uid flag on it? No ! (man chmod, if yes)
Yes, it is. Setting the suid flag on a file makes it run as the owner of the file, which will not be root unless root created the file and set the suid flag.
I am in very good disposition now, so specially JUST for Farmer (who can't read) I very short recapitulate the thread:
Gabor: How can I do users can mount anything ?
answers:
Meka[ni] : Make suid root on mount command. (unsecure solution) Matthias: Out of toppic, (probably didn't read the question ?) Collins: Use sudo. (unsecure solution) Me: Use fstab with "user" flag. (can be secure if setup properly)
Andrew:
"Well, the problem is that you can only mount an image as a user if the image and mountpoint are specified in the fstab. I still don't know why mount (or the kernel or something) can't start allowing mounts of a file readable by a user over a directory the user owns..."
Me: It is not possible for security reason ... "but if you like to allow users just mount anything" (using advices from Meka[ni] or Collins for doing so) it's unsecure ... because of possible Trojan backdoor
Question for Farmer: Can you see now, you are out off topic, missunderstood me and still talking about martians ?
noro
-- [EMAIL PROTECTED] mailing list
