Find the answer to your Linux question:
Results 1 to 4 of 4
Hi ! On a computer in school I can login only as root. When I added a new user and set a password and tried to login with that username ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Jan 2004
    Location
    Belgrade, S&M
    Posts
    177

    Log in + permission problem


    Hi ! On a computer in school I can login only as root. When I added a new user and set a password and tried to login with that username i got the message "/bin/sh permission denied" and I get returned to the login prompt. I can't understand what the problem is because when I ran ls -al as root I got:

    drwxr-xr-x 20 root root 4096 Jul 6 20:18 ./
    drwxr-xr-x 20 root root 4096 Jul 6 20:18 ../

    for /
    -----------------------------------------------------------------------------------------------------------;
    drwxrwxrwx 2 root bin 4096 Jun 16 11:31 bin/

    for /bin and:
    -----------------------------------------------------------------------------------------------------------;
    lrwxrwxrwx 1 root root 4 Feb 2 18:41 sh -> bash*
    -rwxrwxrwx 1 root bin 628640 May 22 20:01 bash*

    for /bin/bash and /bin/sh
    -----------------------------------------------------------------------------------------------------------;
    for sh and bash. On the other files it is obvious that someone changed file permissions but I still don't get it why I can't login as another user...

  2. #2
    Linux User
    Join Date
    Jul 2004
    Posts
    256
    All users have *write* access to /bin/bash ? That can't be right...
    --monkey

  3. #3
    Linux Newbie
    Join Date
    Jan 2004
    Location
    Belgrade, S&M
    Posts
    177
    As I said it is a school computer for learnig purposes A lot of people typed and tested a lot of commands there .....

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    Jan 2004
    Location
    Belgrade, S&M
    Posts
    177
    userx:1000:100::/home/userx:/bin/bash -- this is from /etc/passwd, any thoughts ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •