You are not logged in.

#1 2016-08-24 16:23:39

aiir
Member
Registered: 2016-08-19
Posts: 11

tried removing password. now sudo won't workk

Hello,

I tried to remove the password, this is the following outcome:

- Auto login (good)
- Can't do any sudo commonds , if i enter nothing then it thinks its wrong.
- Sometimes it asks me for password which i type it, it works.


What can I do here to turn back on password so I can do sudo commonds

OR CAN I JUST REMOVE THE PASSWORD COMPLETELY?

thank you.

Offline

#2 2016-08-24 16:39:32

damo
....moderator....
Registered: 2015-08-20
Posts: 6,732

Re: tried removing password. now sudo won't workk

aiir wrote:

Hello,

I tried to remove the password,....

How? What commands did you use?


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2016-08-24 16:54:26

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: tried removing password. now sudo won't workk

Use the command 'history' if you're unsure about how you tried doing this as well. Did you try doing something weird with the sudoers file, like removing the password for certain commands?


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#4 2016-08-24 17:18:37

aiir
Member
Registered: 2016-08-19
Posts: 11

Re: tried removing password. now sudo won't workk

you know that file in /etc/ hosts and some other commond .


THAT IS ALL
DO I HAVE TO GO INSTALL ANOTHER OS

Offline

#5 2016-08-24 18:06:33

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: tried removing password. now sudo won't workk

aiir wrote:

you know that file in /etc/ hosts and some other commond .


THAT IS ALL
DO I HAVE TO GO INSTALL ANOTHER OS

We can't help you if you don't provide a (logical) answer to the questions... What did you try doing when you said you "tried removing password" ?  From what user? and from where?


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#6 2016-08-24 20:04:16

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: tried removing password. now sudo won't workk

aiir wrote:

- Can't do any sudo commonds , if i enter nothing then it thinks its wrong.

Please open a terminal and run these commands and then copy&paste the output here (using code tags if possible):

groups
sudo -l

That last letter is an lower-case "ell" , it is not a number "1".


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#7 2016-08-24 20:59:39

cloverskull
Member
Registered: 2015-10-01
Posts: 343

Re: tried removing password. now sudo won't workk

Hey guys, can we have a timeout here? I don't think the community should tolerate incomplete error reports and all-caps passive aggressive statements demanding solutions.

@aiir - Respectfully, there's absolutely no way anybody can know how to fix your problem if you don't tell anyone what you did. Please be respectful of the community and its members if you'd like meaningful and constructive feedback.

Offline

#8 2016-08-24 21:05:03

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: tried removing password. now sudo won't workk

cloverskull wrote:

I don't think the community should tolerate incomplete error reports and all-caps passive aggressive statements demanding solutions.

I was working on the supposition that the OP's first language is not English, I think some allowances should be made in such circumstances.


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#9 2016-08-25 01:14:51

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: tried removing password. now sudo won't workk

Head_on_a_Stick wrote:
cloverskull wrote:

I don't think the community should tolerate incomplete error reports and all-caps passive aggressive statements demanding solutions.

I was working on the supposition that the OP's first language is not English, I think some allowances should be made in such circumstances.

Agreed. Plus I've learned that typing in caps.. doesn't necessarily mean yelling in all cultures. It comes across us as demanding, but other people interpret it in other ways...I don't get the feeling that OP was trying to be rude or anything..


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#10 2016-08-25 16:15:10

cloverskull
Member
Registered: 2015-10-01
Posts: 343

Re: tried removing password. now sudo won't workk

Cool, sorry for OT tangent. smile

Offline

#11 2016-08-27 19:23:31

bobo
Member
Registered: 2016-08-27
Posts: 10

Re: tried removing password. now sudo won't workk

I think that aiir wants sudo without a password. Is this so? This is what I did:

You need to become ROOT.

$ sudo passwd

It asks you twice for the ROOT password, you enter them, and voilà!

Next, you su to root:

$ su (Enter)
passwd: xxxxxx

and now you become root:
edit the file /etc/sudoers

# nano /etc/sudoers

and put this line at the end of the sudoers file:

bobo ALL = NOPASSWD : ALL

replace 'bobo' with your username, save/exit from the editor, fire up the terminal again and test it as user:

$ sudo apt-get update

and it should start updating...no password.

If this is not what you were asking, apologies for wasting your time.


simplicity and speed
IceWM - JWM - Ratpoison

Offline

Board footer

Powered by FluxBB