Linux-Misc Digest #515, Volume #27                Mon, 2 Apr 01 21:13:02 EDT

Contents:
  Re: Pilot Sync Problem (Martin Brown)
  How to install programs to be used by non-root (William Vaughn)
  graceful shutdown of connect-accounting (Farid Hamjavar)
  Re: Odd Pauses (maybe DNS)? ("Andrew Smith")
  real name from uasername? ("Jeffrey J. Bacon")
  Re: HDD partion boundary errors? (Jerry Kreps)
  Re: PCMCIA problem for a newbie ("Darryl L. Pierce")
  Re: Where is a timeserver I can use for RDate? (Jerry Kreps)
  Re: graceful shutdown of connect-accounting (Michael Heiming)
  Re: CD-RW problem (Jerry Kreps)
  Re: RH6.2 Raid 1 setup ("Peter T. Breuer")
  Re: External modem problem.(HELP) ("Peter T. Breuer")
  bourne shell question enter keypress ("stevan.popovic")
  Re: real name from uasername? (Juergen Heinzl)
  Listening to more than one IP on one ethernet card (Fil Sapienza)
  Power Down on "Halt" doesn't happen (Kaushik)
  Re: How to install programs to be used by non-root ("Harlan Grove")
  Re: Power Down on "Halt" doesn't happen (Robert Lynch)
  chrooting users (Victor Dods)

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

Subject: Re: Pilot Sync Problem
From: [EMAIL PROTECTED] (Martin Brown)
Date: Mon, 02 Apr 2001 20:33:47 GMT

In article <[EMAIL PROTECTED]>,
Charles Dombek  <[EMAIL PROTECTED]> wrote:
>I am running the 2.2.16 kernel with Gnome and I can't seem to get my 
>PalmPilot to sync all the components with the Gnome desktop (e.g. 
>Calendar, Address Book,...). The sync log shows that the first object 
>synchronizes and then the conduit seems to break. Anyone heard of this? 
>BTW, I am running this on an IBM Thinkpad 390X.
>Many thanks
>Chuck Dombek
>

I run gnome, as well.  This past Friday, I bought a Visor Platinum and
could not get it to work under gnome, at all.  So, I tried 'jpilot'
instead, and in my limited experience, it works great.  However, it won't
work if 'gpilotd' is running, so be sure to 'kill' it off.


--
                            - Martin J. Brown, Jr. -                           
                            - [EMAIL PROTECTED] -                           
                                                                               
    PGP Public Key ID: 0xCED9BD8A  Key Server: http://www.keyserver.net/en/

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

From: William Vaughn
Subject: How to install programs to be used by non-root
Date: 2 Apr 2001 19:55:27 GMT


I am new to Linux (RH 7.0), and am having trouble with getting a couple of programs 
(Angband, and MySQL) to work the way I want.  I can run either fine one as root, but 
when I run them as a regular user I get error messages which I believe result from 
lack of access to files and directories.

I am not going to post the exact details because I am really asking for the generic 
answer - how do you normally make new software usable by users other than root?  At 
first I thought the answer would be easy - edit the etc/group file and add the user to 
the group that owns the programs (for example, add my regular user id to the "games" 
group to access Angband) but that didn't solve the problem.

I can find all kind of technical data on the use of chmod, chown, editing the group 
file, etc., but I haven't found anything that tells me the normal practice for 
installing software and granting access to selected users.

Thanks in advance for your help,
William Vaughn

==================================
Posted via http://nodevice.com
Linux Programmer's Site

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

From: [EMAIL PROTECTED] (Farid Hamjavar)
Crossposted-To: ,comp.os.linux.setup
Subject: graceful shutdown of connect-accounting
Date: 2 Apr 2001 15:19:26 -0600


Greetings,

rh 7 , kernel 2.2.17-14

I have a question in regards to system accounting and 
I am not referring to "process accounting." My question is
about "connect accounting" i.e.  /var/log/wtmp  and
/var/run/utmp


I am wondering if there is an "appropriate" [as there is in other
Unix flavors] to "gracefully" shutdown connect-accounting?

When a script ,for example, is trying to rotate wtmp 
nightly, one can of course rotate and then empty 
the wtmp (i.e. cp /dev/null to it).  But that is somewhat 
not professional and forceful i.e.
potential for corrupted records inside wtmp.

Any ideas or just coping /dev/null after rotation is good enough?



Second question:
In addition to GNU's acct 6.3.2 utilities if you know of 
any other set of tools geared toward 
process-accounting and/or  connect-accounting
please let me know.


Thanks,
Farid Hamjavar


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

From: "Andrew Smith" <[EMAIL PROTECTED]>
Subject: Re: Odd Pauses (maybe DNS)?
Date: Mon, 2 Apr 2001 22:51:50 +0100
Reply-To: "Andrew Smith" <[EMAIL PROTECTED]>


"The Spook" <[EMAIL PROTECTED]> wrote in message
news:9a83r7$cv3$[EMAIL PROTECTED]...

> Did you by any chance try to activate logging? Just add a -l (that's a
> lower-case ell) to the relevant rules (maybe even to all rules, to be on
the
> safe side, but be warned, large amount of internet traffic will generate
> numerous entries in the log-file). If you want to log everything, make
sure
> the last rule in each chain (input, output, and forward) is either
> "ipchains -A chain-name -l -j ACCEPT" if the policy of the chain is accept
> and "ipchains -A chain-name -l -j DENY" if the policy of the chain is
deny.
>
> Try the action that failed and go through the log-file
("/var/log/messages"
> for my system) and look for the DENY or REJECT lines matching the host
that
> gives you the problems. Hopefully this will give you sufficient
information
> to solve your problem. If you cannot solve your problem after this, you
> might try to post the relevant lines of the log-file (be careful to post
> only the relevant lines and for your own sake, mask or change the external
> IP-numbers so as not to expose yourself to attacks).
>
>   /TRY
>

Hi

I already have logging enabled for any packets that:
   a) establish or attempt to establish a connection (also using the -y
flag)
   b) are DENYed because they are using a port I dont want them to

During my mail send/recieve sessions no packets get logged, so it doesn't
look as if my firewall is stopping anything...

Any other suggestions why I get these pauses?

Thanks again,



Andrew





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

From: "Jeffrey J. Bacon" <[EMAIL PROTECTED]>
Subject: real name from uasername?
Date: Mon, 02 Apr 2001 22:07:55 GMT

is there any command I can issue at the prompt to find out someone's
real name?

ie.  I want the username and real name of the user to appear in a MOTD
message that is generated by a script upon login.  What coommand can I
issue at the prompt to display current username/realname (I'll then call
it from my script)?
-- 
Jeffrey Bacon  
Java Programmer Extrordinaire!
[EMAIL PROTECTED]
http://chat.carleton.ca/~jjbacon

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

From: Jerry Kreps <[EMAIL PROTECTED]>
Subject: Re: HDD partion boundary errors?
Date: Mon, 2 Apr 2001 16:11:12 -0500

Doug Robbins wrote:

> I recent upgraded a HDD in a Redhat 6 system. I put the new drive in
> as hdb, partitioned it with Linux fdisk, and copied files from the
> old disk (as per the HDD upgrade howto). Then I put the new disk in
> as hda, booted with a floppy and ran /sbin/lilo.
> 
> I have 2 issues:
> 
> 1. The system doesn't boot from the HDD first time -- it hangs at
> "Loading Linux..." (which is after the LILO prompt). I then do a
> warm boot the system starts okay.
> 
> 2. Running fdisk /dev/hda gives these messages:
> 
> -----
> /dev/hda1             1        39     77458+  83  Linux
> Partition 1 has different physical/logical endings:
>      phys=(40, 59, 63) logical=(38, 27, 63)
> Partition 1 does not end on cylinder boundary:
>      phys=(40, 59, 63) should be (40, 63, 63)
> /dev/hda2            39       848   1631070    5  Extended
> Partition 2 has different physical/logical beginnings (non-Linux?):
>      phys=(41, 0, 1) logical=(38, 28, 1)
> Partition 2 has different physical/logical endings:
>      phys=(903, 59, 63) logical=(847, 31, 63)
> Partition 2 does not end on cylinder boundary:
>      phys=(903, 59, 63) should be (903, 63, 63)
> -----
> 
> The system does, however, run fine. Are these two things related?
> Any ideas how to resolve?
> 
> --
> Doug Robbins
> 

