Miscellaneous > Programming & Networking
Unix menu program
Faust:
^c and you'll be back at the prompt from a script and I *believe* that can be fixed in a C program... that said i program in Eiffel not C so I wouldnt know.
Anyway if your system is properly locked down with appropriate permissions (and no suid/exploitable programs) then your fine...
[debian_plug]ah the joys of an OS that sets /dev/dsp* (the sound mixers) to root access only... because really isnt giving users sound a security risk? :D [/debian_plug]
Calum:
well even so, this is not really an issue since dropping to a prompt is actually one of the options on the menu! nobody should be giving ssh access to their system unless they are sure they correctly chmodded it, so it's moot either way in my opinion. but he's written it in C because he wants to, isn't that okay?
Faust:
Good point.
I appreciate that shell scripts are too boring to use if you have an alternative, just pointing out that they're no less secure.
Hey I made a program to brute force root 2 to about 500 or so decimal places of accuracy the other week and i could have just done that in maple so I already know that programming is fun...
Faust:
And yeah SSH access should only be allowed given correct file permissions (AND John vs /etc/shadow AND a recent version of SSH AND recent versions of all exxecutable programs...) so the point about whether it should be in c or scripts is moot...
EXCPET a c program could be made to crash and if the program was started as root then whoever crashes said program can get root... its pretty hard to crash a shell I believe (although I have seen a DOS window crash - but that was MS DOS which explains it. )
Calum:
well as i understand it, the script will be called from .bashrc or .bash_session or .login or whatever in the user's home dir (that's where i would have it called from anyway) so it should be running as the user who has logged in, and never as root.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version