Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-06-2012, 10:00 PM
|
#1
|
LQ Newbie
Registered: Jul 2012
Location: Dothan,Al
Posts: 2
Rep:
|
sudo password gnome ubuntu 12.04 precise
i am trying to run clamscan in terminal needs a password for sudo to let run.ive tried my auth pw and nothing.do i need to some how set this pw up?is it already in from another program?plz help
|
|
|
07-06-2012, 10:26 PM
|
#2
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
When you install Ubuntu, you are asked for a password---as the installer / main user, this is your sudo password.
Have you created any other users, changed any passwords, etc.?
You can reset the passwords by booting from a Live CD---eg your installation disk. But first, what happens if you do "sudo su" in a terminal?
What happens if you do "sudo clamscan"?
|
|
|
07-06-2012, 10:39 PM
|
#3
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
To expand on pixellany's response, most Linux distributions separate administrators from regular users. The administrator (yes, just one) is called "root". The regular users have their own accounts, and can modify their own files as necessary, but they must switch into root (using the "su" or "switch user" command) and provide the root password if they want to do any administrative work.
Ubuntu and its derivatives work a bit differently. Rather than having a discrete root user with unlimited power and its own password, instead the OS assigns the first user account (set up during installation) full "sudo" privileges. This means that the account created during install has full administrative privileges, but in order to use them they must use the "sudo" command and provide their regular login password (sudo standing for "Super User DO").
This means that on Ubuntu and its derivatives, to do any administrative tasks you must run the sudo command as the user who initially set up the system. When it prompts you for a password, you provide the password of that user (since, using sudo, they have full administrator power).
On Ubuntu, while logged into the primary user account (the one set up during installation), you should be able to run "sudo clamscan", input your regular user password, and everything should work like normal.
|
|
|
07-07-2012, 04:46 AM
|
#4
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
Off topic:
This is one reason I don't use Ubuntu. They apparently claim that it is better for security, but that argument is lost on me. I guess I somehow became a "Unix traditionalist" without ever having any serious Unix experience....
Apparently, the Ubuntu folk are so adamant about this that you can be banned from their forums for showing someone how to enable the root account.
|
|
|
07-08-2012, 08:10 PM
|
#5
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,418
|
I'm with Pixellany x 100
Been working in *nix since late 1990's and I'd never do what Ubuntu do.
|
|
|
07-08-2012, 08:14 PM
|
#6
|
Member
Registered: Jun 2012
Location: USA
Distribution: Ubuntu
Posts: 424
Rep:
|
Alot of distros don't enable the root account, and some don't allow root logins. There are sound reasons for this in a distro aimed at new users who are probably Windows users, one, to give them a similar type of interaction to what you have with Windows UAC, and two, to stop them from wrecking their systems by running stuff in full root mode, which is painfully easy to do. Security is always a tradeoff, but so is usability. The relative lack of usabilty in Unix-like systems is a big stumbling block for people unfamiliar with it.
|
|
|
07-08-2012, 08:52 PM
|
#7
|
LQ Newbie
Registered: Jul 2012
Location: near Philadelphia, PA, USA
Distribution: Ubuntu 12.04 LTE 32-bit on all platforms
Posts: 6
Rep:
|
Thank you suicidaleggroll and guyonearth. As an Ubuntu newbie it would taken a loooooong time for me to discover on my own what you just said. It seems that bitching about the root restrictions on Ubuntu is completely unfounded unless one is a hard core developer. But, isn't this forum called "Linux - Newbie", not "Linux - Experienced Developer" ?
|
|
|
All times are GMT -5. The time now is 06:59 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|