[OS X TeX] Unix, sudo and mpm

Tobias Sebastian Kuhn tosebk at gmail.com
Wed Dec 13 18:24:18 CET 2006


Alex,

instead of configuring and installing mpm in your home directory you  
can add any user as a sudoer.

login as admin, start Terminal.app and type 'sudo visudo'.

this will allow you to edit the file /etc/sudoers, which looks like  
this:

> # sudoers file.
> #
> # This file MUST be edited with the 'visudo' command as root.
> #
> # See the sudoers man page for the details on how to write a  
> sudoers file.
> #
>
> # Host alias specification
>
> # User alias specification
>
> # Cmnd alias specification
>
> # Defaults specification
>
> # Runas alias specification
>
> # User privilege specification
> root    ALL=(ALL) ALL
> %admin  ALL=(ALL) ALL
>
> # Uncomment to allow people in group wheel to run all commands
> # %wheel        ALL=(ALL)       ALL
>
> # Same thing without a password
> # %wheel        ALL=(ALL)       NOPASSWD: ALL
>
> # Samples
> # %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
> # %users  localhost=/sbin/shutdown -h now

move the cursor to the (beginning of the) line with "%admin", press  
"Y" (yank line), "p" (paste) and "i" (insert mode) to change the  
second "%admin" to your (short) login.
exit with typing ":wq" (write and quit) and your done.

from now on you don't have to login as admin to use "sudo".

T.

------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the macostex-archives mailing list