How to do root things in ubuntu

After checking other posts, I understand that root as a user is not available in ubuntu. You have to use sudo for everything. Is that true? If so, I do I do rooty things like modify config files, create root cron entries, or install programs? I've been using unixes for 30 years, but I'm new to ubuntu.

My immediate issue at hand is that I want to install clamav in this system. The clamav website http://www.clamav.net/lang/en/download/packages/packages-linux/ says clamav is shipped with ubuntu. I can't tell if it is installed (sudo clamav doesn't find the executable), and I'm not sure how to install and run it w/o being root.

need a little help!
LVL 1
jmarkfoleyAsked:
Who is Participating?
 
pilson66Connect With a Mentor Commented:
Like other UNIX-like system, root are present in Ubuntu.
You need to do:
sudo -s
passwd root

Then try to login as root intext console, or try "su".
0
 
TobiasHolmCommented:
Hi!

Do you have a GUI? Then use the Program Central (in the Program menu) to add ClamAV application.

Regards, Tobias
0
 
upanwarConnect With a Mentor Commented:
Run below command in command prompt.

sudo apt-get install clamav
0
Improved Protection from Phishing Attacks

WatchGuard DNSWatch reduces malware infections by detecting and blocking malicious DNS requests, improving your ability to protect employees from phishing attacks. Learn more about our newest service included in Total Security Suite today!

 
TobiasHolmCommented:
If you want to install ClamAV from the command-line, use:

sudo apt-get install clamav

Open in new window

Then you'll also get a notice if the application is already installed.

Regards, Tobias
0
 
arnoldCommented:
sudo bash
is what you are looking for it will give you a root shell to do all that you need.
If you must have root access set a password for root.
Modify the /etc/ssh/sshd_config to allow root login and you are set.
0
 
Sikhumbuzo NtsadaSenior IT TechnicianCommented:
You can have root in ubuntu:

sudo passwd root

And supply a new password.

You can login directly next time with root.
0
 
jmarkfoleyAuthor Commented:
pilson66: "sudo -s" worked all by itself, no passwd needed. Thanks.

upanwar: I ran apt-get install clamav. It appeared to install things and a "ps ax" shows freshclam running. Thanks.

Still, I don't appear to have manpages. I installed the optional package "apt-get install clamav-docs", but still no man pages. Is there something else I need to do for this, or does ubuntu have a different documentation facility other than "man"?

Alternatively, does someone know what I can run from the command lline to have clamav check the Windows partitions? I have successfully mounted one partition under /mnt and should be able to get to it w/o problem.
0
 
jmarkfoleyAuthor Commented:
Update - I googled the command line arguments for clamav and I am running it now. It says the version is outdated, but it's probably good enough for my purposes. I'll keep you updated. Maybe my mission is done!

Still, I'd like to know how to read the clamav docs in ubuntu
0
 
TobiasHolmCommented:
Here's the latest ClamAV docs: http://www.clamav.net/doc/latest/

Regards, Tobias
0
 
dfkeCommented:
you can set the period of time a sudo -s valid.
0
 
jmarkfoleyAuthor Commented:
Thanks folks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.