PDA

View Full Version : su root doesn't work



HaVaNa7
12-25-2008, 12:31 PM
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

Barry
12-25-2008, 03:40 PM
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?

HaVaNa7
12-25-2008, 04:21 PM
i think that this is the right way, isn't it?


# 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

Barry
12-25-2008, 06:31 PM
Yea, that looks right.

HaVaNa7
12-26-2008, 07:26 AM
ok, thnx.
So wich could be the problem?

Barry
12-26-2008, 01:22 PM
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.

proxy51
12-30-2008, 05:31 AM
I also had a problem with su for a new user. However this worked out for me . chmod u+s /bin/su