Check out the linux large HD howto


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

From: "Darryl L. Pierce" <[EMAIL PROTECTED]>
Subject: Re: PCMCIA problem for a newbie
Date: Mon, 2 Apr 2001 16:49:32 -0400

Davide Bianchi <[EMAIL PROTECTED]> wrote:
> "@@@" <[EMAIL PROTECTED]> wrote in message
> news:d3xw6.62$[EMAIL PROTECTED]...
>> OK, I need some help here. I have gotten far enough where I _think_ I have
>> the PCMCIA card manager up and running.
> <ZAP>
>> Has anyone setup one of these before. Any idea where it is going wrong?
> 
> To me looks fine... what's your problem ??

His problem is that he's not configured basic networking for the card. Hence the reason
the error messages during the "ifup eth0". "eth0" is undefined on his system.

-- 
/**
 * @author Darryl L. Pierce <[EMAIL PROTECTED]>
 * @see    The InfoBahn Offramp <http://welcome.to/mcpierce>
 * @quote  "Too often we confuse effort and progress."
 *         - Fred Brooks, _The Mythical Man-Month_
 */

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

From: Jerry Kreps <[EMAIL PROTECTED]>
Subject: Re: Where is a timeserver I can use for RDate?
Date: Mon, 2 Apr 2001 16:17:09 -0500

Brian E. Parker wrote:

> Hello,
> 
> I'm on a cable modem and would like to have my Mandrake 7.2 box to
> run a
> cron job to utilize 'rdate' to keep the time correct.  What
> timeserver on the 'net would you guys recommend for this use?
> 
> TIA,
> -BEP
> 
> 

I use ntpdate with:
ntpdate -b ntp2.kansas.net
set in a daily cron script

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

Date: Mon, 02 Apr 2001 23:19:25 +0200
From: Michael Heiming <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: graceful shutdown of connect-accounting

Farid Hamjavar wrote:
> 
> Greetings,
> 
> rh 7 , kernel 2.2.17-14
> 
> I have a question in regards to system accounting and
> I am not referring to "process accounting." My question is
> about "connect accounting" i.e.  /var/log/wtmp  and
> /var/run/utmp
> 
> I am wondering if there is an "appropriate" [as there is in other
> Unix flavors] to "gracefully" shutdown connect-accounting?
> 
> When a script ,for example, is trying to rotate wtmp
> nightly, one can of course rotate and then empty
> the wtmp (i.e. cp /dev/null to it).  But that is somewhat
> not professional and forceful i.e.
> potential for corrupted records inside wtmp.

You should not try to edit nor clear wtmp/utmp.
> 
> Any ideas or just coping /dev/null after rotation is good enough?
> 
> Second question:
> In addition to GNU's acct 6.3.2 utilities if you know of
> any other set of tools geared toward
> process-accounting and/or  connect-accounting
> please let me know.

Check this one, I haven't used it myself, but someone reported
it would work quite well.

http://www.go.dlr.de/fresh/linux/src/.warix/clnwtmp-1.5.tar.gz.html

Michael Heiming

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

From: Jerry Kreps <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.help
Subject: Re: CD-RW problem
Date: Mon, 2 Apr 2001 16:29:43 -0500

David wrote:

> Brue Halco wrote:
> > 
> > When I first got my CD burner, I tore my hair out over this same
> > situation, until I learned that CD-RW media generally don't work
> > in audio CD players.  CD-R disks have been working fine.  What
> > kind of disks are you using?
> > 
> > Bruce Halco
> 
> 
> I have tried 3 different kinds.
> 
> Immation 1x-12x CD-R 80min 700MB got 1 to work
> Off wall brand CD-R 80min 700MB  got 0 to work
> Immation 1x-16x CD-R 80min 700MB got 0 to work
> FujiFilm 1x-4x CD-RW 74min 650MB got 0 to work
> 
> They all work without any problems with Data and will even play
> audio on the computer CD players.
> 
> I have tried burning from .wav  .cdr  and converting .mp3 on the fly
> to CD and still can't get any to work other than the first one I
> did.
> 

