Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Totally new here. Just last night installed Mandrake 8.2, non-GUI on my PII/350Mhz box. I want to learn Linux from the ground up and eventually turn this box into my main home network gateway running firewall, nameserver, proxy, httpd, and ftpd services and forward IP requests to an internal (ahem) MS IIS server for self development.
The problem(s):
1. Following our installation last night everything worked great. You could not directly log in using root but you could login as a regular user and then use the su command to use the root password. Is this a normal restriction?
2. Now all of a sudden I cannot use su. It tells me the same password I have been using all along is incorrect. The funny thing is that I can enter the machine from another computer on the internal network using WebMin and do anything to the system I please. I have even used it to successfully change the root password but it doesn't change the behavior I spoke of above.
Is there anything I can reset or something to get this working correctly again?
Not exactly sure I understand the full concept yet but what I ended up doing after visiting the link was adding my user to the wheel group. This enabled the user to use su.
I still don't understand why I cannot login to the machine directly under the root account.
OK, thanks. Actually I just wanted to understand and make sure it wasn't something I did wrong during installation. I'll leave it this way and learn to work with this.
To see what the effect would be I raised my Mandrake Security level from "Normal" to "High". Now I can't login as root. I get "password is incorrect". I can't SU in a terminal, as I get the same "password is incorrect" message. I have one other user account assigned to group USER only. How can I lower the security level to regain access as root?
You might be able to do a little hack-around. Boot off a Linux CD (linux rescue style) and then mount your root partition. Edit the "/etc/group" file on that partition and change the user to the "wheel" group. Then un-mount the root partition and reboot (not to the CD). Forgive me if this doesn't work, I don't use Mandy yet. Still working on RH, Gentoo, and Solaris.
A little impatient? 8:47 reply, then a 9:10 "I give up". Come on, I stepped out for a coffee break.
I am curious now if you actually had another user though. You say the only entry in the groups file was for root? If you had another user, then you should have seen an entry for "users" or a group matching the user accounts name as well.
Anyway, you would've needed to get the numeric value of the wheel group and then modified the entry for the user in the passwd file. But I would have to boot up my linux box to recall which field is the group. I think it's the 3rd field, but I may be wrong.
There were other ways as well, for instance, you could have chrooted to your / partition, then added a user, with wheel as the group. That's one of the fun parts of linux, is finding all the ways that you can do the same thing.
Good luck on the rebuild, never hurts if you can spare the time and won't loose data.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.