Linux-Misc Digest #237, Volume #27               Mon, 26 Feb 01 15:13:01 EST

Contents:
  Re: more help needed with changing root password (Lew Pitcher)
  Re: more help needed with changing root password (richard noel fell)
  Re: tar from date (-N, --newer, --after-date) (David)
  lpr: print file too big - How to correct? ([EMAIL PROTECTED])
  Re: more help needed with changing root password (Lew Pitcher)
  Re: more help needed with changing root password (Lew Pitcher)
  Re: more help needed with changing root password (richard noel fell)
  Re: small linux distro (Grant Edwards)
  Re: shutdown priveleges (Markku Kolkka)
  Re: redirect stderr to both screen and logfile at same time? 
([EMAIL PROTECTED])
  Re: more help needed with changing root password (Jean-David Beyer)
  Re: Install CD-RW on Linux ?? (Lori Holder-Webb)

----------------------------------------------------------------------------

From: [EMAIL PROTECTED] (Lew Pitcher)
Crossposted-To: linux.redhat.misc
Subject: Re: more help needed with changing root password
Reply-To: [EMAIL PROTECTED]
Date: Mon, 26 Feb 2001 19:00:07 GMT

One other thing... _which_ /etc/passwd did you edit?

If I understand correctly, you've booted tomsrtbt in order to recover
your system. tomsrtbt has it's own password file, which (when you're
in tomsrtbt) is located in /etc/passwd. OTOH, _your_ password file
(while you in tomsrtbt) is on one of the harddisk partitions, which
may not be mounted.

You have to
- boot into tomsrtbt and sign on as root
- mount your usual root device (i.e. /dev/hda1) onto /mnt
- edit the /mnt/etc/passwd file and save 
- umount /mnt
- shutdown -r now
- reboot as per normal

Likely, you edited the tomsrtbt /etc/passwd file, which (IIRC) is kept
in ramdisk. This is not the password file that your regular system
uses.




Lew Pitcher
Information Technology Consultant
Toronto Dominion Bank Financial Group

([EMAIL PROTECTED])


(Opinions expressed are my own, not my employer's.)

------------------------------

From: richard noel fell <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.misc
Subject: Re: more help needed with changing root password
Date: Mon, 26 Feb 2001 15:22:58 -0500


==============2B37709412B58806E19EF309
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Lew Pitcher wrote:

> One other thing... _which_ /etc/passwd did you edit?
>
> If I understand correctly, you've booted tomsrtbt in order to recover
> your system. tomsrtbt has it's own password file, which (when you're
> in tomsrtbt) is located in /etc/passwd. OTOH, _your_ password file
> (while you in tomsrtbt) is on one of the harddisk partitions, which
> may not be mounted.
>
> You have to
> - boot into tomsrtbt and sign on as root
> - mount your usual root device (i.e. /dev/hda1) onto /mnt
> - edit the /mnt/etc/passwd file and save
>

Did all of the above.


> - umount /mnt

But did not do this.
However, I checked my /etc/passwd file after rebooting and it did reflect
the changes I made.
Dick

>
> - shutdown -r now
> - reboot as per normal
>
> Likely, you edited the tomsrtbt /etc/passwd file, which (IIRC) is kept
> in ramdisk. This is not the password file that your regular system
> uses.
>
> Lew Pitcher
> Information Technology Consultant
> Toronto Dominion Bank Financial Group
>
> ([EMAIL PROTECTED])
>
> (Opinions expressed are my own, not my employer's.)

--
Please note new email address:
[EMAIL PROTECTED]

Richard Fell
13 Davida Road
Burlington, Ma 01803
(781)273-2126



==============2B37709412B58806E19EF309
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Lew Pitcher wrote:
<blockquote TYPE=CITE>One other thing... _which_ /etc/passwd did you edit?
<p>If I understand correctly, you've booted tomsrtbt in order to recover
<br>your system. tomsrtbt has it's own password file, which (when you're
<br>in tomsrtbt) is located in /etc/passwd. OTOH, _your_ password file
<br>(while you in tomsrtbt) is on one of the harddisk partitions, which
<br>may not be mounted.
<p>You have to
<br>- boot into tomsrtbt and sign on as root
<br>- mount your usual root device (i.e. /dev/hda1) onto /mnt
<br>- edit the /mnt/etc/passwd file and save
<br>&nbsp;</blockquote>
Did all of the above.
<br>&nbsp;
<blockquote TYPE=CITE>- umount /mnt</blockquote>
But did not do this.
<br>However, I&nbsp;checked my /etc/passwd file after rebooting and it
did reflect the changes I made.
<br>Dick
<blockquote TYPE=CITE>&nbsp;
<br>- shutdown -r now
<br>- reboot as per normal
<p>Likely, you edited the tomsrtbt /etc/passwd file, which (IIRC) is kept
<br>in ramdisk. This is not the password file that your regular system
<br>uses.
<p>Lew Pitcher
<br>Information Technology Consultant
<br>Toronto Dominion Bank Financial Group
<p>([EMAIL PROTECTED])
<p>(Opinions expressed are my own, not my employer's.)</blockquote>

<pre>--&nbsp;
Please note new email address:
[EMAIL PROTECTED]


Richard Fell
13 Davida Road
Burlington, Ma 01803
(781)273-2126</pre>
&nbsp;</html>

==============2B37709412B58806E19EF309==


------------------------------

From: David <[EMAIL PROTECTED]>
Subject: Re: tar from date (-N, --newer, --after-date)
Date: Mon, 26 Feb 2001 19:17:05 GMT

Frederick Bartlett wrote:
> 
> Thanks, but that has the same result: It gives me all the files. Here's
> the output of
>   tar -tvf test.tar
> after running
>   tar -cvf test.tar . --newer 02/23/01
> 
> I'm still baffled ....
> 
> For the record, I'm running bash under RH 7.0, kernel 2.2-16.
> 
> drwxr-xr-x FredB/FredB       0 2001-02-26 11:47:13 ./
> -rw-r--r-- FredB/FredB 1533354 2001-02-22 15:41:18 ./00128.txt
> -rw-r--r-- FredB/FredB 1987650 2001-02-22 15:51:32 ./00128.xml
> -rw-r--r-- FredB/FredB  182138 2001-02-22 13:19:32 ./00145.txt
> -rw-r--r-- FredB/FredB  201900 2001-02-22 13:25:08 ./00145.xml
> -rw-r--r-- FredB/FredB  123993 2001-02-26 00:04:28 ./00164.txt
> -rw-r--r-- FredB/FredB  136515 2001-02-26 00:04:28 ./00164.xml
> -rw-r--r-- FredB/FredB 2663495 2001-02-22 16:12:14 ./00223.txt
> -rw-r--r-- FredB/FredB 3079544 2001-02-22 19:28:30 ./00223.xml
> -rw-r--r-- FredB/FredB  345545 2001-02-22 22:21:10 ./00224.txt
> -rw-r--r-- FredB/FredB  387244 2001-02-22 22:23:38 ./00224.xml
> -rw-r--r-- FredB/FredB 2212268 2001-02-22 22:32:54 ./00232.txt
> -rw-r--r-- FredB/FredB 2482508 2001-02-22 22:33:44 ./00232.xml
> -rw-r--r-- FredB/FredB  191486 2001-02-22 22:49:38 ./00233.txt
> -rw-r--r-- FredB/FredB  209989 2001-02-22 22:49:38 ./00233.xml
> -rw-r--r-- FredB/FredB 2322770 2001-02-22 22:53:02 ./00239.txt
> -rw-r--r-- FredB/FredB 2656090 2001-02-22 22:53:44 ./00239.xml
> 

Hmmm?  Ok how about running a find script and then taring the list of
files that have changed? Maybe something like this to get the files to
tar?

=============================
#!/bin/sh
# Lists files that have been changed
# in the last 60 days
#
#
if [ -z $1 ]; then
  echo "usage:  $0  uname  [ directory ]"
  exit 1
fi

find $2 -user $1 \
\! -type d -mtime -60 \
-printf "%TY/%Tm/%Td %TH:%TM:%TS  %5kk  %h/%f\n" |
sort

#end of script
==============================

Or maybe like this.

============================
#/bin/sh
#
#Finds files that have been changes in last 60 days.
#
find . -mtime -60 -printf "%A@ %h%f %t\n" | sort -rn > filelist
===========================

Then run a script to tar the list of files.
Just an idea.

-- 
Confucius say: He who play in root, eventually kill tree.
Registered with the Linux Counter.  http://counter.li.org
ID # 123538
Completed more W/U's than 99.086% of seti users. +/- 0.01%

------------------------------

From: [EMAIL PROTECTED]
Subject: lpr: print file too big - How to correct?
Date: Mon, 26 Feb 2001 19:19:11 GMT

        Hi,

        The lpr program refuses to take files bigger than ~800K 
        for print - what means I can not print images. I have 9Mb 
        in the printer, and anyways the lpr may not know how big 
        will be the file after the filter processes it, so it has 
        no business to limit the file size - the print filter may 
        do that.

        I read almost anything around and did not found how to 
        increase the limit.

        So, may please someone tell me how to increase the lpr/lpd
        file size limit?

        Thanks, George

------------------------------

From: [EMAIL PROTECTED] (Lew Pitcher)
Crossposted-To: linux.redhat.misc
Subject: Re: more help needed with changing root password
Reply-To: [EMAIL PROTECTED]
Date: Mon, 26 Feb 2001 19:19:16 GMT

On Mon, 26 Feb 2001 15:22:58 -0500, richard noel fell <[EMAIL PROTECTED]>
wrote:
>Lew Pitcher wrote:
>
>> One other thing... _which_ /etc/passwd did you edit?
>>
>> If I understand correctly, you've booted tomsrtbt in order to recover
>> your system. tomsrtbt has it's own password file, which (when you're
>> in tomsrtbt) is located in /etc/passwd. OTOH, _your_ password file
>> (while you in tomsrtbt) is on one of the harddisk partitions, which
>> may not be mounted.
>>
>> You have to
>> - boot into tomsrtbt and sign on as root
>> - mount your usual root device (i.e. /dev/hda1) onto /mnt
>> - edit the /mnt/etc/passwd file and save
>>
>
>Did all of the above.
>
>
>> - umount /mnt
>
>But did not do this.
>However, I checked my /etc/passwd file after rebooting and it did reflect
>the changes I made.

Well,Dave, you have me stumped!

P'haps it's time to try the 'linux single' boot.
If that doesn't work, then I'm out of ideas.




Lew Pitcher
Information Technology Consultant
Toronto Dominion Bank Financial Group

([EMAIL PROTECTED])


(Opinions expressed are my own, not my employer's.)

------------------------------

From: [EMAIL PROTECTED] (Lew Pitcher)
Crossposted-To: linux.redhat.misc
Subject: Re: more help needed with changing root password
Reply-To: [EMAIL PROTECTED]
Date: Mon, 26 Feb 2001 19:20:27 GMT

On Mon, 26 Feb 2001 15:22:58 -0500, richard noel fell <[EMAIL PROTECTED]>
wrote:
>Lew Pitcher wrote:
>
>> One other thing... _which_ /etc/passwd did you edit?
>>
>> If I understand correctly, you've booted tomsrtbt in order to recover
>> your system. tomsrtbt has it's own password file, which (when you're
>> in tomsrtbt) is located in /etc/passwd. OTOH, _your_ password file
>> (while you in tomsrtbt) is on one of the harddisk partitions, which
>> may not be mounted.
>>
>> You have to
>> - boot into tomsrtbt and sign on as root
>> - mount your usual root device (i.e. /dev/hda1) onto /mnt
>> - edit the /mnt/etc/passwd file and save
>>
>
>Did all of the above.
>
>
>> - umount /mnt
>
>But did not do this.
>However, I checked my /etc/passwd file after rebooting and it did reflect
>the changes I made.

Well, Richard, you have me stumped!

P'haps it's time to try the 'linux single' boot.
If that doesn't work, then I'm out of ideas.




Lew Pitcher
Information Technology Consultant
Toronto Dominion Bank Financial Group

([EMAIL PROTECTED])


(Opinions expressed are my own, not my employer's.)

------------------------------

From: richard noel fell <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.misc
Subject: Re: more help needed with changing root password
Date: Mon, 26 Feb 2001 15:48:27 -0500


==============CD50B94D3367DD1E7D3CC1EE
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Okay. I tried the linux single boot and that part went seamlessly. At the
shell prompt, I entered passwd and got the error message: passwd:Can not
identify you.
Then, I tried to log in as root and of course it prompted me for a password.
Then, on I tried to su and got the message 'user root does not exist'. Then,
I tried to reboot pressing ctrl-alt-del and got the message: 'You don't exist
- go away'. What a mess.

I had to power down in order to reboot. All this has occured since I ran
up2date a few days ago. I wonder if there is a correlation? I hate the idea
of having to reinstall the software. Does that seem the only next
alternative, unless I can add user root somehow?
Thanks again,
Dick Fell

Lew Pitcher wrote:

> On Mon, 26 Feb 2001 15:22:58 -0500, richard noel fell <[EMAIL PROTECTED]>
> wrote:
> >Lew Pitcher wrote:
> >
> >> One other thing... _which_ /etc/passwd did you edit?
> >>
> >> If I understand correctly, you've booted tomsrtbt in order to recover
> >> your system. tomsrtbt has it's own password file, which (when you're
> >> in tomsrtbt) is located in /etc/passwd. OTOH, _your_ password file
> >> (while you in tomsrtbt) is on one of the harddisk partitions, which
> >> may not be mounted.
> >>
> >> You have to
> >> - boot into tomsrtbt and sign on as root
> >> - mount your usual root device (i.e. /dev/hda1) onto /mnt
> >> - edit the /mnt/etc/passwd file and save
> >>
> >
> >Did all of the above.
> >
> >
> >> - umount /mnt
> >
> >But did not do this.
> >However, I checked my /etc/passwd file after rebooting and it did reflect
> >the changes I made.
>
> Well, Richard, you have me stumped!
>
> P'haps it's time to try the 'linux single' boot.
> If that doesn't work, then I'm out of ideas.
>
> Lew Pitcher
> Information Technology Consultant
> Toronto Dominion Bank Financial Group
>
> ([EMAIL PROTECTED])
>
> (Opinions expressed are my own, not my employer's.)

--
Please note new email address:
[EMAIL PROTECTED]

Richard Fell
13 Davida Road
Burlington, Ma 01803
(781)273-2126



==============CD50B94D3367DD1E7D3CC1EE
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Okay. I&nbsp;tried the linux single boot and that part went seamlessly.
At the shell prompt, I&nbsp;entered passwd and got the error message: passwd:Can
not identify you.
<br>Then, I tried to log in as root and of course it prompted me for a
password. Then, on I&nbsp;tried to su and got the message 'user root does
not exist'. Then, I tried to reboot pressing ctrl-alt-del and got the message:
'You don't exist - go away'. What a mess.
<p>I had to power down in order to reboot. All this has occured since I
ran up2date a few days ago. I wonder if there is a correlation? I hate
the idea of having to reinstall the software. Does that seem the only next
alternative, unless I&nbsp;can add user root somehow?
<br>Thanks again,
<br>Dick Fell
<p>Lew Pitcher wrote:
<blockquote TYPE=CITE>On Mon, 26 Feb 2001 15:22:58 -0500, richard noel
fell &lt;[EMAIL PROTECTED]>
<br>wrote:
<br>>Lew Pitcher wrote:
<br>>
<br>>> One other thing... _which_ /etc/passwd did you edit?
<br>>>
<br>>> If I understand correctly, you've booted tomsrtbt in order to recover
<br>>> your system. tomsrtbt has it's own password file, which (when you're
<br>>> in tomsrtbt) is located in /etc/passwd. OTOH, _your_ password file
<br>>> (while you in tomsrtbt) is on one of the harddisk partitions, which
<br>>> may not be mounted.
<br>>>
<br>>> You have to
<br>>> - boot into tomsrtbt and sign on as root
<br>>> - mount your usual root device (i.e. /dev/hda1) onto /mnt
<br>>> - edit the /mnt/etc/passwd file and save
<br>>>
<br>>
<br>>Did all of the above.
<br>>
<br>>
<br>>> - umount /mnt
<br>>
<br>>But did not do this.
<br>>However, I checked my /etc/passwd file after rebooting and it did
reflect
<br>>the changes I made.
<p>Well, Richard, you have me stumped!
<p>P'haps it's time to try the 'linux single' boot.
<br>If that doesn't work, then I'm out of ideas.
<p>Lew Pitcher
<br>Information Technology Consultant
<br>Toronto Dominion Bank Financial Group
<p>([EMAIL PROTECTED])
<p>(Opinions expressed are my own, not my employer's.)</blockquote>

<pre>--&nbsp;
Please note new email address:
[EMAIL PROTECTED]


Richard Fell
13 Davida Road
Burlington, Ma 01803
(781)273-2126</pre>
&nbsp;</html>

==============CD50B94D3367DD1E7D3CC1EE==


------------------------------

From: [EMAIL PROTECTED] (Grant Edwards)
Subject: Re: small linux distro
Date: Mon, 26 Feb 2001 19:42:36 GMT

In article <[EMAIL PROTECTED]>, Major Dondo wrote:
>I need to put a small linux distro on an old laptop. 
[...]
>Any suggestions welcome!

Here's some tiny distributions, but you're probably looking for
something bigger:
   http://www.txdirect.net/users/mdfranz/tinux.html

You might want to go the Debian route.  The base install is
pretty small, and then you can add bits and pieces as you need
them.

-- 
Grant Edwards                   grante             Yow!  Let me do my TRIBUTE
                                  at               to FISHNET STOCKINGS...
                               visi.com            

------------------------------

From: Markku Kolkka <[EMAIL PROTECTED]>
Subject: Re: shutdown priveleges
Date: 26 Feb 2001 21:52:58 +0200

"Sudhakar R." <[EMAIL PROTECTED]> writes:
> I have a linux box running RH 7.0. Right now any user can shutdown/reboot
> the system with the halt/reboot command. How do I set up such that this
> privelege exists only for particular users.

Read documentation for PAM (in /usr/share/doc/pam*), then edit
files halt, reboot and poweroff in /etc/pam.d

-- 
        Markku Kolkka
        [EMAIL PROTECTED]

------------------------------

From: [EMAIL PROTECTED]
Crossposted-To: 
alt.os.linux,alt.solaris.x86,comp.unix.admin,comp.unix.aix,comp.unix.misc,comp.unix.shell
Subject: Re: redirect stderr to both screen and logfile at same time?
Date: 26 Feb 2001 19:56:20 GMT

In comp.unix.admin J.Smith <[EMAIL PROTECTED]> wrote:
>> SCRIPT(1)               FreeBSD General Commands Manual
> SCRIPT(1)
>>
>> NAME
>>      script - make typescript of terminal session
>>
>> SYNOPSIS
>>      script [-a] [-k] [-q] [-t time] [file [command ...]]
>>
>> DESCRIPTION
>>      Script makes a typescript of everything printed on your terminal.  It
> is
>>      useful for students who need a hardcopy record of an interactive
> session
>>      as proof of an assignment, as the typescript file can be printed out
> lat-
>>      er with lpr(1).
>>

> Yes, I am aware of the script command. But this will only work in
> interactive sessions, wont it? script cant be used when running a job
> scheduled from cron, or will it? And the redirect stuff will...

When running from cron you won't reach the screen anyway. Anything
you see "on screen" i'll call interactive. And that does not inlcude
cron at or batch.

> Right?



-- 
Peter H�kanson               Phone     +46707328101       Fax +4631223190
IPSec sverige                Email      [EMAIL PROTECTED]  
"Safe by design"             Address    Bror Nilssons gata 16  Lundbystrand
                                        S-417 55  Gothenburg   Sweden         

------------------------------

From: Jean-David Beyer <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.misc
Subject: Re: more help needed with changing root password
Date: Mon, 26 Feb 2001 15:03:49 -0500

richard noel fell wrote:
> 
> Sorry to be such a bother, but this is not going as smoothly as I had hoped.
> 
> I edited, via the rescue disk, the /etc/passwd file for my root entry to
> 
> root::0:root:/root:/bin/bash. Now, when I reboot, when I try to log in as root, I am 
>prompted for a password. Of course
> 
> this is what I was trying to avoid in the first place. Is not my entry for root in 
>etc/passwd correct to allow me
> 
> to log on without a password?
> 
Could your problem be that you are using shadow passwords and you
should be editing /etc/shadow instead of /etc/passwd?

-- 
 .~.  Jean-David Beyer           Registered Linux User 85642.
 /V\                             Registered Machine    73926.
/( )\ Shrewsbury, New Jersey     http://counter.li.org 
^^-^^ 3:00pm up 5 days, 22:33, 4 users, load average: 3.11, 3.18, 3.01

------------------------------

From: Lori Holder-Webb <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.help,comp.os.linux.redhat
Subject: Re: Install CD-RW on Linux ??
Date: Mon, 26 Feb 2001 13:40:06 -0600

A Google search for CDRW+linux yields 26,000 hits.  Items from
newsgroups, hardware reviews, HOW-TOs, you name it.

Your best bet, IMO is to try searching the linux ng on Dejanews for
CDRW.  You can look at the HOW-TO at the Linux Documentation Project. 
Either of these strategies ought to give you a nice broad view of the
issue, and will also tell you how to install and configure the thing
(which you'll need).  You'll also get information on the software that
you'll need to run the burner, and how to configure that too.

HTH

Lori

John Gill wrote:
> 
> Hi all.
> 
> Is anyone using a CD-RW device on Linux ?  If so, what works best, IDE or
> SCSI and what are the implications for use with Linux back-up software --
> network based.
> 
> Thanks, I have a small network with Red Hat 7.0 Linux as the Primary Domain
> Controller.
> 
> -- John

------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list by posting to comp.os.linux.misc.

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Misc Digest
******************************

Reply via email to