automount 4 mhq43gdshrm5zovgovle7ucluwgpo7uglbcmimi mhq43gdshrm5zovgovle7ucluwgpo7uglbcmimi MHQ43GDSHRM5ZOVGOVLE7UCLUWGPO7UGLBCMIMI


Automount mini-Howto: That long wait to unmount 4. That long wait to unmountSome of you may be eyeing that 60 second timeout and thinking, that's a long time to wait to eject a floppy.. Maybe I'll just sync the disks and pop it out unmounted and nobody will notice. Let me suggest saner alternatives. First of all, you can change the timeout. But that could be a little inefficient; telling the system to unmount stuff after only 15 seconds or whatever. There is actually a way to ask the automount program to umount. If you send (with the program kill) the signal SIGUSR1 to the automount process, it will unmount everything it can. But before people start making unmount buttons on their window managers, there's a little problem.The automount process is run by root, and it will only accept signals from root. Half of the reason you're probably doing automounting is so you can mount an unmount *without* being root. It would be easy to make a suid-root C program which does the dirty deed, which is the suggested way of solving the problem if users aren't expected to behave themselves.If the users can be trusted somewhat, a compromise is possible with the program sudo. By installing sudo with the following line: ALL ALL=NOPASSWD:/bin/kill -SIGUSR1 [0-9]*you have made it possible for *anyone* on the system to send a SIGUSR1 signal to *any* process. This will have various effects on programs; it will recycle afterstep window manager, but kill xemacs. So if your users can be trusted to only send the process id of the automount daemon (as found by pidof, for example) then this single command can unmount things. That would be done with something like this:/usr/bin/sudo /bin/kill -SIGUSR1 `/sbin/pidof automount` n

Wyszukiwarka

Podobne podstrony:
automount 3 cweg2omwicaqwkemot5xgh72ix3u46l4a2rabbq cweg2omwicaqwkemot5xgh72ix3u46l4a2rabbq
automount 5 on4x47tvyhvxestdeawafvneda5d2waky5dzpba on4x47tvyhvxestdeawafvneda5d2waky5dzpba
ulotka naviflash60 automotive pl
Ingham Automotywacja na 101 sposobów
FESTOOLP3 pl automotive polerowanie
cynhro automotyczna skrzynia biegow
automount 1 bsrew5faqv3ztli6wbeoi4jbmogfabl3wy363fq bsrew5faqv3ztli6wbeoi4jbmogfabl3wy363fq
automount 2 5eiy3ouhok6qq3mwouf5mysy3fd43ljps7k4aaa 5eiy3ouhok6qq3mwouf5mysy3fd43ljps7k4aaa
Automount EUXYX5UBSMWXOWQKWRHTFE3UH56FVFJ47AOH2RQ
Automount EUXYX5UBSMWXOWQKWRHTFE3UH56FVFJ47AOH2RQ
Ford Motor Company Automotive Systems Training Electrical Systems
Automotive Collision Repair Library Resources 2009
Automount
checklist automobile industry
Automotywacja na 101 sposobów Ch Ingham

więcej podobnych podstron