Added a new user to the sudoers file but I can't use "installpkg" with that account
SlackwareThis Forum is for the discussion of Slackware 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.
When I see post like this I wonder why folks just don't 'su - root'.
Well, because su - requires the root password. You can set up sudo to not require a password or allow a user to have root access for some programs but not for everything.
I have my sudo set up so my user can run any program and without requiring my user's password. Is this more insecure? Yes. Am I aware of that and still do it? Also yes. Is this much faster for me when needing to do root things? Another yes. Am I a stray from the *buntus that got used to using sudo before switching to Slackware? Nope! I started with Red Hat 20ish years ago and then switched to Slackware. Never used the *buntus for any serious amount of time. I just configure my system the way I like it.
I also sometimes do sudo su - when I need to do more than a few commands as root. *gasp*
(Also, you don't need to specify root when running su. It defaults to the root account unless you specify a different user.)
When I see post like this I wonder why folks just don't let others use their machines as they want to?
That's a bit of an overreaction. You need to settle down a bit.
He was merely posing a question, not telling people what to do.
I just took their statement and turned it on them. Not an overreaction in my book, but others are free to look at it as they desire. I was not worked up in my post. I posted the reason *I* use sudo and included that I am aware that it is insecure. I was not bothered by anything more than questioning the user's choice to make their system their own.
I have no problems with people using su - and typing their root password, so what's the issue with people setting up sudo to use as they desire? I'm glad Pat does sane defaults with sudo and requires users to set it up manually. Hopefully that ensures users understand the implications of setting it up and are making the decision knowingly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.