LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 02-01-2002, 06:28 PM   #1
dj_relentless
Member
 
Registered: Jan 2002
Location: NZ, AKL
Distribution: Redhat 7.1
Posts: 168

Rep: Reputation: 30
changing roots passwd


Just wanna make sure I didn't break anything..

I couldn't seem to change roots password,
when I run passwd root it ask for the password then gives the error
passwd: root not found in /etc/passwd

I checked the passwd file and its got

root:x:0:0:root:/root/bin/bash

I added another user fine and could set the password ok..

I tried to delete root and recreate but it gave me
error deleting password entry..

I can't see any error in the line, no missing bits that I can see..

and I thought I'd be a smart ass and try fix it..
umm..so..
I ran pwck and it said there was an error in the line..and I said yes to remove it..
then I added the user root again and it gave all different info for the passwd file..soo..I changed it back to what it was before and now it says there no group 0..
Sooooo..
I checked the group file and it had removed the root entry so I just created it..
then the passwd change thing worked..

I'm just wondering if I broke anything while doing this cause I was just kinda taking educated guesses at it? I'd had to log out and not be able to log back in..

I was also thinking I might of made a small typo at the begining cause I noticed there was not/root/bin/bash file so I changed it to /bin/bash..

Last edited by dj_relentless; 02-01-2002 at 06:30 PM.
 
Old 02-01-2002, 06:58 PM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Re: changing roots passwd

Quote:
Originally posted by dj_relentless
I'm just wondering if I broke anything while doing this cause I was just kinda taking educated guesses at it? I'd had to log out and not be able to log back in..
run "id" when logged in as root. If you see this:

root:/home/gerard/lfs# id
uid=0(root) gid=0(root) groups=0(root)


then everything seems be fine at first glance.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing username/passwd in Thunderbird leupi Linux - Software 2 04-17-2005 09:35 AM
Two roots? revenge80200 Yoper 0 01-29-2005 05:55 PM
The different type of roots Gins Linux - General 1 12-19-2004 12:57 PM
can't "su -" to root after changing /etc/passwd dzz Linux - Security 2 11-05-2004 01:39 PM
Installpkg and different roots pcause Slackware 2 08-12-2003 01:21 PM


All times are GMT -5. The time now is 09:21 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration