LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-12-2009, 04:42 PM   #1
rixtr66
Member
 
Registered: Aug 2008
Location: Portland,ME.
Distribution: Slackware
Posts: 102

Rep: Reputation: 15
Question cant use sudo as user ?


in my regular user account everything works except sudo?
ive never had this happen before,i checked off wheel so i should be able to sudo,but everytime i do,and it asks for a password it tells me
incorrect pass.i know im using the right pass cause i can get into my root account.can someone help me with this?
any help would be appreciated!!!
Rick
Peace
 
Old 04-12-2009, 04:54 PM   #2
rg3
Member
 
Registered: Jul 2007
Distribution: Fedora
Posts: 527

Rep: Reputation: Disabled
From your words I understand you are typing root's password, but sudo requires you to type the user's password.
 
Old 04-12-2009, 05:09 PM   #3
rixtr66
Member
 
Registered: Aug 2008
Location: Portland,ME.
Distribution: Slackware
Posts: 102

Original Poster
Rep: Reputation: 15
when i use my pass,it says rick is not in the sudoers file??
 
Old 04-12-2009, 05:19 PM   #4
1337
Member
 
Registered: Apr 2009
Distribution: Slackware-12.2
Posts: 75

Rep: Reputation: 18
You need to edit your /etc/sudoers file. A tutorial can be found here...
http://www.debianadmin.com/providing...sing-sudo.html. Unless you have a large amount of users on your system that you need to give root access (or set permissions for), su is probably a better option. type su and enter the root password to get root.
 
Old 04-12-2009, 08:53 PM   #5
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 318

Rep: Reputation: 40
Open up terminal and type visudo.

Under this line: root ALL=(ALL) ALL, enter this:

user ALL=(ALL) ALL replacing the user with your username, for me is
Code:
vitalstrike ALL=(ALL) ALL
To access the commands as a normal user with root access, for example to shutdown, use,

Code:
sudo /sbin/shutdown -h now
and key in your password as prompt.

if you want to stop having type /sbin whenever you want to access the root commands. try this:

Code:
export PATH=$PATH:/sbin
put the above lobe into /.bash_profile or to the global profile
 
Old 04-13-2009, 08:36 AM   #6
rixtr66
Member
 
Registered: Aug 2008
Location: Portland,ME.
Distribution: Slackware
Posts: 102

Original Poster
Rep: Reputation: 15
ok su works! thanks...it's been awhile so ive forgotten alot.
Rick
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Ultimate Sudo FAQ — To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 01:36 AM
Gconf-editor settings not sticking for root, sudo user, or user when run sandaili Fedora 1 07-19-2008 08:31 AM
Sudo for more than one user MOCKBA Ubuntu 3 09-30-2006 02:38 AM
SUDO for user nobody tracer Linux - Newbie 3 01-12-2006 02:12 PM
SUDO as *non-root* user spratty Linux - Newbie 3 05-19-2004 03:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration