Unable to login as admin

Hello,
I have installed openSUSE above windows 7, created a user and added the user to the root user group. Now when I boot onto SUSE and get into the shell, it is not logging in as root. Please help.

Maybe someone can correct me, AFAIK unlike Windows you can’t simply create another root account as you’ve described. It’s a fundamental difference between the two OS. The best you can do is follow the normal procedures using “su” and “sudo.”

HTH,
TS

On Mon, 16 Apr 2012 15:06:03 +0000, nibiran wrote:

> Hello,
> I have installed openSUSE above windows 7, created a user and added the
> user to the root user group. Now when I boot onto SUSE and get into the
> shell, it is not logging in as root. Please help.

Don’t log in as root - log in as a regular user and then use ‘su -’ or
‘sudo’ to run things as root.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Well yes, you can. I am doing that. But you have to give the other account a UID of 0. You can’t just add it to the root group. And some software might be confused. If the software use $HOME to find where the user lives, it will be fine. But if it looks up the user from the uid, then it will probably get the home directory for the first user in “/etc/passwd” with uid of 0.

As Jim say, don’t login to the GUI as root. Don’t do it as the main root user or as an alternative root user. Login as an ordinary user, then use “su” on those special occasions where root access is needed.

But, if you simply assign uid0 to the new account aren’t you just swapping accounts with root permissions? You’ll still have only one account with root permissions on the system albeit with a different username.

TS

Same UID, different home directory.