You are not logged in.

#1 2010-09-26 14:42:24

kcholakov
Member
From: Bulgaria
Registered: 2010-06-26
Posts: 40

[Solved] su: /bin/bash: Permission denied

New user created as:

groupadd mygroup
useradd -s /bin/bash -g myuser -m -k /dev/null myuser

When trying to log in:

[root@baraka ~]# su - myuser
su: /bin/bash: Permission denied

Solution:

chmod 755 /
chmod 755 /bin

[root@baraka ~]# su - myuser
[myuser@baraka ~]$

Offline

#2 2010-09-26 14:48:37

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,390
Website

Re: [Solved] su: /bin/bash: Permission denied

Umm...  that solution seems weird...

Offline

#3 2010-09-26 14:53:21

kcholakov
Member
From: Bulgaria
Registered: 2010-06-26
Posts: 40

Re: [Solved] su: /bin/bash: Permission denied

Do you have a better one? If yes, put it here please. Thanks.

Offline

#4 2010-09-26 15:05:10

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,390
Website

Re: [Solved] su: /bin/bash: Permission denied

My point was that if / and /bin were not 755 permission already then you would have had a lot more issues than that.   Is that the only thing you did to fix the issue?

Offline

#5 2010-09-26 15:08:47

kcholakov
Member
From: Bulgaria
Registered: 2010-06-26
Posts: 40

Re: [Solved] su: /bin/bash: Permission denied

The same for /home, but this does not matter for "su /bin/bash: Permission denied" error...I guess.

Last edited by kcholakov (2010-09-26 15:10:49)

Offline

#6 2010-09-26 15:20:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] su: /bin/bash: Permission denied

'-m -k /dev/null' ? Could this be the problem? Or maybe something wrong with the sudoers file?

Offline

#7 2010-09-26 15:39:17

kcholakov
Member
From: Bulgaria
Registered: 2010-06-26
Posts: 40

Re: [Solved] su: /bin/bash: Permission denied

No, I also tried creating the user without these options. Also once from the KUser application. The result was the same.

Last edited by kcholakov (2010-09-26 15:39:51)

Offline

#8 2010-09-26 15:47:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] su: /bin/bash: Permission denied

kcholakov wrote:

No, I also tried creating the user without these options. Also once from the KUser application. The result was the same.

Did you install Arch as a regular system or is it a more fancy setup: virtual machine, liveUSB and whatnot?

Offline

#9 2010-09-26 16:00:20

kcholakov
Member
From: Bulgaria
Registered: 2010-06-26
Posts: 40

Re: [Solved] su: /bin/bash: Permission denied

It is as a regular system. Maybe I did something in the past causing this behavior, which I do not remember now. Anyway, that helped me for now.

Offline

Board footer

Powered by FluxBB