Linux-Setup Digest #965, Volume #20 Mon, 2 Apr 01 00:13:11 EDT
Contents:
Re: useradd command questions ("Ansgar W. Konermann")
How to read/write kernel addr, say c0101000? (Gu Weining)
Re: Windows 2000 and Linux ("Rick Evans")
Re: useradd command questions (Dean Thompson)
Re: REDHAT LIUNX 7.0 - SERVER INSTALLATION - GRPHICAL LOGIN - HOW? (CHNg)
Re: Adaptec 19160 SCSI card support? (John Scudder)
Re: How do you stop Linux from trying to start sendmail on startup?? (John Todd)
Re: Novice admin trying to secure a server (J Sloan)
backspace key in exceed? ("Trebor")
Re: useradd command questions (CHNg)
Re: Red Hat Install on Compaq ([EMAIL PROTECTED])
Re: useradd command questions (CHNg)
Re: useradd command questions (Dean Thompson)
Monitor set up ("Riyaz Mansoor")
Re: How do you stop Linux from trying to start sendmail on startup?? ("Jacob
Williams")
Re: Bellsouth ADSL (Rod Smith)
----------------------------------------------------------------------------
From: "Ansgar W. Konermann" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking
Subject: Re: useradd command questions
Date: Mon, 02 Apr 2001 04:10:16 +0200
Dean Thompson wrote:
>
> To get around your problem you are going to have to either write a wrapper
> around the useradd program which copies the files back and restores your
> symoblic links, or write your own adduser function.
I'm not sure whether the useradd command is available as source code.
It could be in the login package. If so, it should be easy to modify
the filenames/paths for your need and simply recompile it. This could
save you some effort in writing a wrapper/your own code.
--
Best regards,
Ansgar W. Konermann
eMail: [EMAIL PROTECTED]
--- Hello, I am a message footer. ---------------------------------------
------------------------------
From: Gu Weining <[EMAIL PROTECTED]>
Subject: How to read/write kernel addr, say c0101000?
Date: Sun, 01 Apr 2001 21:13:50 -0500
In my driver, I try to read/write some kernel address.
But I always got Segmentation fault. Sounds like my
access method is wrong. I copied my char driver code
running with Linux v2.2.1x as follows:
int address, value;
address = 0xc0101000;
address = address - PAGE_OFFSET;
/* even I set either PAGE_OFFSET=0 or
PAGE_OFFSET=c0000000, still wrong */
value = (*(int *)address);
value++; /* access this address */
****** Segmentation fault ******
Would you please give me some hint? Thank you so much.
Weining Gu
------------------------------
From: "Rick Evans" <[EMAIL PROTECTED]>
Subject: Re: Windows 2000 and Linux
Date: Sun, 01 Apr 2001 22:33:49 +0400
In article <99o376$k7l$[EMAIL PROTECTED]>, "Alim"
<[EMAIL PROTECTED]> wrote:
I was looking to do the same thing that you want. I found an article on
the net that worked remarkably well. The link is:
http://www.littlewhitedog.com/reviews_other_00011.asp
Check it out.
You can alo go here:
http://www.littlewhitedog.com/reviews_other_00011.asp
This is a feedback form about the above article.
I hope this helps. I was dual booting in a matter of 20-30 minutes or so
from the Windows 2000 boot loader.
Seeeeeeeeeeeeeeeee ya,
Rick
> I am using RedHat 7 with kernel 2.4.0 and have 2 IBM drives: DTLA-307030
> and
> 307045.
> On the 307045 I have win2k and win98 happily booting using the NT
> Loader. The 307030 has Linux on it, with /dev/hdg1 as the root
> partition. The only way to boot linux rather than win2k at the moment is
> to swap the boot drive, which is annoying. I have tried:
> 1. making lilo boot win2k and it just jumps back to the lilo boot menu
> immediately.
> 2. making win2k boot linux using the bootsector as described in the
> FAQs. I
> have copied it from the /dev/hdg and /dev/hdg1 (after altering lilo.conf
> to install there - perhaps (long shot) the partition table was affecting
> the process. This didn't work: all I saw was LI printed down the left
> side of the screen, in a seemingly infinite loop.
>
> So this is a bad scene. I don't want to know about getting the 512byte
> boot sector referred to in my boot.ini, and I don't want to know about
> how lilo can boot win2k. Because I tried pointing it to the MBR on the
> win2k drive
> *and* the win2k host partition. I can use Ranish's partition manager to
> boot
> win98 but didn't try win2k.
>
> Please help alim
>
>
------------------------------
From: Dean Thompson <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking
Subject: Re: useradd command questions
Date: Mon, 02 Apr 2001 12:38:08 +1000
Hi!,
"Ansgar W. Konermann" wrote:
>
> Dean Thompson wrote:
> >
> > To get around your problem you are going to have to either write a
> > wrapper around the useradd program which copies the files back and
> > restores your symoblic links, or write your own adduser function.
>
> I'm not sure whether the useradd command is available as source code.
> It could be in the login package. If so, it should be easy to modify
> the filenames/paths for your need and simply recompile it. This could
> save you some effort in writing a wrapper/your own code.
Although this would solve Choon's problem with the useradd/userdel routine,
you would also have to look at other programs which maniuplate the password
fle as well. I am not exactally sure what "passwd" does, but it may also do
something like create a temporary file, then overwrite the existing one. As a
result, you could end up changing a considerable number of programs and
libraries just to get the functionality required.
Overall, I am just not sure whether it is a wise move for Choon to have those
files located away from /etc and elsewhere. This especially becomes a problem
if they are located on another drive segment which may not be mounted in
single user mode or if one partition becomes sick and can't be mounted. I
don't know what happens to programs like login if there is no /etc/passwd file
present.
See ya
Dean Thompson
--
+____________________________+____________________________________________+
| Dean Thompson | E-mail - [EMAIL PROTECTED] |
| Bach. Computing (Hons) | ICQ - 45191180 |
| PhD Student | Office - <Off-Campus> |
| School Comp.Sci & Soft.Eng | Phone - +61 3 9903 2787 (Gen. Office) |
| MONASH (Caulfield Campus) | Fax - +61 3 9903 1077 |
| Melbourne, Australia | |
+----------------------------+--------------------------------------------+
------------------------------
From: CHNg <[EMAIL PROTECTED]>
Subject: Re: REDHAT LIUNX 7.0 - SERVER INSTALLATION - GRPHICAL LOGIN - HOW?
Date: Mon, 02 Apr 2001 10:30:31 +0800
Reply-To: [EMAIL PROTECTED]
well, not sure what u mean by 'u cant make it in the server installation', but
anyway, during installation, it should ask you to give the initial passowrd for
the root, and this is the password u'll use to login to ur machine.
if you prefer the console to go into command line (text mode) instead of
graphical mode upon booting up, edit /etc/inittab file and look at the content
in there and set to text mode. then, when u want to go into graphical mode, at
the command prompt, just type 'startx'.
hope this helps.
Ferdinand Rey wrote:
> I'm reallyl new to this stuff... I tried installing the RH7 Workstation and
> it works in graphical login but I can't make it in the Server Installation.
> On the startup it asked me for login and password... WHAT'S NEXT? lols...
> How can I go to graphic/Genome/KDE mode? Please let me know what command am
> I gonna use.
>
> Thanks,
> Ferdz
------------------------------
From: John Scudder <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware
Subject: Re: Adaptec 19160 SCSI card support?
Date: Sun, 01 Apr 2001 22:41:05 -0400
Melvin,
I have been using the Adaptec 19160 with Linux since last October. No
problems at all. Adaptec for some reason does not advertise the 19160
as Linux compatible. I don't know why they don't, it certainly is.
John
> Do these SCSI cards work well under linux?
------------------------------
From: [EMAIL PROTECTED] (John Todd)
Subject: Re: How do you stop Linux from trying to start sendmail on startup??
Date: 2 Apr 2001 01:59:54 GMT
Reply-To: [EMAIL PROTECTED]
I suppose it depends on your distro; in RedHat6.0,
look in /etc/rc.d/rc3.d for a term such as S30sendmail
and edit (mv , since its a filename) the S to be a K
On Mon, 02 Apr 2001 00:22:51 GMT, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>I keep looking through all of the init files I can find, but I can't
>find where the system is being told to start sendmail. Every time I
>boot up, it tries, and fails, but it takes an extra minute or two to
>boot up because it keeps trying. Since I don't need it, I would just
>assume it did not try, but I can't find where it is being told to try
>to start it.
>
>TIA,
>Ed
>
--
_____________________
The lap of Linuxury
|<de in RH6.0
------------------------------
From: J Sloan <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.admin
Subject: Re: Novice admin trying to secure a server
Date: Mon, 02 Apr 2001 02:48:34 GMT
David White wrote:
> Hi, all. Our church has its own RH 6.2 Linux box which serves as a mail
> server, web server, and internet gateway for a handful of Windows 95
> machines.
Cool, glad to hear they are enlightened! Is this a dialup connection
or something faster?
> 1) What are the absolute *critical* things that an admin (particually an
> admin of a RH Linux 6.2) box should know about? For instance, what kind of
> things should I be monitoring on a day-to-day basis? What's the usual
> process for keeping up with newly discovered software flaws or backdoors,
> and keeping a system up-to-date?
1. If you are network connected, be sure and tighten down
network access by using /etc/hosts.allow and /etc/hosts.deny
Turn off all unneeded services - check and adjust with the
"chkconfig" utility. You will probably want to turn off telnet and
all the "r" command, and use ssh (secure shell) instead.
2. Things to check - you will want to monitor /var/log/messages
and /var/log/secure, to start with.
3. To keep the system up to date, regularly visit www.redhat.com
and look through the updates for your distro. RedHat usually has
updated packages available within hours of any reported security
issues. Keep all libs, utilities and the kernel up to date.
> 2) What's the easiest way for someone with a limited amount of time to get
> up to speed on sysadmin'ing? Again, I know that it's a big job, so for now
> I'm wanting to get the most critical tools in my toolchest first, and worry
> about optimizing, running backups, etc. after that. Are there any good
> books/websites that can take me from "newbie admin" to at least "moderately
> skilled admin" ?
No substitute for hands on use. Install Linux at home, and
practice doing stuff with it. Set up standard Unix services
and play with them, configure them, try new things. Write
some code, get your feet wet.
> 3) Is it possible to go straight from one version of RH (6.2) to another
> (7.0) without simply erasing the hard drive and reinstalling a fresh copy of
> 7.0 ?
Of course, you boot with the install CD, and you get a choice of
either doing an upgrade, or a clean install.
RH 7.0 is not bad, it includes a lot of cool stuff right out of
the box, but if you do run 7.0, be sure and install all the
updates ASAP.
7.0 is a good system for dropping the new 2.4 kernel into,
but then again, 7.1 will come with 2.4, so you might want to
wait a few weeks for 7.1
jjs
jjs
------------------------------
From: "Trebor" <[EMAIL PROTECTED]>
Subject: backspace key in exceed?
Date: Mon, 02 Apr 2001 03:07:06 GMT
I'm experiencing a known problem with exceed 6.2 on W2K an redhat 7.0 in
which the backspace key won't work in xterm. Unfortunately, the remedies I
have tried all fail, including the one on hummingbird's own support site.
Are there any other workarounds - other than taking a hammer to my PC?
Here's what I've tried:
=> (from hummingbird support site) In Xconfig>Input, clear the "Shifted"
mapping for the backspace key. This will restore the functionality to the
backspace key.
RESULT: Now I get an "h" instead of a "~" when I press backspace.
=> xmodmap -e "keysym BackSpace = 0x0008"
RESULT:
xmodmap: commandline:0: bad keysym target keysym 'BackSpace', no
corresponding keycodes
xmodmap: 1 error encountered, aborting.
thanks,
-Bob
Andover, MA
------------------------------
From: CHNg <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking
Subject: Re: useradd command questions
Date: Mon, 02 Apr 2001 11:03:45 +0800
Reply-To: [EMAIL PROTECTED]
Hi,
thanks for the response. the reason why i want to do that is 'cos i want to
backup the user login id, passwd and home dirs, so that, if the system crashes,
i'll then reinstall a new system and then copy the back-ed up passwd, shadow and
group files to the new system. this way the current users of my system can still
login and continue to use as if nothing has happened.
I am sure there is a better way of doing this, but I've yet to find out.
Basically, my main objective is to backup the users' profiles, so if anything goes
wrong, and i can quickly restore their profiles.
Anyone can suggest a better way of doing this? really appreciate it.
Thanks.
Dean Thompson wrote:
> Hi!,
>
> > i have a 'useradd' problem but not sure how to solve it.
> > I want to move the 'passwd', 'shadow' and 'group' files to another
> > location/parition, and then put symbolic links to them. Everything seems
> > to work. I rebooted the machine and manage to login. I check the
> > /etc/passwd (and the other 2 files), and the links are there. They are
> > pointing/linking to the new locations.
> >
> > But then the problem is, everytime I add a user (useradd <username>),
> > the passwd, shadow and group files are restored to its original location
> > (/etc dir) instead of the partition I wanted them to be. The links are
> > gone and the actual files are back. can someone explain this to me, and
> > how can i place them into a different dir?
>
> I am not exactally sure why anyone would want to change the location of their
> /etc files but thats another story. A quick look at the system calls that are
> performed when the "useradd" process will reveal that you are fighting a
> losing battle.
>
> As part of the user creation process, useradd actually creates a temporary
> file in the /etc directory where it basically copies over all the other
> password entries and then appends the new user to the end. At the completion
> of this step, it then executes a rename command which unlinks the file that
> was previously there (your symbolic link) and then plants the /etc/passwd
> file. This is the same for your /etc/shadow and /etc/group files as well.
> Take a look at the following snippet:
>
> [...]
> open("/etc/passwd+", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 6
> [...]
> rename("/etc/passwd+", "/etc/passwd") = 0
> [...]
>
> To get around your problem you are going to have to either write a wrapper
> around the useradd program which copies the files back and restores your
> symoblic links, or write your own adduser function.
>
> See ya
>
> Dean Thompson
>
> --
> +____________________________+____________________________________________+
> | Dean Thompson | E-mail - [EMAIL PROTECTED] |
> | Bach. Computing (Hons) | ICQ - 45191180 |
> | PhD Student | Office - <Off-Campus> |
> | School Comp.Sci & Soft.Eng | Phone - +61 3 9903 2787 (Gen. Office) |
> | MONASH (Caulfield Campus) | Fax - +61 3 9903 1077 |
> | Melbourne, Australia | |
> +----------------------------+--------------------------------------------+
------------------------------
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Subject: Re: Red Hat Install on Compaq
Date: Mon, 02 Apr 2001 03:10:25 GMT
Kevin Norburn wrote:
>
> Trying to install Red Hat Linux 7.0 onto a Compaq Deskpro 667. The PC
> has an onboard Matrox G400 video card, which Red Hat picks up on. The
> problem is that when Anaconda runs - I keep getting an 'out of range error'
> on screen and my monitor turns off. Even though it selects the correct
> monitor (I've tried two different one's - an LCD and a CRT and had the same
> problem on both).
>
> Even setting to Standard VGA or Custom doesn't seem to help.
>
> Does any one know where I'm going wrong?
Did you update your pc with the latest firmware from Compaq?
If not you might want to I had to update my dual-cpu
workstation firmware. linux would just lockup and only
a hard reset fixed it until the next lockup.
------------------------------
From: CHNg <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking
Subject: Re: useradd command questions
Date: Mon, 02 Apr 2001 11:04:04 +0800
Reply-To: [EMAIL PROTECTED]
Hi,
thanks for the response. the reason why i want to do that is 'cos i want to
backup the user login id, passwd and home dirs, so that, if the system crashes,
i'll then reinstall a new system and then copy the back-ed up passwd, shadow and
group files to the new system. this way the current users of my system can still
login and continue to use as if nothing has happened.
I am sure there is a better way of doing this, but I've yet to find out.
Basically, my main objective is to backup the users' profiles, so if anything goes
wrong, and i can quickly restore their profiles.
Anyone can suggest a better way of doing this? really appreciate it.
Thanks.
Dean Thompson wrote:
> Hi!,
>
> > i have a 'useradd' problem but not sure how to solve it.
> > I want to move the 'passwd', 'shadow' and 'group' files to another
> > location/parition, and then put symbolic links to them. Everything seems
> > to work. I rebooted the machine and manage to login. I check the
> > /etc/passwd (and the other 2 files), and the links are there. They are
> > pointing/linking to the new locations.
> >
> > But then the problem is, everytime I add a user (useradd <username>),
> > the passwd, shadow and group files are restored to its original location
> > (/etc dir) instead of the partition I wanted them to be. The links are
> > gone and the actual files are back. can someone explain this to me, and
> > how can i place them into a different dir?
>
> I am not exactally sure why anyone would want to change the location of their
> /etc files but thats another story. A quick look at the system calls that are
> performed when the "useradd" process will reveal that you are fighting a
> losing battle.
>
> As part of the user creation process, useradd actually creates a temporary
> file in the /etc directory where it basically copies over all the other
> password entries and then appends the new user to the end. At the completion
> of this step, it then executes a rename command which unlinks the file that
> was previously there (your symbolic link) and then plants the /etc/passwd
> file. This is the same for your /etc/shadow and /etc/group files as well.
> Take a look at the following snippet:
>
> [...]
> open("/etc/passwd+", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 6
> [...]
> rename("/etc/passwd+", "/etc/passwd") = 0
> [...]
>
> To get around your problem you are going to have to either write a wrapper
> around the useradd program which copies the files back and restores your
> symoblic links, or write your own adduser function.
>
> See ya
>
> Dean Thompson
>
> --
> +____________________________+____________________________________________+
> | Dean Thompson | E-mail - [EMAIL PROTECTED] |
> | Bach. Computing (Hons) | ICQ - 45191180 |
> | PhD Student | Office - <Off-Campus> |
> | School Comp.Sci & Soft.Eng | Phone - +61 3 9903 2787 (Gen. Office) |
> | MONASH (Caulfield Campus) | Fax - +61 3 9903 1077 |
> | Melbourne, Australia | |
> +----------------------------+--------------------------------------------+
------------------------------
From: Dean Thompson <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking
Subject: Re: useradd command questions
Date: Mon, 02 Apr 2001 13:21:25 +1000
Hi Choon,
> thanks for the response. the reason why i want to do that is 'cos i want to
> backup the user login id, passwd and home dirs, so that, if the system
> crashes, i'll then reinstall a new system and then copy the back-ed up
> passwd, shadow and group files to the new system. this way the current
> users of my system can still login and continue to use as if nothing has
> happened.
Putting in symbolic links won't save you if the other drive crashes. What you
might like to think of doing is creating a cron job which backups your /etc
and data areas into a .tgz (or tar file) and stores that somewhere safe. This
way, if the system falls over, you will have all the files backup in the .tgz
file which you will be backing up to another location off the computer you are
hoping to safe.
There are also a number of backup programs available out there as well.
Programs that come to mind are the AMANDA project if you have a SCSI tape
drive handy (http://www.cs.umd.edu/projects/amanda/index.html), or other
backup programs like tar or cpio. There are a whole swag of them out there.
The key to the backup however, is to make sure that any data you backup
eventually is stored on another system otherwise if the machine crashes for
some reason (broken power supply, motherboard dies) you will be stuck.
See ya
Dean Thompson
--
+____________________________+____________________________________________+
| Dean Thompson | E-mail - [EMAIL PROTECTED] |
| Bach. Computing (Hons) | ICQ - 45191180 |
| PhD Student | Office - <Off-Campus> |
| School Comp.Sci & Soft.Eng | Phone - +61 3 9903 2787 (Gen. Office) |
| MONASH (Caulfield Campus) | Fax - +61 3 9903 1077 |
| Melbourne, Australia | |
+----------------------------+--------------------------------------------+
------------------------------
From: "Riyaz Mansoor" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux.redhat
Subject: Monitor set up
Date: Mon, 2 Apr 2001 13:34:34 +1000
does anyone have the monitor setup of Hyundai DeluxScan 5854 for xfree ?
riyaz
------------------------------
From: "Jacob Williams" <[EMAIL PROTECTED]>
Subject: Re: How do you stop Linux from trying to start sendmail on startup??
Date: Mon, 2 Apr 2001 14:00:40 +1000
If you are using red hat you can run setup in a command prompt
this will allow you to perform a few simple configurations including system
services. This gives you a list of services that you can start on boot and
you can easily stop it there...
or you could look for your startup files, in redhat they are in
/etc/rc.d/rc[runlevel].d where runlevel is the level the computer boots
into. in these directories you will find symbolic links to files in the
/etc/rc.d/init.d directory with names like S35sendmail and K15squid (these
are not accurate)
The S means start and the K means Kill, the numbers indicate in which order
they are to be started/killed. EG S15sendmail would be started before
S59squid.
not sure what the other distro's directories are called but it should be
summin similar...
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> I keep looking through all of the init files I can find, but I can't
> find where the system is being told to start sendmail. Every time I
> boot up, it tries, and fails, but it takes an extra minute or two to
> boot up because it keeps trying. Since I don't need it, I would just
> assume it did not try, but I can't find where it is being told to try
> to start it.
>
> TIA,
> Ed
>
------------------------------
From: [EMAIL PROTECTED] (Rod Smith)
Crossposted-To:
poster,ahn.tech.linux,alt.os.linux.mandrake,bellsouth.net.support.adsl,bellsouth.net.support.linux
Subject: Re: Bellsouth ADSL
Date: Mon, 02 Apr 2001 04:05:53 -0000
Reply-To: [EMAIL PROTECTED]
In article <c1Px6.205$[EMAIL PROTECTED]>,
"John" <[EMAIL PROTECTED]> writes:
> Is either the pci or the external usb dsl modems superior?
If you mean "is either of them superior to an Ethernet modem," then for
Linux use, and as a general rule, no. Ethernet DSL modems work in Linux
(assuming they're not defective). Few USB or internal models do. Those
few that do work might be superior in certain specific circumstances
(say, if you've got built-in USB ports but not enough slots to add an
Ethernet card -- but even then there are USB-to-Ethernet adapters, and
Ethernet modems allow you to add external routers to your network, so
using an Ethernet modem in conjunction with a USB-to-Ethernet adapter
will make for greater future expandability).
If you mean "is either superior to the other," then it's a matter of the
specific models and your specific uses. If one's got drivers but the
other doesn't, then clearly the one with drivers is superior. Assuming
both have drivers, then it's a matter of your particular needs and
preferences. An internal device is likely to put less of a load on the
CPU, for instance; but a USB device is more easily moved between
computers.
If you need more specific information, please post a more specific
query.
--
Rod Smith, [EMAIL PROTECTED]
http://www.rodsbooks.com
Author of books on Linux & multi-OS configuration
------------------------------
** 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.setup.
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-Setup Digest
******************************