LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-30-2003, 10:05 AM   #31
Computergirl24
Member
 
Registered: Dec 2003
Location: PA, USA
Distribution: mandrake 9.1
Posts: 65

Original Poster
Rep: Reputation: 15

ok, say i can somehow manage to get the file onto a disk. how would i access that disk through linux?
 
Old 12-30-2003, 10:20 AM   #32
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
this page makes reference to a pwunconf utility that converts
shadow passwords back to regular passwords. those utilities
probably are already on your system. i haven't used them, but
they may get your passwords working again.

http://www.redhat.com/swr/i386/shado...2-12.i386.html

man pwunconv
will show you more.

Last edited by whansard; 12-30-2003 at 10:22 AM.
 
Old 01-05-2004, 07:37 AM   #33
Computergirl24
Member
 
Registered: Dec 2003
Location: PA, USA
Distribution: mandrake 9.1
Posts: 65

Original Poster
Rep: Reputation: 15
ok, if i'm at the command prompt, how can i see a file that's stored on a disk or cd?
 
Old 01-05-2004, 09:09 AM   #34
feetyouwell
Member
 
Registered: Dec 2003
Location: NC, US
Distribution: Novell Linux Eval (2.6.5)
Posts: 240

Rep: Reputation: 30
you need to mount (think of it as reading) any external drives / other partitions other than ext2 / 3 which linux runs on.

do a "man mount" to read if you have time

if you don't have time, read the following to see if it helps

you should only have to do

mount /dev/cdrom /mnt/cdrom

/mnt is a directory where you normally mount things to, if /mnt/cdrom doesnt exit, you need to create it first, simply "mkdir /mnt/cdrom"

The latest distro will mount cd rom automatically, all you need to do is to click an icon somewhere

for a file on the disk, if it is in linux partition, all you need is the right software to access the file, for a plain .txt file, you can use command "cat/more/less" to view it and "vi/emacs" depending on your taste.

for a file that's on a different partition such if you have a windows partition like FAT or NTFS, you need to mount them with the right driver, most linux distro comes with FAT driver, you might need to download NTFS driver separately

mount -t fat /dev/hda1 (<-- whichever disk it is on) /mnt/windows (<-- create it if non-existing)

for ntfs:
as root, do
modprobe ntfs (<-- be sure you have the ntfs driver installed correctly)
mount -t ntfs /dev/hda1 (<-- whichever disk it is on) /mnt/windows

ntfs will be mounted as read-only, among everything i read they all say it's not recommended to write to it. I know there are things you can do to write to ntfs, never tried.

hope this helps! I am a linux newbie too. Feel great to switch to the linux site after playing with the dump windows


 
Old 01-05-2004, 10:08 AM   #35
gruntwerk
Member
 
Registered: Dec 2003
Location: PA
Distribution: fc9
Posts: 89

Rep: Reputation: 15
I got confused reading this thread seems like maybe things have digressed from the original problem...
You wont have a shadow password file is your system is not setup to use password shadowing.

So, to recap....
You wrote :

You created a user account, but you don't know the syntax to user with the passwd command to either disable a password or create a password.

what do you Do???
-- You tried the passwd command and got

Changing password for user eeee
New UNIX password:
Retype new UNIX password:
passwd: user not known to the underlying authentication module
[root@localhost root]#

in your /etc/passwd, the password field for the user shows !!
Normally ! indicates the password is locked....

Agreed: you have garbage in the file
You are not using shadow passwords or there would be an x in the password field....

NOW - on my systems - in /etc/password - there is an X in the password field
in /etc/shadow there is !! in the password field some accounts...
it may be that your /etc/passwd got overwitten somehow by /etc/shadow

I would suggest looking for a copies of /etc/passwd and /etc/shadow
by doing
ls /etc/pass*
and
ls /etc/shadow*
I would make copies of these files somewhere

then run the pwck command - (description of the pwck command from online help*)

the pwchk command will check the entries in /etc/shadow
pwck verifies the integrity of the system authentication information.
All entries in the /etc/passwd and /etc/shadow are checked to see that
the entry has the proper format and valid data in each field. The user
is prompted to delete entries that are improperly formatted or which
have other incorrectable errors.

**gee sounds alot like your problem ***

DONT logout of your system, goto another virtual console - CTRL-ALT-F3 and try to login there...

as root and as the other user
if this doesnt work for you then
try copying the old copies over the current ones , i.e. cp /etc/passwd.OLD /etc/passwd
again -
DONT logout of your system, goto another virtual console - CTRL-ALT-F3 and try to login there...

any problems - copy your backup copies back in...

FWIW...

Last edited by gruntwerk; 01-05-2004 at 10:20 AM.
 
Old 01-05-2004, 08:01 PM   #36
Computergirl24
Member
 
Registered: Dec 2003
Location: PA, USA
Distribution: mandrake 9.1
Posts: 65

Original Poster
Rep: Reputation: 15
ok, but i dont know how to copy the file, or where to copy it from. i mean, i probably have a copy on my installation cd, but i don't know how to copy that to my hard drive.
E
 
  


Reply



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
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
shadow password - password field ayhopkins Linux - Security 8 11-17-2005 05:25 AM
How can I change e-mail password(or linux account password) with php in website?? yusuf Programming 1 05-28-2004 09:39 AM
forgot my password ? i can change the password JrLz Linux - Security 9 04-06-2004 07:36 PM
Just change Samba password, not Unix password? sorrodos Linux - Networking 1 08-14-2003 07:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:28 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration