-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, May 22, 2009 at 08:45:03AM -0400, Bob Parnes wrote: > On Fri, May 22, 2009 at 06:24:49AM -0400, Daryl Styrk wrote: > > On Fri, May 22, 2009 at 06:14:59AM -0400, George wrote: > > > You have to install the sudo package to be able to use sudo. > > > > > > > > > # vim /etc/sudoers < now you can edit the sudoers file and add your > > > username. The new line will look just like the line for root except > > > replace root with your username. > > > > the command 'visudo' should be used to edit the sudoers file according to > > the man page. > > > > "visudo edits the sudoers file in a safe fashion, analogous to vipw(8). > > visudo locks the sudoers file against multiple simultaneous edits, > > provides basic sanity checks, and checks for parse errors. If the sudoers > > file is currently being edited you will receive a message to try again > > later." > > > > -- > > Daryl Styrk > > Naples, FL USA > > > > > > > > > > -- > > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > > with a subject of "unsubscribe". Trouble? Contact > > listmas...@lists.debian.org > > > Here is my sudoers file, which may help as an example: > > ------------------------------------------------------------ > # sudoers file. > # > # This file MUST be edited with the 'visudo' command as root. > # > # See the man page for details on how to write a sudoers file. > # > > # Host alias specification > > # User alias specification > > # Cmnd alias specification > Cmnd_Alias HALT = /sbin/halt > Cmnd_Alias REBOOT = /sbin/reboot > Cmnd_Alias APT = /usr/bin/apt-get, /usr/bin/aptitude > Cmnd_Alias DPKG = /usr/bin/dpkg > Cmnd_Alias MOUNT = /bin/mount, /bin/umount > Cmnd_Alias KERNEL = /usr/bin/make, /usr/bin/make-kpkg > > > # User privilege specification > root ALL=(ALL) ALL > bp ALL= HALT, REBOOT, APT, DPKG, MOUNT, KERNEL > > #Defaults logfile=/var/log/sudolog > Defaults:bp timestamp_timeout=60 > ------------------------------------------------------------- > > Bob Parnes > >
I believe this was meant for the list. - -- Daryl Styrk Naples, FL USA -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkoWoSAACgkQ6baBhW8CzrjLAACffeP0MBNMVk1bGjtd6j1Fw7ux 26EAn1wEo2BurQ5JXE3YsA0CC7BCRXwz =Pgk4 -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org