You can add an IDE PleXWriter W8432-Ti  to that list.  When installed
using ide-scsi it is recognized but cdrecord dies after less than 30%
of a CD is read or 30% of a burn.  If varies with the allowed speed 
settings.  I'm running a 1GHz athlon with 512MB of RAM.
Of course, as an IDE connected as hdd, I have found no software that
will recognize the cdrw.  I think I am going to play with wine and see
if adeptec will load and run it.   ???
JLK

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

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: RH6.2 Raid 1 setup
Date: Mon, 02 Apr 2001 22:39:29 GMT

Gerry <[EMAIL PROTECTED]> wrote:
> Does anyone know how to setup disk mirroring on RH 6.1

The same way one does it anywhere. What has RH or RH 6.1 got to do with
it?

> I need a step by step guide. I have 2 identical drives on 2 controllers

Read the Software RAID howto.

> right now.

Good. But not essential. Is that your ony two drives or do you have
more?


Peter

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

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: External modem problem.(HELP)
Date: Tue, 3 Apr 2001 00:35:35 +0200

zak <[EMAIL PROTECTED]> wrote:
> i had many difficulties on configuring my internal modem so i finally
> bought an external modem(CNET Ambiant , 56k/V90, serial). I tried it on
> windows and it works fine on com4 irq3 (with driver on floppy).

This is not relevant. An external modem does not need a driver. All
the kernel does is talk to your serial port. If there's a modem
attached to the other end, fine, hunky dory, etc.

> I understood before that linux supports all external modems, but using
> the kppp i couldnt make it work, when i query the modem it gives a

So what? Don't Do That Then. 10-1 you named the wrong port or you set
up an irq conflict. If you user ttyS3, you would be halfway right, but
what irq did you set it to? And what is the mobo setting for the
serial port you plan on connecting to? 

You don't say ...

> message saying 'couldnt get a response from the modem. I could see the
> RS and TR light go on when i press the query modem but no result...i

Which indicates you have the right port, and probably a miswired
connector.

> couldnt find much help in the how to in linux.org and many other sites

Whaddya mean "not much help". All the help in the planet is in the
Serial HOWTO!

> that only talk about internal modems and stating that external modems
> have no problems...im using mandrake 7.2, and kppp 2.0...please help!!!

Sorry, I refuse until you start making sense, and giving out with data
instead of opinions.

> or refer me to any good site on internet...Thank.

The Serial HOWTO.

Peter

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

From: "stevan.popovic" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Crossposted-To: alt.os.linux
Subject: bourne shell question enter keypress
Date: Mon, 02 Apr 2001 23:42:11 +0100


I dont know if this is the right place for the question. If not
apologies

I have a script which requires me to use the enter key to navigate
around a series of menus.

What I was wondering is will the bourne shell allow me to use only the
enter key junping from menu to menu via if or case statements.

Is this even possible?

Thanx




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

From: [EMAIL PROTECTED] (Juergen Heinzl)
Subject: Re: real name from uasername?
Date: Mon, 02 Apr 2001 22:45:10 GMT

In article <[EMAIL PROTECTED]>, Jeffrey J. Bacon wrote:
>is there any command I can issue at the prompt to find out someone's
>real name?
>
>ie.  I want the username and real name of the user to appear in a MOTD
>message that is generated by a script upon login.  What coommand can I
>issue at the prompt to display current username/realname (I'll then call
>it from my script)?
[-]
Two things -- motd is displayed *after* a sucessful login, this is
what you mean ?

If so, then you've got a problem as think of a situation where two or
more logins occur almost at the same time. Say your motd may or may
not display the correct name, depending which generating process
comes first.

Since /etc/motd does not know of variables like issue.net(5) you
may rather put something into /etc/profile.

You can either call finger and isolate the fields you want or
parse /etc/passwd which is readable anyway.

If you want the real name of someone login via telnet or rlogin
though things become a bit more involved.

Ta',
Juergen

-- 
\ Real name     : Juergen Heinzl                \       no flames      /
 \ EMail Private : [EMAIL PROTECTED] \ send money instead /

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

From: Fil Sapienza <[EMAIL PROTECTED]>
Subject: Listening to more than one IP on one ethernet card
Date: Mon, 02 Apr 2001 17:03:00 -0600

