?
Solved

How to do root things in ubuntu

Posted on 2011-03-22
11
Medium Priority
?
360 Views
Last Modified: 2013-11-15
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!
0
Comment
Question by:jmarkfoley
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
11 Comments
 
LVL 18

Expert Comment

by:TobiasHolm
ID: 35188864
Hi!

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

Regards, Tobias
0
 
LVL 8

Accepted Solution

by:
pilson66 earned 1000 total points
ID: 35188898
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
 
LVL 12

Assisted Solution

by:upanwar
upanwar earned 1000 total points
ID: 35188944
Run below command in command prompt.

sudo apt-get install clamav
0
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
LVL 18

Expert Comment

by:TobiasHolm
ID: 35188960
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
 
LVL 79

Expert Comment

by:arnold
ID: 35189565
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
 
LVL 17

Expert Comment

by:Sikhumbuzo Ntsada
ID: 35190023
You can have root in ubuntu:

sudo passwd root

And supply a new password.

You can login directly next time with root.
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 35191570
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
 
LVL 1

Author Comment

by:jmarkfoley
ID: 35192440
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
 
LVL 18

Expert Comment

by:TobiasHolm
ID: 35192531
Here's the latest ClamAV docs: http://www.clamav.net/doc/latest/

Regards, Tobias
0
 
LVL 10

Expert Comment

by:dfke
ID: 35193905
you can set the period of time a sudo -s valid.
0
 
LVL 1

Author Closing Comment

by:jmarkfoley
ID: 35222172
Thanks folks!
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month8 days, 14 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question