You are not logged in.

#1 2009-08-08 19:12:19

roelof
Member
Registered: 2009-08-07
Posts: 99

[solved] su not working

Hello,

I have a new clean install of Arch.
I have 2 users root and roelof
When im root and im doing su everything is working right.
But when im roelof and im doing su i always get a password incorrect.

How to solve this wierd problem.

Roelof

Last edited by roelof (2009-08-09 12:01:27)

Offline

#2 2009-08-08 19:15:08

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [solved] su not working

Do you enter the correct root password?  roelof's password and root's password may not be the same.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2009-08-08 19:26:42

roelof
Member
Registered: 2009-08-07
Posts: 99

Re: [solved] su not working

yep, I'm shure I entered the right password.

Roelof

Offline

#4 2009-08-08 19:30:35

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [solved] su not working

Ok, is a roelof member of the wheel group?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#5 2009-08-08 19:36:42

FreeArtMan
Member
From: Jelgava Latvia
Registered: 2009-08-08
Posts: 1
Website

Re: [solved] su not working

open /etc/group file and add to line
wheel::10:root
your user name
it should be somthing like that
wheel::10:root,roelof

Offline

#6 2009-08-08 19:38:03

roelof
Member
Registered: 2009-08-07
Posts: 99

Re: [solved] su not working

Hoi,

Roelof is not member of the wheel group, only member of the user group

Roelof

Offline

#7 2009-08-08 19:39:58

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [solved] su not working

use gpasswd to add it, don't edit /etc/group by hand

e.g.. gpasswd -a roelof wheel

and if you are not using gnome etc.


usermod -G ...

Last edited by loafer (2009-08-08 19:47:06)


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#8 2009-08-08 19:45:17

Pyntux
Member
From: Serbia
Registered: 2008-12-21
Posts: 391

Re: [solved] su not working

loafer wrote:

use gpasswd to add it, don't edit /etc/group by hand

e.g.. gpasswd -a roelof wheel

Why not edit /etc/group by hand? I always do nano /etc/group and put my user in to groups I want.


I do not speak English, but I understand...

Offline

#9 2009-08-08 19:48:53

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [solved] su not working

Hi Pyntux, you can do that no problem.  Just that using the tools traps any typos.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#10 2009-08-08 19:49:12

roelof
Member
Registered: 2009-08-07
Posts: 99

Re: [solved] su not working

oke,

I will try that tomorrow.
It's now around 10 o clock in the evening.
Almost time to sleep.

Roelof

Offline

#11 2009-08-08 19:59:25

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [solved] su not working

roelof wrote:

Hello,

I have a new clean install of Arch.
I have 2 users root and roelof
When im root and im doing su everything is working right.
But when im roelof and im doing su i always get a password incorrect.

How to solve this wierd problem.

Roelof

1. why are you doing su when you already are root?
2. You don't need to be a member or wheel to use su
3. sounds like the wrong password
4. how exactly are you trying to use su as your user?


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#12 2009-08-08 20:10:08

roelof
Member
Registered: 2009-08-07
Posts: 99

Re: [solved] su not working

1. why are you doing su when you already are root?

I was only trying if it works nothing else.

2. You don't need to be a member or wheel to use su

Oke

3. sounds like the wrong password

Im sure it not a wrong password.

4. how exactly are you trying to use su as your user?

Im user roelof and enter in the prompt su
then I get a message to enter the password, I enter the password of root.

After then i get a message that the password is not correct.

Roel

Last edited by roelof (2009-08-08 20:10:48)

Offline

#13 2009-08-08 20:11:31

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [solved] su not working

Sorry, wheel is not required by Arch for su.  I use BSD too and should read  more!

Anyway, what's the output of groups?

Last edited by loafer (2009-08-08 20:13:44)


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#14 2009-08-08 20:26:38

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [solved] su not working

Maybe a wrong keyboard layout playing up, but usually it's user error and not system error wink. Reset your pass, check it again, type your password in the clear so you can actually see what letters it's composed of, just to make sure.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#15 2009-08-08 20:51:08

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [solved] su not working

There was a bug which broke su, but that was ages ago. Been long since you updated your system?


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#16 2009-08-09 08:07:55

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [solved] su not working

Two quick thoughts which come up to my mind:
1) Did you also try "su -" instead of plain "su"?
2) Does the same happen with another user (just for testing purposes)?


To know or not to know ...
... the questions remain forever.

Offline

#17 2009-08-09 10:40:48

roelof
Member
Registered: 2009-08-07
Posts: 99

Re: [solved] su not working

Hello,

That's a lot of questions.

B : I did it and when I type the password in a terminal. Everything looks allright.
Mr. Elendig : I  re-installed the system by ftp, so i migt think that that's not the problem.
Beranrcher :  1) I also try su - but problem still exist.
                    2) Do you mean make another su by addepting visodo file ?

Roelof

Offline

#18 2009-08-09 10:57:51

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [solved] su not working

visudo has no connection to su at all.  It is used to edit /etc/sudoers, the config file for sudo.  Create a new user and try "su - newuser".


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#19 2009-08-09 12:01:06

roelof
Member
Registered: 2009-08-07
Posts: 99

Re: [solved] su not working

This one is solved.
I gave root a password and now everything is good,

Roelof

Offline

Board footer

Powered by FluxBB