Linux-Misc Digest #732, Volume #24 Tue, 6 Jun 00 19:13:04 EDT
Contents:
Re: samba troubles (Akira Yamanita)
Re: Partition Problem (1024 Cylinders) (Akira Yamanita)
Xdm locks machine? (Kevin E Cosgrove)
"autoexec" for Linux ("Kevin Carpenter")
Re: DELL's Linux price is HIGHER than Win98 (John Hasler)
Re: partition lost (Svend Olaf Mikkelsen)
Re: "autoexec" for Linux (Dances With Crows)
Dumb SUID problem (Mark Miller)
Open Source Windows Based X Server? (Richard Banks)
Re: Telnet failed under Redhat 6.2 (Knut S. Aabjorsbraaten)
Re: xmms (Daniel)
Opening files
Re: Dumb SUID problem (Dances With Crows)
Re: FWD: Linux now support Ultra ATA/100 (Hal Burgiss)
Re: Linux uses lots of memory? (Hal Burgiss)
Re: How to convert text files from Mac/Apple format to Unix format? (David C.)
Re: Opening files (Dances With Crows)
Re: Dumb SUID problem (Thomas Zajic)
----------------------------------------------------------------------------
From: Akira Yamanita <[EMAIL PROTECTED]>
Subject: Re: samba troubles
Date: Tue, 06 Jun 2000 22:09:22 GMT
Geoff Sullivan wrote:
>
> Akira Yamanita <[EMAIL PROTECTED]> wrote:
>
> > Cool. Can you see Penguin in the Network Neighborhood too?
>
> No :-( , but I can browse sunfish from the file manager in penguin. That's
> a partial improvement.
>
> Now, however, there are two other problems. If I boot penguin and sunfish
> is shut off (network down), penguin takes *forever* to boot. It grinds to
> a halt when it encounters the modules automount, smb server, and one of
> the mail deamons. It litteraly takes a half hour to figure out that there
> is no network available before it completes the boot! The remedy was to
> remove the automount and smb modules. Forget about automount and load the
> smb deamons when I need them.
>
> The other complication is that Kppp no longer works. I only would use it
> when the network is shut down to dial out from the modem in penguin. It
> does dial the phone, but no ppp connection is made and it immediately
> hangs up.
>
> I *can* get pppd to work though! Go figure.
>
> (why couldn't I just keep it simple?) Right now I'm using my trusty old
> Commodore 128 to do email, newsgroups, etc. It never fails me!
> --
> ** **
> G. Sullivan sunfishATshell.gis.net.invalid http://www.gis.net/~sunfish
>
Did you try what I had suggested in an earlier post?
netbios name = penguin
I didn't see that line in your smb.conf file.
I haven't used kppp or pppd for that matter so unfortunately I
can't really help you there. I'm assuming you have the symbolic
link /dev/modem pointing to the appropriate serial device.
If you're using Sunfish as the DNS server, that's probably why
things are taking forever when you boot up Penguin. Make sure
you have an entry in /etc/hosts for Penguin (assuming that's
your Linux host name as well.
------------------------------
From: Akira Yamanita <[EMAIL PROTECTED]>
Subject: Re: Partition Problem (1024 Cylinders)
Date: Tue, 06 Jun 2000 22:11:54 GMT
Paul Eisenberg wrote:
>
> Hey! I know this has been a repetitive question, but the answer to my
> question hasn't seem to be explained. I had a 21 gig approx hd with
> Win98 and I used FIPS to partition some off for Corel Linux, the
> problem was I didn't know about the 1024 Cylinder limit so I ended up
> being stuck. So I just did an 8 gig partition and got stuck. Now
> that I go back with this new knowledge FIPS will only let me use an 8
> gig partition for the second one as a max, when I have approx 15 gigs
> free. Because of this I can't get in the 1024 cylinder range and I
> don't know what to do. Any help would be great. I was thinking using
> a boot disk, if that were the case would I just install Corel Linux
> and then boot off the disk? Would I still be able to access Win98?
> Any help would be great! Take Care. Paul
You can boot off of a disk and just don't use the boot disk when
you want to use Win98. Also, once you have Linux installed, you
can use the latest version of LILO which doesn't have the 1024th
cylinder problem. Then you won't need the boot disk (though it's
good to have anyway).
------------------------------
From: [EMAIL PROTECTED] (Kevin E Cosgrove)
Reply-To: [EMAIL PROTECTED]
Subject: Xdm locks machine?
Date: Tue, 06 Jun 2000 22:14:06 GMT
I recently changed my runlevel to 5, so that Xdm would start.
Well, Xdm did start, but I couldn't type anything into the login
screen. Clicking in the Xdm login prompt area, to gain focus,
didn't help. Not only that, but none of the function keys did
anything, so I couldn't switch screens to login. ctrl-alt-bksp
did not abort the Xdm session. Not even ctrl-alt-del worked,
and I had to power cycle.
So, everything I mentioned not working (except Xdm of course)
works just fine when I boot runlevel 3 and use startx.
Why would this happen? How do I fix this?
My system runs Linux 2.0.36 on a fully patched Redhat 5.1 Pentium
machine. I'm using the XFree86-S3V-3.3.5-1.5.x X display driver
with my S3 Virge card.
--
Unless otherwise noted, the statements herein reflect my personal
opinions and not those of any organization with which I may be affiliated.
------------------------------
From: "Kevin Carpenter" <[EMAIL PROTECTED]>
Subject: "autoexec" for Linux
Date: Tue, 6 Jun 2000 18:10:21 -0400
Hi,
I'm running RH5.1 and would like to auto-launch this script.
script -a /etc/readme.newbox
I've tried placing it in rc.local, .bashrc and some other places.
Any suggestions?
--
-:>Kevin Carpenter @ Home
Home: mailto:[EMAIL PROTECTED]
Work: mailto:[EMAIL PROTECTED]
------------------------------
From: John Hasler <[EMAIL PROTECTED]>
Subject: Re: DELL's Linux price is HIGHER than Win98
Date: Tue, 6 Jun 2000 20:29:52 GMT
Grant Edwards writes:
> Manufacturing costs depend hugely on volume. If the volume of Windows
> copies is a lot larger than the volume of Linux copies, then the per-copy
> manufacturing cost of Windows copies is going to be lower.
This is true. It may cost $.05 more to make a Linux CD than a Windows CD.
--
John Hasler
[EMAIL PROTECTED]
Dancing Horse Hill
Elmwood, Wisconsin
------------------------------
From: [EMAIL PROTECTED] (Svend Olaf Mikkelsen)
Subject: Re: partition lost
Date: Tue, 06 Jun 2000 22:21:48 GMT
"MAP" <[EMAIL PROTECTED]> wrote:
>It's not, is a SCSI disk
>attached to a AHA-2940 U2W
Then my next suggestion will be that you attempt to zero the partition
table in the MBR of the problem disk.
Some BIOS'es look at the partition table when they calculates the
cylinders/heads/sectors setting to be used. If the partition table is
garbage, or you entered some wrong entries manually, results like the
BIOS translation seen in the Findpart output can occur.
Note that only the first sector (512 bytes) of the problem disk should
be zeroed. Some tools will zero as example 128 sectors, and this will
damage the first partition on the disk.
If you currently have a working Linux you can use the dd command to
write a file containing 512 ascii 0 characters to the first sector of
the disk. Also simply deleting the entries using fdisk might work.
If you have to zero the partition table from DOS, this might work:
set findpart=edit
findpart 2 0 1 - 00 0 0 0 0 0 0 0 299043 1 60 26
findpart 2 0 2 - 00 0 0 0 0 0 0 0 299043 1 60 26
findpart 2 0 3 - 00 0 0 0 0 0 0 0 299043 1 60 26
findpart 2 0 4 - 00 0 0 0 0 0 0 0 299043 1 60 26
set findpart=
findpart 2 table fp2-1.txt
This assumes that the CHS 299043/1/60 translation still is present. A
batch file is in http://inet.uni2.dk/~svolaf/map1.zip
When the partition table is zeroed, you can detect the disk in BIOS
again, reboot to DOS, and run the Findpart search again. The above
output file is just to verify that the MBR partition table was zeroed.
--
Svend Olaf
------------------------------
From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: "autoexec" for Linux
Date: 06 Jun 2000 18:22:04 EDT
Reply-To: [EMAIL PROTECTED]
On Tue, 6 Jun 2000 18:10:21 -0400, Kevin Carpenter
<<8hjt3i$bhn$[EMAIL PROTECTED]>> shouted forth into the ether:
>I'm running RH5.1 and would like to auto-launch this script.
>script -a /etc/readme.newbox
>I've tried placing it in rc.local, .bashrc and some other places.
...and did it work, or not?
When do you want this script to be executed? If you want it to be run at
boot time, put the line
/path/to/script -OPTIONS ARGS
in /etc/rc.d/rc.local . It's important to use the full pathname. Also
make sure the script is executable by all (chmod a+x script). If you
want the script to be executed every time a user logs in, put the above
line in that user's ~/.bashrc or ~/.profile.
--
Matt G / Dances With Crows \###| You have me mixed up with more
There is no Darkness in Eternity \##| creative ways of being stupid?
But only Light too dim for us to see \#| Beer is a vegetable. WinNT
(Unless, of course, you're working with NT)\| is the study of cool. --MegaHAL
------------------------------
From: Mark Miller <[EMAIL PROTECTED]>
Subject: Dumb SUID problem
Date: Tue, 06 Jun 2000 13:34:09 -0700
I'm trying to get a small script to run SUID root on a Red Hat 6.1 box.
The script simply prints the output of "whoami", then attempts to copy a
file to a directory owned by root. This is just a small test case for a
bigger job.
I called the script "sid". To set it SUID root I did the following:
su to root
chown root.root sid
chmod 4755 sid
When the script is run as root, it prints "root", and writes the file to
the directory. When the script is run as user 'markm' (non-root), it
prints "markm" and reports that it cannot write the file because
permission was denied.
I'm obviously missing something here. I would have expected both cases
to succeed. If the script is run suid root, doesn't the UID get changed
to root just before the script executes?
Is there some special system setting to permit a user to run SUID root?
Can some kind soul point out the error of my ways?
Thanks,
--
Mark Miller
[EMAIL PROTECTED]
Chalkboard Communications (206) 459-5577
http://www.chalkboardcom.com
------------------------------
From: [EMAIL PROTECTED] (Richard Banks)
Subject: Open Source Windows Based X Server?
Date: Tue, 06 Jun 2000 22:29:17 GMT
A lot of people are after windows to linux connectivity via an X
server.
VNC is pretty good, but gets slow when using graphic intensive apps
and needs the vncserver running on linux.
MiX is no longer free and I don't know of any other free X servers for
windows. Does anyone know of any projects at the moment for Open
Source X servers for windows?
If there aren't any, is it worthwhile starting one?
- Richard
[[EMAIL PROTECTED]]
------------------------------
From: Knut S. Aabjorsbraaten <[EMAIL PROTECTED]>
Subject: Re: Telnet failed under Redhat 6.2
Date: Tue, 06 Jun 2000 22:30:06 GMT
a.) Yes, it is very stupid NOT to include inetd in 6.2 if you do a
GNOEM/KDE workstation install, have no idea why.
b.) mount you redhat CD and go /mnt/cdrom/RedHat/RPMS/ , install the RPM
with "rpm -Uvh inetd*".
c.) Type "rpm -Uvh telnet-server*" and it should install
d.) type "/etc/rc.d/init.d/inet restart" and you should have inetd & telnet
running with no problems.
You should then have everything installed.
This really should work.
--
Posted via CNET Help.com
http://www.help.com/
------------------------------
From: Daniel <[EMAIL PROTECTED]>
Subject: Re: xmms
Date: Tue, 06 Jun 2000 22:30:44 GMT
thanks for the help I finally got the things to work.
Daniel
> --
> Posted via CNET Help.com
> http://www.help.com/
--
Posted via CNET Help.com
http://www.help.com/
------------------------------
From: <[EMAIL PROTECTED]>
Subject: Opening files
Date: Tue, 06 Jun 2000 22:30:52 GMT
I am new at linux and i was trying to open a file I had on a cd. What
command should i use to open the file?
Also, when i open a new terminal window and type cd /mnt/cdrom and type
the name of the file, i get bash: Permission denied. What should i do to
open the file? Do i have to copy the files from my cd to my hard drive? if
so what command should i use?
In advance thank you. I greatly appreciate your time.
--
Posted via CNET Help.com
http://www.help.com/
------------------------------
From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: Dumb SUID problem
Date: 06 Jun 2000 18:47:28 EDT
Reply-To: [EMAIL PROTECTED]
On Tue, 06 Jun 2000 13:34:09 -0700, Mark Miller
<<[EMAIL PROTECTED]>> shouted forth into the ether:
>I'm trying to get a small script to run SUID root on a Red Hat 6.1 box.
>I'm obviously missing something here.
SUID shell scripts are a *Security Hole* and Linux will not honor the SUID
bit on a script for a long list of reasons.
If you really need this done, make a C wrapper and make this C wrapper
SUID root. Like so:
/* in file wrapper.c */
#include<stdio.h>
#include<stdlib.h>
int main(void) { system("/path/to/script"); return 0; }
gcc -o wrapper wrapper.c
chown root.root wrapper
chmod 4755 wrapper
--
Matt G / Dances With Crows \###| You have me mixed up with more
There is no Darkness in Eternity \##| creative ways of being stupid?
But only Light too dim for us to see \#| Beer is a vegetable. WinNT
(Unless, of course, you're working with NT)\| is the study of cool. --MegaHAL
------------------------------
From: [EMAIL PROTECTED] (Hal Burgiss)
Crossposted-To: comp.os.linux.hardware
Subject: Re: FWD: Linux now support Ultra ATA/100
Reply-To: [EMAIL PROTECTED]
Date: Tue, 06 Jun 2000 22:50:22 GMT
On Tue, 06 Jun 2000 11:52:06 -0700, Alex Lam. <@everywhere.com> wrote:
>------------------------fwd--------------------------
>Posted 06/06/2000 3:51pm by Annie Kermath
>
>Linux beats Microsoft to support superfast disks
>
>Linux support is now available for the Ultra ATA/100 bus
>specification, Quantum announced today. Linux
>is the only OS so far to support the new spec, and three of the
>five current controller 1chipsets - Intel,
>CMD and Promise - with AMD and HighPoint in the wings.
>
>Full Story: http://theregister.co.uk/000606-000006.html
>------------------------------------------------------
Way to go Andre!
--
Hal B
[EMAIL PROTECTED]
--
------------------------------
From: [EMAIL PROTECTED] (Hal Burgiss)
Crossposted-To: comp.os.linux.setup,linux.redhat.misc
Subject: Re: Linux uses lots of memory?
Reply-To: [EMAIL PROTECTED]
Date: Tue, 06 Jun 2000 22:56:02 GMT
On 06 Jun 2000 19:21:12 GMT, Martin Herrman <[EMAIL PROTECTED]>
wrote:
>
>I have 233mhz, 32 mb ram, running Xfree 86 3.3.6.. I am using
>the windowmanager icewm and it is really fast!!! So.. no problems
>with less than 64 megs.. bull shit.. (ehm.. but restart netscape
>regularly when having not that much memory, but I guess that also
>is true with a 128 mb machine ;-)
Running Communicator or Navigator? I did the 16M, then 32M, then 64M
thing and used to kill NS regularly to reclaim memory. Dropped to just
Navigator and the memory leaks seem to have disappeared. I never kill it
now on 128M system due to memory consumption. It kills itself every now
and then though ;)
--
Hal B
[EMAIL PROTECTED]
--
------------------------------
From: [EMAIL PROTECTED] (David C.)
Crossposted-To: comp.sys.mac.misc,comp.sys.mac.programmer.tools.misc
Subject: Re: How to convert text files from Mac/Apple format to Unix format?
Date: 06 Jun 2000 18:58:08 -0400
Sue@nowhere writes:
>
> I've got some text files that were created on a mac. When i type them
> or look at them in vi/emacs, the text seems to be all on one long
> lines. har to read. I think this is becuase Mac text files do not use
> LF for terminating lines?
Correct. MacOS terminates lines with a single CR byte. UNIX terminates
them with a single LF byte. (And DOS-derived systems, including MS-DOS,
Windows and OS/2 use the two-byte CR-LF sequence).
> Is there a command I can use on Linux to covert these files to Unix
> format?
>
> I used to use this command to conver a DOS file to Unix:
>
> cat dos_file.txt | tr -d \\015 > unix_file.txt
>
> (the above command removes the CR)
>
> is there a similar command I can use for the mac files? some kind of a
> filter?
I wrote a standalone C program to do it.
Some UNIX distributions (but not RedHat Linux, unfortunately) include
text-conversion programs for this: unix2dos, dos2unix, mac2dos,
mac2unix, dos2mac, and mac2dos.
Using tr, this should work to convert single CR bytes to LF bytes.
cat mac_file.txt | tr \\015 \\012 > unix_file.txt
-- David
------------------------------
From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: Opening files
Date: 06 Jun 2000 18:59:13 EDT
Reply-To: [EMAIL PROTECTED]
On Tue, 06 Jun 2000 22:30:52 GMT, [EMAIL PROTECTED]
<<[EMAIL PROTECTED]>> shouted forth into the ether:
>I am new at linux and i was trying to open a file I had on a cd. What
>command should i use to open the file?
Depends on the type of the file. KDE, GNOME, and most file managers
maintain a list of MIME types based on filename extensions (or green
bytes) so that if you double-click on foo.xls, StarOffice or Gnumeric gets
launched. If you double-click on foo.jpg, ee or kview will be launched.
Text files are read with "less FILENAME", "xless FILENAME", or an HTML
viewer. Executables don't have filename extensions.
>Also, when i open a new terminal window and type cd /mnt/cdrom and type
>the name of the file, i get bash: Permission denied. What should i do to
>open the file? Do i have to copy the files from my cd to my hard drive? if
The "permission denied" message is because when you typed the name of the
file, the shell tried to execute that file as a program.[0] You don't have
to copy the files anywhere.
Since you seem very new to Unix in general, I reccommend reading a book
like _Running Linux_, which has a lot of useful information and tutorials
for new users.
[0] MS Windows deliberately confuses the act of running a program with the
act of opening a data set (opens whatever random app the system thinks you
should use to open that data set), has a silly notion of "file types", and
hides the file type info (3-letter extension) by default in most of its
GUI tools. No wonder people get confused.
--
Matt G / Dances With Crows \###| You have me mixed up with more
There is no Darkness in Eternity \##| creative ways of being stupid?
But only Light too dim for us to see \#| Beer is a vegetable. WinNT
(Unless, of course, you're working with NT)\| is the study of cool. --MegaHAL
------------------------------
From: [EMAIL PROTECTED] (Thomas Zajic)
Subject: Re: Dumb SUID problem
Reply-To: [EMAIL PROTECTED] (Thomas Zajic)
Date: Tue, 06 Jun 2000 22:54:01 GMT
On Tue, 06 Jun 2000 13:34:09 -0700, Mark Miller wrote:
> [ FAQ: Why doesn't my SUID script work? ]
>
> Can some kind soul point out the error of my ways?
Yeah, you failed to RTFFAQ. ;-)
<http://www.linuxdoc.org/FAQ/Linux-FAQ/x2352.html#AEN2387>
HTH,
Thomas
--
=-------------------------------------------------------------------------=
- Thomas "ZlatkO" Zajic <[EMAIL PROTECTED]> Linux-2.2.15/slrn-0.9.6.2+ -
- "It is not easy to cut through a human head with a hacksaw." (M. C.) -
=-------------------------------------------------------------------------=
------------------------------
** 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 (and comp.os.linux.misc) via:
Internet: [EMAIL PROTECTED]
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
******************************