Hi > > Note that trying to sudo echo a value into /proc/sys/kernel/sysrq doesn't > work: > > *julie@zeus:/proc/sys/kernel$ cat sysrq > 0 > julie@zeus:/proc/sys/kernel$ sudo echo "1" > sysrq > bash: sysrq: Permission denied > julie@zeus:/proc/sys/kernel$ ls -l sysrq > -rw-r--r-- 1 root root 0 2010-12-29 19:37 sysrq > * > Instead, I have to explicitly log in as root: > > *julie@zeus:/proc/sys/kernel$ cat sysrq > 0 > julie@zeus:/proc/sys/kernel$ su > Password: > root@zeus:/proc/sys/kernel# echo "1" > sysrq > root@zeus:/proc/sys/kernel# exit > exit > julie@zeus:/proc/sys/kernel$ cat sysrq > 1* > > or sudo a shell: > > *julie@zeus:/proc/sys/kernel$ sudo bash > [sudo] password for julie: > root@zeus:/proc/sys/kernel# echo "1" > sysrq > root@zeus:/proc/sys/kernel# exit > exit > julie@zeus:/proc/sys/kernel$ cat sysrq > 1* > > Which I presume might be counter-intuitive for some Ubuntu users, as AFAICR > they're not encouraged to create an explicit root account but are expected > to sudo > everything instead - in other words they're likely to simply tag 'sudo' in > front of > any CL operation that would normally be root-only and expect it to work. > sudo bash -c "echo 1 > /proc/sys/kernel/sysrq" or echo "1" |sudo tee /proc/sys/kernel/sysrq _______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies