$sudo adduser laser admin
sudo adduser laser sudo, here 'sudo' can not make the user run sudo ability.
===================
if group admin doesn't exist, you should edit /etc/sudoers
login with root, if no root, run "passwd root" to create one.
$vi /etc/sudoers
cp the last line of "root ALL......", paste it at the next line and change the root to your name. Done.
######################################
If you've used Linux for any amount of time, you might be used to
running programs as root directly whenever you need to install
packages, modify your system's configuration, and so on. Ubuntu employs
a different model, however. The Ubuntu installer doesn't set up a root
user -- a root account still exists, but it's set with a random
password. Users are meant to do administration tasks using sudo and
gksudo.
You probably already know how to use sudo -- just run sudo commandname
.
But what about running GUI apps that you want to run as root (or
another user)? Simple -- use gksudo instead of sudo. For instance, if
you'd like to run Ethereal as root, just pop open a run dialog box (Alt-F2
) and use gksudo ethereal
.
By the way, if you really must do work as root, you can use sudo su -
,
which will log you in as root. If you really, really want to have a
root password that you know, so that you can log in as root directly
(i.e., without using sudo), then run passwd
when logged
in as root, and set the password to whatever you want. I'd recommend
using the pwgen package to create a secure password not only for root
but for all your user accounts.
Powered by ScribeFire.
No comments:
Post a Comment