Greetings. I would like to set up a virtual host on my Linux box. Is it
true that
I can tell one ethernet card to listen to more than one IP address?
How do I set up Linux to recognize multiple IP addresses on one card?

Thank you.

Filipp Sapienza
[EMAIL PROTECTED]


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

From: Kaushik <[EMAIL PROTECTED]>
Subject: Power Down on "Halt" doesn't happen
Date: Mon, 02 Apr 2001 19:15:29 -0500

I cannot get my laptop to power down when I do a "Halt" or a shutdown. I
am running Red Hat 7.0

I had this problem out of the box in 5.2 and then not in 6.1. Does
anyone know what the fix for this is/

regards,
Kaushik


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

From: "Harlan Grove" <[EMAIL PROTECTED]>
Subject: Re: How to install programs to be used by non-root
Date: Tue, 03 Apr 2001 00:51:22 GMT

<William Vaughn> wrote in message news:[EMAIL PROTECTED]...
>I am new to Linux (RH 7.0), and am having trouble with getting a couple of
>programs (Angband, and MySQL) to work the way I want. I can run either
>fine one as root, but when I run them as a regular user I get error
messages
...
>I am not going to post the exact details because I am really asking for the
>generic answer - how do you normally make new software usable by users
>other than root? At first I thought the answer would be easy - edit the
>etc/group file and add the user to the group that owns the programs . . .
...

The generic answer requires addressing a number of alternative though not
necessarily mutually exclusive scenarios each of which would prevent you
from running a given executable. I'll limit myself to the one or two most
likely causes.

MySQL: root has database admin rights by default. Unless, _as root_, you
create a user account for your usual login ID and grant that ID various
database access rights, you won't be able to do anything under your usual
login ID.

Other: can you locate the executable? Do you know which directory it's
stored in? If not, you may not have the directory in your PATH. If so, list
the filename in long format:  ls -l /some/directory/filename . What are the
permissions? If they're -rwxr--r-- then only the owner (likely either root
or bin) can run the binary. In that case, editing /etc/group won't do
anything useful (and is generally a bad idea unless you need to _create_
groups that'd have different access rights). If the permissions
are -rwxr-xr-- you might be able to run them by manipulating groups, but
you'd likely be better off changing the permissions to -rwxr-xr-x (e.g., as
root  chmod a+x /some/directory/filename). There's no good reason I can
think of for a game or MySQL _not_ to allow all users to run them.

That's about as far as it's efficient to go. Without details from you, a
detailed answer is too much work. So my generic answer is: if you seek
enlightenment, buy some unix and linux books and read them; read the
manpages for bash, chown, chmod, chgrp, etc.; read the HOWTOs. In about a
month or two you should have achieved your goal. If you want a quick answer,
don't jerk us around - what error message are you getting?



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

From: Robert Lynch <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: Power Down on "Halt" doesn't happen
Date: Mon, 02 Apr 2001 17:58:01 -0700

Kaushik wrote:
> 
> I cannot get my laptop to power down when I do a "Halt" or a shutdown. I
> am running Red Hat 7.0
> 
> I had this problem out of the box in 5.2 and then not in 6.1. Does
> anyone know what the fix for this is/
> 
> regards,
> Kaushik

I also found this problem with RedHat 7.0.  I think the "halt"
script has a problem, my fix to /etc/rc.d/init.d/halt is:
===
...
HALTARGS="-i -d"
if [ -f /poweroff -o ! -f /halt ]; then
 HALTARGS="$HALTARGS -p"
fi
  
# try to fix flakey poweroff
#eval $command $HALTARGS
eval $command -i -d -p
===
This was found by trial and error, I'm not sure exactly what it
fixes.

HTH. Bob L. 
-- 
Robert Lynch     Berkeley CA USA    [EMAIL PROTECTED]

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

From: Victor Dods <[EMAIL PROTECTED]>
Subject: chrooting users
Reply-To: [EMAIL PROTECTED]
Date: Mon, 2 Apr 2001 18:12:12 -0700

How exactly do I go about chrooting users' accounts so they are 
restricted to their home directory and below?  Also, will this affect 
ftp logins?  I wish to create one or more ftp accounts that have only 
access to their home directories, and can't escape and read/write all 
over my root directory, etc.  I think this is called a "chroot jail"?

Victor Dods


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


** 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