Sudo Problem
I uncommented
Code:
%wheel ALL=(ALL) ALL Code:
sudo dhcpcd eth1 Code:
sudo: /etc/sudoers is mode 0644, should be 0440 |
How did you edit the file? The proper way is with the visudo command. Editing this file manually is not a good idea. If you don't like the editor which visudo uses, you can set the EDITOR environment variable. For example, if it uses vi, and you like nano, you might enter this command (as root):
Code:
# EDITOR=nano visudo Code:
# chmod 440 /etc/sudoers |
Quote:
I tried what you said, Code:
# chmod 440 /etc/sudoers Code:
$ sudo "modprobe psmouse" |
Quote:
Code:
sudo echo hello world ; echo $? As for the psmouse module, my debian install has this built into the kernel - it is not a loadable module. You can check if this is the case with your installation with this command: Code:
grep PSMOUSE /boot/config* |
Quote:
Quote:
I run "modprobe psmouse" all the time as root so that my touchpad works and it does work as root. |
Quote:
|
Quote:
|
Try:
Code:
sudo /sbin/modprobe psmouse |
Quote:
I'm pretty new to slackware and still dont know what that is exactly. And thanks alot for the help, both of you. |
Quote:
|
Quote:
PATH = $PATH:/sbin to edit .bashrc open terminal in home directory >gedit .bashrc |
It should be
Code:
export PATH="$PATH:/sbin:/usr/sbin" |
Amended (thanks matthewg42)
Add following line to .bashrc PATH = $PATH:/sbin export PATH |
Quote:
|
It says .bashrc doesnt exist.
|
Ah, one thing - are you using bash? do
Code:
echo $SHELL |
Yes, it says im using bash.
|
You can just create the .bashrc file in your home directory then. You could just edit it, or this command will create it:
Code:
echo 'export PATH="$PATH:/sbin:/usr/sbin"' >> ~/.bashrc |
Quote:
Code:
$ sudo dhcpcd eth1 |
After creating .bashrc, exit terminal and open a new terminal and try
If it doesn't work, do ctrl H in home directory and see if .bash_profile is there if it is there, put the same code there & retry opening a new terminal |
This has nothing to do in bashrc, it has to be in a profile file
~/.profile ~/.bash_profile /etc/profile man bash for explanation |
Quote:
Quote:
|
There wasnt a .bash_profile so i created one and added that code and now it works great. Thanks alot for all the help everyone, I really appreciate it.
|
All times are GMT -5. The time now is 06:46 AM. |