On Wednesday 16 May 2007 01:26, Cristea Bogdan wrote:
Is there a way to run minicom without beeing root? The cool thing about *nix is that there are 100s of ways to do everything...
... I use sudo for this purpose. I used visudo to edit the /etc/sudoers file, to grant my comm group access to the minicom command. The neat thing about this technique is that I have the added advantage of system logging (thru sudo) for the few folks who actually need access to the physical comm port through minicom, and without giving everyone access to uucp. First, add the user to a comm group which you create for this purpose. Then use the visudo command to edit the /etc/sudoers file to give the comm group access to the /usr/bin/minicom command as root. The user can then access the comm port through minicom as root through the sudo command (with logging) by providing "their own" password: sudo /usr/bin/minicom (the user will be prompted for their own password, and the action is logged) There are zillions (I exaggerate) of combinations and permutations on this theme, but the important part for me as an admin is authentication and logging. Sudo works well for this if properly setup. On the other hand, if you're the only user on the system then adding yourself to the uucp group works... but if the machine is shared (or in my case used as a comm tty into the server sitting next to it) then you really need a way to control access with logging. -- Kind regards, M Harris <>< -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org