Results 1 to 7 of 7

Thread: su root doesn't work

  1. #1
    Junior Member
    Join Date
    Dec 2008
    Posts
    41

    Default su root doesn't work

    First of all, marry Christmas!

    I have created a new user and added it to users and wheel group.
    but when i log in with the new user and i try to log in in console as root it ask password, i type my root password and it says sorry.
    I'm sure that the password is correct and it hasn't any special caracter or symbol that can cause problems.

    Is it a bug? How can i solve it?

    Thx in advance

  2. #2
    My life is this forum Barry's Avatar
    Join Date
    Jan 2010
    Posts
    3,817

    Default

    Quote Originally Posted by HaVaNa7 View Post
    First of all, marry Christmas!

    I have created a new user and added it to users and wheel group.
    but when i log in with the new user and i try to log in in console as root it ask password, i type my root password and it says sorry.
    I'm sure that the password is correct and it hasn't any special caracter or symbol that can cause problems.

    Is it a bug? How can i solve it?

    Thx in advance
    Did you add the user to the sudoers file?
    Of course, if you really wanted to have some fun, go to Wal-Mart late at night and ask the greeter if they could help you find trashbags, roll of carpet, rope, quicklime, clorox and a shovel. See if they give you any strange looks. --Streaker69

  3. #3
    Junior Member
    Join Date
    Dec 2008
    Posts
    41

    Default

    i think that this is the right way, isn't it?

    Code:
    # sudoers file.
    #
    # This file MUST be edited with the 'visudo' command as root.
    #
    # See the sudoers man page for the details on how to write a sudoers file.
    #
    
    # Host alias specification
    
    # User alias specification
    
    # Cmnd alias specification
    
    # Defaults specification
    
    # Runas alias specification
    
    # User privilege specification
    root	ALL=(ALL) SETENV: ALL
    marco	ALL=(ALL) SETENV: ALL
    
    
    # Uncomment to allow people in group wheel to run all commands
    # and set environment variables.
    # %wheel	ALL=(ALL) SETENV: ALL
    
    # Same thing without a password
    %wheel	ALL=(ALL) NOPASSWD: SETENV: ALL
    
    # Samples
    # %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
    # %users  localhost=/sbin/shutdown -h now

  4. #4
    My life is this forum Barry's Avatar
    Join Date
    Jan 2010
    Posts
    3,817

    Default

    Yea, that looks right.
    Of course, if you really wanted to have some fun, go to Wal-Mart late at night and ask the greeter if they could help you find trashbags, roll of carpet, rope, quicklime, clorox and a shovel. See if they give you any strange looks. --Streaker69

  5. #5
    Junior Member
    Join Date
    Dec 2008
    Posts
    41

    Default

    ok, thnx.
    So wich could be the problem?

  6. #6
    My life is this forum Barry's Avatar
    Join Date
    Jan 2010
    Posts
    3,817

    Default

    Quote Originally Posted by HaVaNa7 View Post
    ok, thnx.
    So wich could be the problem?
    Beats me. BackTrack was never intended to be a stand alone every day use distro, so I'm not sure what was done to the underlying os, if anything.
    Of course, if you really wanted to have some fun, go to Wal-Mart late at night and ask the greeter if they could help you find trashbags, roll of carpet, rope, quicklime, clorox and a shovel. See if they give you any strange looks. --Streaker69

  7. #7
    Just burned his ISO
    Join Date
    Jun 2007
    Posts
    3

    Default Try this for su

    I also had a problem with su for a new user. However this worked out for me . chmod u+s /bin/su

Posting Permissions

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