|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| ARCHIVES - HowTos Discussions Have any questions about any HowTo found at the wiki? Post in here! |
|
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
"The document /en/2000/05/maddin_einbruch.html is no longer available at support.novell.com or has been updated in another document. "
... is it worth finding ? ============== For other readers, a clarification would be helpful if no user/password known... I stumbled here as I have inherited linux laptops at work and previous admin took root password with him. I more or less followed the discussion here after reading http://forums.suselinuxsupport.de/in...howtopic=14200. Sounds straightforward enough as I did this sort of thing with Solaris many moons ago. However, as I've rusted a bit since then, I'm not 100% clear as to why the su has to be made from an ordinary user - which in my case I won't know either and the original posting seemed to ignore as a problem. When I try this, I'll resort to vi a new entry in passwd and shadow for some user foo if I can'r just log in as root back in non-recovery mode. I can feel the shadow of group ids and other long-forgotten gotcha's looming nevertheless, it will be fun re-discovering some old tricks. I'll revist here if my mission stumbles. Mark |
|
|||
|
Quote:
If I would write: "login as a root and then run passwd", someone would as similar question: why login as a root if you can su? Anyway, I don't like to be logged as a root from obvious reasons. Manuals like this assume that user know what he/she is doing. I don't see any point to explain that one can login like root or su to root or use all possible variations of each step in the howto
|
|
|||
|
Quote:
|
|
|||
|
There are a few different ways and mine may not be the best but it works.
Here's the complete syntax: Grub Boot Loader (assumes no grub password on boot loader) SuSE8/9 On grub bootup screen: 1). Edit the kernel load line and add linux init=/bin/bash at end of line 2). Continue to boot 3). At #prompt enter: mount -o remount,rw / cp -p passwd passwd.old (just in case) vipw remove 'x' in second column wq! mount -o remount,ro / 4). Reboot the system 5). Username: root Leave password blank 6). Resync password file with shadow file (if applicable) pwconv 7). passwd root 8). Change password to new one 9). Login as a normal user and su - to test the root password 10). Remove passwd.old if you're truly paranoid |
|
|||
|
It asks me for a password when i load from the DVD and type in #root....
|
|
|||
|
Quote:
|
|
|||
|
Hi ...
I really confused with all the suggestion listed above. Hope someone will look at my problem and help me to find the solution. 1. I forgot the root password. 2. Unfortunately, i don't have the normal user. I boot in rescue system. And tried edit the passwd and shadow file as suggested. But cannot login as user with a blank password. Beside i don't have the normal user so i don't no what to do. Some of my friends told that might be the server has been hardened (protected). So help me. Please ... |
|
|||
|
You don't need user accout to reset root password.
when you see GRUB menu selection (first screen before booting), scroll down to Failsafe and change/add init 1 then press enter this will give you single mode without root password but with root priviledges. Mount /etc and follow howto. Now, it is really, really stupid to use root account as default sorry but there is nothing I can do about it. This is stupid. |
|
|||
|
Quote:
Frankly, if it was me, I would be hard pressed to offer any help, given how silly it is to operate as root all the time. There must be dozens of posts noting that it is not a bright thing to do, and practically every beginner's linux book notes this fact. My "hat" is off to broch here, for his still showing some patience in still making a post that gives you a solution (and not forcing you to look it up yourself). |
|
|||
|
My motherboard recently died, and when I installed the new one, I found my root password didn't work (for whatever reason). I tried the above methods without sucess. (Not trying to argue; it's just what happened.) On Novell's website, I found this page. It worked like a charm first time, no problems. I offer it here as another alternative. In case the link doesn't work or dies, I'll paste the article here. (FYI; I used it on Suse 10.1)
Quote:
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|