Added a new user to the sudoers file but I can't use "installpkg" with that account
Hello,
Added a new user to the sudoers file but I can't use "installpkg" with that account What else do I need to do in order to use "installpkg" with the new user that is now in the sudoers file? Thank you very much! |
how did you do that? I mean: how did you add it to the sudoers file and how did you try to run installpkg?
|
Added it to the sudoers file in the following way:
Quote:
Code:
sudo installpkg Code:
sudo: installpkg: command not found |
/sbin is probably not in your path. Try /sbin/installpkg instead.
|
Quote:
Anything else I should add to my path? |
On a related note I always use the following command to set-up sudo for my regular user.
# visudo |
Uncomment this line and your path with be updated when using sudo.
Code:
# Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" |
Quote:
|
When I see post like this I wonder why folks just don't 'su - root'?
|
When I see folks buying a Dodge, I wonder why they don't just buy a Ford.
|
Quote:
Thankfully, Slackware's sudo comes with sane default settings. |
Quote:
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? |
Quote:
He was merely posing a question, not telling people what to do. |
Quote:
|
Quote:
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. |
All times are GMT -5. The time now is 10:46 AM. |