LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linspire/Freespire
User Name
Password
Linspire/Freespire This Forum is for the discussion of Linspire and Freespire.

Notices


Reply
  Search this Thread
Old 09-29-2006, 11:23 AM   #1
obnascar
Member
 
Registered: Aug 2005
Location: Wisconsin USA
Posts: 185

Rep: Reputation: 30
Freespire-Want to set up password for sudo


I can not seem to find any info on how to set up a passwrod for sudo. I am runing Freespire and its default does not require entering a password for sudo.

But I want an extra security layer. How do I do this ?
 
Old 09-29-2006, 11:47 AM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
http://www.linuxhomenetworking.com/w...Users_and_Sudo

Edit the sudoers file as root using visudo from the command line. Then delete NOPASSWD from the line for your user (or comment out the line if its for all users). I would read up a bit on sudo just for the sake of not screwing it up. But you can always su to root and then visudo to fix it. Here's a really basic sudoers file
Code:
#/etc/sudoers
#
#This file MUST be edited with the 'visudo' command as root.
#
#See the man page for details on how to write a sudoers file.

#Host alias specification

#User alias specification

#Cmnd alias specification

#User privilege specification
root    ALL=(ALL) ALL
johndoe  ALL= ALL
 
Old 11-03-2006, 12:21 PM   #3
obnascar
Member
 
Registered: Aug 2005
Location: Wisconsin USA
Posts: 185

Original Poster
Rep: Reputation: 30
Want to set up password for sudo

Quote:
Originally Posted by pljvaldez
http://www.linuxhomenetworking.com/w...Users_and_Sudo

Edit the sudoers file as root using visudo from the command line. Then delete NOPASSWD from the line for your user (or comment out the line if its for all users). I would read up a bit on sudo just for the sake of not screwing it up. But you can always su to root and then visudo to fix it.

I guess I did goof it up, I get this now when entering a command in a terminal and when trying to access Krusader root:
Code:
sudo: /etc/sudoers is mode 0744, should be 0440
Quote:
But you can always su to root and then visudo to fix it.
I'm not sure what fix it means.....fix it how ?

But I did made a backup of my orignial "sudoers" file, and when I use that it still gives me the same message as above. Can someone help me please ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
No password for sudo? orange400 Linux - Software 9 03-18-2012 10:08 AM
sudo password...? yubimusubi Linux - General 15 09-04-2009 12:08 AM
Require sudo to need 2 password Dralnu Linux - Security 2 05-19-2006 08:52 PM
make sudo ask for a password andy753421 Linux - Security 1 01-13-2005 07:32 PM
Piping password to sudo Umek Linux - General 7 03-21-2004 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linspire/Freespire

All times are GMT -5. The time now is 09:08 PM.

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