Sudo
I am running Slackware 13.37. The latest release.
And I am learning. I am trying to use the sudo command and it says I am not in the Sudoers file. How do I fix this? Do I add my username to the group file? I mean to ADM user or other root type user in that file? And yes I am in that file. But it doesn't seem to matter. |
Quote:
Code:
visudo -C |
Would you or someone please provide me the commands to make once in the sudoer file?
And if this is the vi editor, how to I save what I do, and how do I get out of this editor?? I must learn VI but I keep putting it off. Quote:
|
Running commands with sudo can be a problem sometimes (example: running slackbuilds with correct file permissions).
Why don't you use "su" to login as the root user and run your command without sudo? |
Quote:
Quote:
Code:
EDITOR="mcedit" visudo |
If you are going to use sudo with slack you should add /usr/local/sbin /usr/sbin and /sbin to the path of your regular user as it will make life much easier. Additionally put the command 'complete -cf sudo' somewhere appropriate like your ~/.bashrc if you want command completion. Though before you do all that reconsider the advice from schmatzler and alekow regarding just using su.
The thing about sudo is that it works best when you have multiple admins on the same machine or want to grant access to individual commands to specific users. However for a personal machine it is pretty much pointless IMHO and for that reason I never understood why Ubuntu pushes it so hard given their primary target market. Anyway, here are my thoughts from a similar thread in the past: Quote:
|
Quote:
Code:
|
Quote:
|
Quote:
DNA AKA mrascii |
All times are GMT -5. The time now is 05:42 PM. |