You are not logged in.
Pages: 1
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
Umm... that solution seems weird...
Offline
Do you have a better one? If yes, put it here please. Thanks.
Offline
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
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
'-m -k /dev/null' ? Could this be the problem? Or maybe something wrong with the sudoers file?
Offline
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
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
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
Pages: 1