Cannot get superuser

I recently installed FreeBSD 7.2 on my desktop. After much research i got a graphical environment up and running. I cannot remember which files I edited to make this happen or if I installed xdm, gdm, or kdm. I do know that i installed the latest kde from ports. I configured it so that i get a graphical login and i am not allowed to login as root. once i am logged in i start konsole to configure internet and such. i try variations of the su command and all i get is "Sorry". i logged in in single user mode and added my user to the groups wheel and operator; still nothing. the permissions of su are -r-sr-xr-x.If anyone needs more information please let me know.
thanks
 
no i already had added it with sysinstall before i set the graphical environment. i just used single user mode to change the groups he belongs to.
 
And if you run 'groups' the user shows up in wheel? Are you sure you are entering the correct password for root?
 
Actually, you might want to /usr/bin/passwd root in single user mode since you said you can't login as root, this is from the console hopefully
so your su won't work either until you have the correct password for root.
 
su does not even ask me for a password it just says Sorry. as far as my root password i changed it already with single user mode just to be sure i knew what it was. the graphical login does not reject my root password it says that root logins are not allowed.it seems clear to me that when i set up X i did something wrong. i just have no idea what it was. oh yeah my user does show in groups as a member of wheel and operator.
 
What about if you use the text login to login as root, use alt-Fn where Fn is your function keys, only F8 is supposed to be on graphical, so F1 and F2 should have text mode logins.

What does your /etc/group actually look like, I'll use user as the name of the user and your /etc/group is supposed to look like this:
Code:
wheel:*:0:root,user
operator:*:5:root,user

Make sure the root is still there.
 
vincepoy said:
What about if you use the text login to login as root, use alt-Fn where Fn is your function keys, only F8 is supposed to be on graphical, so F1 and F2 should have text mode logins.

GUI is on F9.
 
group is supposed to be root, user? i used root:user. that could be the problem. also if i do Fn F1,2,3... i will get a text login? ill try these and let you know. thanks
 
artor19 said:
group is supposed to be root, user? i used root:user. that could be the problem. also if i do Fn F1,2,3... i will get a text login? ill try these and let you know. thanks

Yes, because root is supposed to stay in the group followed by added users after the comma... You only need to add the user to the group wheel in really... Assuming you are using 8.0-RELEASE which should by default looks like this:

Code:
# $FreeBSD: src/etc/group,v 1.35.10.1.2.1 2009/10/25 01:10:29 kensmith Exp $
#
wheel:*:0:root
daemon:*:1:
kmem:*:2:
sys:*:3:
tty:*:4:
operator:*:5:root
mail:*:6:
bin:*:7:
news:*:8:
man:*:9:
games:*:13:
ftp:*:14:
staff:*:20:
sshd:*:22:
smmsp:*:25:
mailnull:*:26:
guest:*:31:
bind:*:53:
proxy:*:62:
authpf:*:63:
_pflogd:*:64:
_dhcp:*:65:
uucp:*:66:
dialer:*:68:
network:*:69:
audit:*:77:
www:*:80:
nogroup:*:65533:
nobody:*:65534:

You just have to change, actually add the other users who should have root access besides root itself.
Code:
wheel:*:0:root

so it's:
Code:
wheel:*:0:root,user1

or

Code:
wheel:*:0:root,user1,user2

If you hit ALT+Fn key where Fn is F1-F8,F10-F12 keys, you'll get the text login. ALT-F9 will get you back to the graphical login. These are all virtual consoles and ALT-F1 is the one that will display the messages from the OS.
 
that worked. i needed the comma, not colon in group. thank you very much. if i would have read the documentation a little closer i would have seen it.
 
Another, easy, way to do it is:
# pw groupmod wheel -m user1
 
Back
Top