travalon wrote:I have attempted a couple of things on my new install of Salix. Nothing has worked.
travalon wrote:The thing I am trying to do at the moment is edit my conky config file. I can open it and edit it but I can't save it. Also when I try to do things in the terminal I get a "not in the sudoers file" followed by a threat to report me to me, as I am the sole user of this machine. I would like to add myself to the sudoers file but I don't know where it is or how. I believe if I get into the sudoers club things will be fine for a while.
travalon wrote:I have attempted a couple of things on my new install of Salix. Nothing has worked. I am a noob to linux in general and a super noob to Salix. The thing I am trying to do at the moment is edit my conky config file. I can open it and edit it but I can't save it. Also when I try to do things in the terminal I get a "not in the sudoers file" followed by a threat to report me to me, as I am the sole user of this machine. I would like to add myself to the sudoers file but I don't know where it is or how. I believe if I get into the sudoers club things will be fine for a while.
$ nano .conkyrc
edit the file and then save and exit.
Control + o saves the file
Control + x exits the editor nano
Done!$ su
password: type here your root password
and you become ROOT when you see the hash mark (#)# nano /etc/sudoers
edit, adding the line you want to the file.
(i added myself to the group 'wheel' and uncommented the line for those belonging to that group)
## Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL
save/exit$ nano .bashrc
and add this line:
export PATH=/sbin:/usr/sbin:$PATH
save/exitmacondo[~]$ sudo slapt-get -u
Retrieving package data [http://salix.enialis.net/i486/slackware-13.37/]...Cached
Retrieving patch list [http://salix.enialis.net/i486/slackware-13.37/]...Cached
Retrieving checksum list [http://salix.enialis.net/i486/slackware-13.37/]...Done
Retrieving checksum signature [http://salix.enialis.net/i486/slackware-13.37/]...Cached
Verifying checksum signature [http://salix.enialis.net/i486/slackware-13.37/]...No key for verification
Retrieving ChangeLog.txt [http://salix.enialis.net/i486/slackware-13.37/]...Cached
Reading Package Lists...Done
Retrieving package data [http://salix.enialis.net/i486/slackware-13.37/extra/]...Cached
Retrieving patch list [http://salix.enialis.net/i486/slackware-13.37/extra/]...Done
Retrieving checksum list [http://salix.enialis.net/i486/slackware-13.37/extra/]...Done
Retrieving checksum signature [http://salix.enialis.net/i486/slackware-13.37/extra/]...Cached
Verifying checksum signature [http://salix.enialis.net/i486/slackware-13.37/extra/]...No key for verification
Retrieving ChangeLog.txt [http://salix.enialis.net/i486/slackware-13.37/extra/]...Done
Reading Package Lists...Done
Retrieving package data [http://salix.enialis.net/i486/13.37/]...Cached
Retrieving patch list [http://salix.enialis.net/i486/13.37/]...Done
Retrieving checksum list [http://salix.enialis.net/i486/13.37/]...Cached
Retrieving checksum signature [http://salix.enialis.net/i486/13.37/]...Cached
Verifying checksum signature [http://salix.enialis.net/i486/13.37/]...No key for verification
Retrieving ChangeLog.txt [http://salix.enialis.net/i486/13.37/]...Cached
Reading Package Lists...Done
macondo[~]$ sudo slapt-get --upgrade
Reading Package Lists...Done
0 upgraded, 0 reinstalled, 0 newly installed, 0 to remove, 0 not upgraded.
Done
macondo[~]$
macondo wrote:Now you're ROOT and can edit the /etc/sudoers file:
- Code: Select all
# nano /etc/sudoers
edit, adding the line you want to the file.
save/exit
gapan wrote:Don't ever ever do that. The sudoers file should only be edited using the visudo command.
Instead, use the visudo command:
# visudo
This protects from conflicts (when two admins edit this file at the same time) and guarantees that the right syntax is used (the permission bits are correct).
:w:q