UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
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.
I'm a ubuntu starter; now I want to install some software and do not want to use root account. So I use "sudo" to install. But it cannot work! It prompts to enter password, but it do not continuous to install the software. It do not like the root account, it would show the installation progress! Is it the user need to have admin right or ....?
When sudo prompts you for a password, enter your own password.
Look at your /etc/sudoers file.
If your username isn't anywhere in that file, you need to add it. I can't remember the syntax off of the top of my head, but in the Debian sudoers file, there is an example. The syntax should be something similar to this:
Code:
username ALL(ALL) ALL
Like I mentioned before, I can't remember off of the top of my head the exact syntax, but I know what I've given you here is just a basic, basic, basic example to give username all root abilities with an sudo. It can be changed so that the user is only granted root access to certain commands, files, etc.
Last edited by indienick; 10-03-2007 at 11:29 AM.
Reason: Elaboration
Tell it to Bill Gates. If you read more than two lines of my suggestion, you saw my final recommendation. If he's a newb, all he understands is direct root access, and to help his problem as understandably as possible was my goal. On a dedicated single-user/home box, x login/root access is laughable, at least in linux. the average time lapse for crack access for a trojan is 3 days. we're talking about a 5 minute fix.
I posted to help him, and provided positive understandable suggestions to the best of my ability here: i recommend you do the same.
Thanks indienick
I added the new user to /etc/sudoers file. username ALL = (ALL) ALL
Now It can do anything, is like a root account. Thanks. But now the new user is a root, it have fully access right to the machine?
Quote:
Originally Posted by indienick
When sudo prompts you for a password, enter your own password.
Look at your /etc/sudoers file.
If your username isn't anywhere in that file, you need to add it. I can't remember the syntax off of the top of my head, but in the Debian sudoers file, there is an example. The syntax should be something similar to this:
Code:
username ALL = (ALL) ALL
Like I mentioned before, I can't remember off of the top of my head the exact syntax, but I know what I've given you here is just a basic, basic, basic example to give username all root abilities with an sudo. It can be changed so that the user is only granted root access to certain commands, files, etc.
The user has to actually type "sudo" and then supply the current user's password. So, if you let somebody use your laptop, and they try to run sudo without your knowledge (and supplying you haven't run sudo yourself within a half hour beforehand), they won't be able to get anywhere.
There is NO BLOODY DIFFERENCE. I'm sick and tired of people saying "...Aptitude is better." The only time I use aptitude in its curses-based interface is when I don't have X and Synaptic installed, and I don't know a package's name.
EDIT: Flab0y352 - Don't post for the sake of posting. Troll elsewhere.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.