I am playing with Debian Squeeze (V6) and ran into issues with sudo. Okay on Ubuntu, you use sudo a lot, and don’t drop into root.
Here’s an easy fix! (don’t have to mess with /etc/sudoers)
1. Become root.
nwayno@Homer:~$ su root
Password:
2. Go to the /etc/ directory
cd /etc
3. Backup the current group file. You MUST be root for these next steps:
to backup the file:
cp group group.backup
4. Now edit the file with your favourite editor, like nano
nano group
5. Add your userid to the sudo line:
so: sudo:x:27:
becomes:
sudo:x:27:nwayno
in nano, control-o to write the file, and control-x to exit.
6. Logout and back in again (to re-read the group file) and sudo should work properly.
example
nwayno@Homer:~$ sudo tail /var/log/messages
[sudo] password for nwayno:
Feb 17 10:55:10 Homer kernel: [127876.739743] tun0: Disabled Privacy Extensions
nwayno@Homer:~$
This is a difference from Ubuntu to Debian.
Thanks Loni!
Wayno
Related Articles
No user responded in this post