Find the answer to your Linux question:
Results 1 to 6 of 6
I get the following error when I try to login in as root. fanfan@Desky ~ $ su su: Permission denied Sorry. I've tried gpasswd -a <fanfan> wheel, but I get ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Jul 2005
    Posts
    122

    su: Permission Denied


    I get the following error when I try to login in as root.

    fanfan@Desky ~ $ su
    su: Permission denied
    Sorry.

    I've tried gpasswd -a <fanfan> wheel, but I get -su: fanfan: No such file or directory.

    I can login as root, but I can't use su.

    Any help MUCH appreciated.

    -Brian
    There is no problem so complicated that you cannot find a very simple answer to it if you look at it in the right way

  2. #2
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    You're certain you're a member of the 'wheel' group? Run the 'groups' command to check.

    I take it you didn't change the permissions of 'su'? What's the output of 'ls -l /bin/su'?

  3. #3
    Linux Newbie
    Join Date
    Jul 2005
    Posts
    122
    Ok, I am not a member of the wheel group apparently. I ran gpasswd -a <fanfan> wheel to make myself part of wheel, but I get the error bash: fanfan: No such file or directory Am I doing this wrong?

    Thanks a lot Cabhan, I now at least know what the problem is.

    -Brian
    There is no problem so complicated that you cannot find a very simple answer to it if you look at it in the right way

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    I assume the username is 'fanfan'? Run this command as root:
    Code:
    gpasswd -a fanfan wheel
    You then need to fully logout from the system. You can then login as fanfan, and you should be a member of the group.

  6. #5
    Content Team tylerwylie's Avatar
    Join Date
    Apr 2004
    Posts
    120
    Looks just like a syntax error then hehe.

  7. #6
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    Also, don't forget that your groups won't change until you log out, then log back in.
    Flies of a particular kind, i.e. time-flies, are fond of an arrow.

    Registered Linux User #408794

Posting Permissions

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