SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2014-02-16 17:57:57

77Thatguy77
New Member
Registered: 2014-02-12
Posts: 4

Sudo requires a password, when every source says it shouldnt

im trying to run a file share and I seem to a hit a wall every time

when I enter "sudo apt-get install cifs-utils" its comes up with this

We trust you have received teh usual lecture from the local System Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2)think before you type.
#3) with great poewr comes great responsibility.

[sudo] Password for *my account* 

and i've tried every source and they say that Sudo should just give you a direct bypass to needing the root password, and mine seems to just give me the finger on that :l, so help would be much appreciated.

Offline

Help fund CrunchBang, donate to the project!

#2 2014-02-16 18:10:10

ohnonot
...again
Registered: 2012-05-22
Posts: 2,205

Re: Sudo requires a password, when every source says it shouldnt

the fact that you are receiving this message again and again means that you have never given your password so far - because this message comes only when you use sudo for the first time.

yes, sudo gives you a direct bypass to needing the root password - instead it is asking for the user password & granting root privileges.
tried entering that?

Offline

#3 2014-02-17 23:50:18

77Thatguy77
New Member
Registered: 2014-02-12
Posts: 4

Re: Sudo requires a password, when every source says it shouldnt

Ok, so my user password worked the first time, now its doing sweet fuck all  neutral

Offline

#4 2014-02-18 00:23:43

iann
#! Die Hard
Registered: 2010-09-10
Posts: 720

Re: Sudo requires a password, when every source says it shouldnt

You're not helping yourself here.  If you say what you're trying to do, what you actually do, and what happens, then you might get a solution (99% of the time you will from this forum, if you're patient enough).  Swearing and criticising when you are clearly barking up the wrong tree isn't going to get anywhere.

Offline

#5 2014-02-18 13:33:56

ohnonot
...again
Registered: 2012-05-22
Posts: 2,205

Re: Sudo requires a password, when every source says it shouldnt

personally i have nothing against non-abusive use of the f-word, but your last post really didn't make much sense.
best to post as accurately as you can (paste code and/or terminal output and/or screenshot, combined with precise description of your setup) what is happening and where it goes wrong and how.
and what you tried to solve/troubleshoot/understand the problem.
and, i hate to ask this, but maybe your caps lock is on? or a similar case of pebkacwink

Offline

#6 2014-02-18 13:37:07

Nadir Point
Member
From: CO
Registered: 2014-02-10
Posts: 25

Re: Sudo requires a password, when every source says it shouldnt

ohnonot wrote:

...this message comes only when you use sudo for the first time.

Sorry to nitpick, but a wee qualification - 1st time in a given session.

Open another shell and you start over.

Offline

#7 2014-02-18 13:56:43

wuxmedia
wookiee madclaw
From: Back in Blighty
Registered: 2012-03-09
Posts: 1,478
Website

Re: Sudo requires a password, when every source says it shouldnt

^ what? maybe on your system, but I think everyone else's debian system - it comes up the first time it's ever run, then it never comes up - ever.
until you re-install.
or
you've changed this, or it's default on whatever you are running;
Defaults lecture=always

Last edited by wuxmedia (2014-02-18 13:57:28)

Offline

#8 2014-02-18 16:39:44

ew
#! Die Hard
Registered: 2012-09-27
Posts: 1,975

Re: Sudo requires a password, when every source says it shouldnt

Not true. If the sudo password isn`t asked for, then you have some serious security-issue with your setup. Actually, it shouldn`t even stick trough the current session. If you launch terminator and type sudo, it will ask for the password the first time, and then it will not ask any more in that instance of terminator. But if you close terminator, and launch it again, then you should be asked for the password again the next time you use sudo in terminal.

Think about it. Whats the point with a sudo password if you just have to enter it once. Then the password is redundant, and your linux installation is the most insecure linux-system ever, as anyone can install programs or do anything to your system... Deep down you know that this is wrong, and if it is that way with you, then you seriously need to do something about it.

Edit: When I think about it. Could it be that you are confusing it with unlocking the gnome-keyring? Because that is done only once manually, and after that, it will automatically be unlocked at login , as long as you don`t use auto-login.

Last edited by ew (2014-02-18 16:44:10)


- apt-mark hold account

Offline

#9 2014-02-18 17:00:39

Nadir Point
Member
From: CO
Registered: 2014-02-10
Posts: 25

Re: Sudo requires a password, when every source says it shouldnt

ew wrote:

If you launch terminator and type sudo, it will ask for the password the first time, and then it will not ask any more in that instance of terminator. But if you close terminator, and launch it again, then you should be asked for the password again the next time you use sudo in terminal.

This is correct.  I don't know about "everyone else's Debian system."

Offline

#10 2014-02-18 17:15:45

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2012-03-22
Posts: 1,026
Website

Re: Sudo requires a password, when every source says it shouldnt

@above: you do not know what you are talking about  ]:D

1) This:

$ sudo <command>
We trust you have received teh usual lecture from the local System Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2)think before you type.
#3) with great power comes great responsibility.

[sudo] Password for iMBeCil: 

shows up only once per #! install. I.e., this shows up first time you issue 'sudo' after fresh #! installation, only. (Actually, this shows up in cb-welcome script, but only because cb-script needs 'sudo'.)

2) This:

$ sudo <command>
[sudo] password for iMBeCil:

shows up in every new terminator, AFTER 1). And even in the very same terminator after certain amount of time passes (10 min? 15 min? I don't know.)

I think that some of you talk about 1), and others about 2).

Last edited by iMBeCil (2014-02-18 17:16:20)


Postpone all your duties; if you die, you won't have to do them ..
--> The very new BL forum! <--

Offline

#11 2014-02-18 17:57:55

Nadir Point
Member
From: CO
Registered: 2014-02-10
Posts: 25

Re: Sudo requires a password, when every source says it shouldnt

iMBeCil wrote:

...in the very same terminator after certain amount of time passes (10 min? 15 min? I don't know.)

That is also correct, if you want be even more nit-picky.  Let us know when to assume timeouts bearing on that actual process behavior being explained next time.  The first file creation splash is for people like the OP.  If you don't get it, you might want to reconsider attempting to use it at all.

Last edited by Nadir Point (2014-02-18 17:58:49)

Offline

#12 2014-02-18 21:20:09

wuxmedia
wookiee madclaw
From: Back in Blighty
Registered: 2012-03-09
Posts: 1,478
Website

Re: Sudo requires a password, when every source says it shouldnt

Just being nit picky - It's called a thread, because guess what?
It's threaded!
Don't take up sewing you might end up strangling yourselves.

I would quote and explain it all, but Imbecil does a great job.

Offline

#13 2014-02-18 21:43:33

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2012-03-22
Posts: 1,026
Website

Re: Sudo requires a password, when every source says it shouldnt

^Thanks wuxmedia.

^^Not quite sure if you are trying to p*ss me off, or what (and why? NB: engRish is not my native language) but here it is: "Debian's sudo package has the password timeout set to 15 minutes. This means that when you first enter your password, as long as you don't wait more than 15 minutes between sudo commands, you won't have to enter it again. The password timeout can be immediately expired with sudo -k."


Postpone all your duties; if you die, you won't have to do them ..
--> The very new BL forum! <--

Offline

#14 2014-02-19 22:29:50

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: Sudo requires a password, when every source says it shouldnt

Dear me this is getting fractitous...
In reply to 77Thatguy77:
If you really want to use sudo without a password (!) here's how...
open a terminal & type "sudo nano /etc/sudoers"
enter your user password (the password you use to log on with)
scroll down to the bottom of the file and add the 2 lines:
<your user name> ALL=(ALL:ALL) ALL
<your user name> ALL=(ALL) NOPASSWD: ALL
(where <your user name> is the name you log on with)
press <ctrl> & "x" together then press "y" and enter.
Good luck smile

Last edited by Head_on_a_Stick (2014-02-21 10:02:31)

Offline

#15 2014-02-19 22:39:26

dot|not
#! Junkie
From: /dev/null
Registered: 2013-09-05
Posts: 371

Re: Sudo requires a password, when every source says it shouldnt

Nadir Point wrote:

Sorry to nitpick, but a wee qualification - 1st time in a given session.

Sorry to nitpick: Depends on your configuration of sudo.

Offline

#16 2014-02-20 00:11:17

ew
#! Die Hard
Registered: 2012-09-27
Posts: 1,975

Re: Sudo requires a password, when every source says it shouldnt

dot|not wrote:
Nadir Point wrote:

Sorry to nitpick, but a wee qualification - 1st time in a given session.

Sorry to nitpick: Depends on your configuration of sudo.

That`s true. But the answer is obviously made based on the default configuration in #! big_smile


- apt-mark hold account

Offline

#17 2014-02-20 14:22:03

Nadir Point
Member
From: CO
Registered: 2014-02-10
Posts: 25

Re: Sudo requires a password, when every source says it shouldnt

Props to head-on-a-stick for providing non-contentious, problem-solving illumination!

Offline

#18 2014-02-20 14:59:36

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2012-03-22
Posts: 1,026
Website

Re: Sudo requires a password, when every source says it shouldnt

Moar liek funnel-on-the-head  tongue


Postpone all your duties; if you die, you won't have to do them ..
--> The very new BL forum! <--

Offline

#19 2014-02-20 15:04:52

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: Sudo requires a password, when every source says it shouldnt

iMBeCil wrote:

Moar liek funnel-on-the-head  tongue

lmao! v. funny dood smile

Offline

#20 2014-02-21 12:22:38

ew
#! Die Hard
Registered: 2012-09-27
Posts: 1,975

Re: Sudo requires a password, when every source says it shouldnt

iMBeCil wrote:

Moar liek funnel-on-the-head  tongue

Yes, and I especially love this:

"If you really want to use sudo without a password (!) here's how..."
             lol


- apt-mark hold account

Offline

#21 2014-02-21 13:26:35

Jimbo_G
#! Barcalounger
From: Paris, France
Registered: 2009-12-08
Posts: 136

Re: Sudo requires a password, when every source says it shouldnt

All these replies and we never actually found out what the OP's problem was...  roll

Offline

#22 2014-02-21 17:49:26

Nadir Point
Member
From: CO
Registered: 2014-02-10
Posts: 25

Re: Sudo requires a password, when every source says it shouldnt

Jimbo_G wrote:

All these replies and we never actually found out what the OP's problem was...  roll

It's just as well.  Not understanding SUDO and a reluctance to enter passwords can be a dangerous thing.

Offline

#23 2014-02-22 11:14:59

ew
#! Die Hard
Registered: 2012-09-27
Posts: 1,975

Re: Sudo requires a password, when every source says it shouldnt

Nadir Point wrote:
Jimbo_G wrote:

All these replies and we never actually found out what the OP's problem was...  roll

It's just as well.  Not understanding SUDO and a reluctance to enter passwords can be a dangerous thing.

Agreed, and I would never tell anyone how to set up their system so that they don't have to enter a password for sudo. Not unless I was quite sure that the OP knew just how unsecure his system would become.


- apt-mark hold account

Offline

#24 2014-02-23 01:14:53

77Thatguy77
New Member
Registered: 2014-02-12
Posts: 4

Re: Sudo requires a password, when every source says it shouldnt

Ok, so (dont turn this into a "super user shouldn't do this argument" .... please....) Sudo is asking for my pass word, so the first time, my user password worked for Sudo, but now Sudo wont accept my user password and i have no idea what to do :l help please.

Offline

Be excellent to each other!

#25 2014-02-23 01:20:54

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: Sudo requires a password, when every source says it shouldnt

Could you tell us exactly what has happened so far? What commands are you trying to do? Have you changed anything regarding sudoers or users?

Post the terminal output with an example of what you are talking about


BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator smile

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo