Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't get root access
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Extrauterina
n00b
n00b


Joined: 14 Feb 2015
Posts: 4

PostPosted: Sat Feb 14, 2015 8:18 pm    Post subject: Can't get root access Reply with quote

Hello,

It seems that I am unable to get root permissions and because of that I can't use emerge to install any other stuff that I need.

I found out that I can't switch to superuser with the su command because my one and only user account isn't in the wheel group. The problem there is that only root seems to be able to add him to the group and, unfortunately, I don't know how I can get any form of root access.

I'm using KDE and I've found the /usr/share/config/kdm/kdmrc file, but, as you can guess, I don't have permission to alter it to enable logging in as root.

KDE starts up automatically when the OS is booting so I really don't have any other idea what to do.

I am running Gentoo in VMware Player.

I am sorry if this question was answered elsewhere, I tried my best to search through related topics and did a lot of searching on google, but mostly people solve this issue by adding the user to the wheel group, which I am unable to do at the moment.

Could anyone please help me out a bit with this? Any form of help will be appreciated.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Sat Feb 14, 2015 8:31 pm    Post subject: Reply with quote

just alter the /etc/shadow file with a password of your choice.

though vmware is different as phyisical drive but should be also possible.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10291
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Feb 14, 2015 8:34 pm    Post subject: Reply with quote

Just login as root from a text console and change the group membership in the normal fashion:
Code:
usermod -a -G wheel myusername
- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Extrauterina
n00b
n00b


Joined: 14 Feb 2015
Posts: 4

PostPosted: Sat Feb 14, 2015 8:36 pm    Post subject: Reply with quote

tw04l124 wrote:
just alter the /etc/shadow file with a password of your choice.

though vmware is different as phyisical drive but should be also possible.


When I try to open that file i get "Permission denied". I am not sure why I need to alter passwords, I know them, it's just that "su" isn't working because I can't add the user to the "wheel" group :/
Back to top
View user's profile Send private message
Extrauterina
n00b
n00b


Joined: 14 Feb 2015
Posts: 4

PostPosted: Sat Feb 14, 2015 8:39 pm    Post subject: Reply with quote

John R. Graham wrote:
Just login as root from a text console and change the group membership in the normal fashion:
Code:
usermod -a -G wheel myusername
- John


I've found how to change group memberships using gpasswd or usermod, but logging in as root is what is troubling me at the moment. KDE doesn't allow me to log in as root into it, and KDE starts up automatically as the system boots so it seems that I have to somehow gain access though it.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43559
Location: 56N 3W

PostPosted: Sat Feb 14, 2015 8:39 pm    Post subject: Reply with quote

Extrauterina,

Press Ctrl-Alt-F2 to get a console login shell.
Log in as root ...
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Extrauterina
n00b
n00b


Joined: 14 Feb 2015
Posts: 4

PostPosted: Sat Feb 14, 2015 8:40 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Extrauterina,

Press Ctrl-Alt-F2 to get a console login shell.
Log in as root ...


Thank you very much, that did the trick!

Sorry for asking such a dumb question, it's my first time using Gentoo so I'm still a bit lost.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43559
Location: 56N 3W

PostPosted: Sat Feb 14, 2015 8:46 pm    Post subject: Reply with quote

Extrauterina,

There are no dumb questions - except the one you don't ask.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum