1757408 Members
3164 Online
108860 Solutions
New Discussion юеВ

A few Network questions

 
SOLVED
Go to solution
Emil Velez
Honored Contributor

A few Network questions

I am testing a product on a new install of SUSE Linux Enterprise 10 and need a few Linux questions answered.

My background is mainly HPUX so the various distributions of Linux are quite new.

1. Can I delete /etc/securetty and allow root to login from anywhere

2. How can I allow shorter passwords like hp

3. Is there any command other than lvmdiskscan that I can use to see what disks I have on the system. On HPUX I use ioscan

4. I configured both lan cards with IP addresses and

I find a file for each lan card in /etc/sysconfig/network/
ifcfg-eth-id00:17:a4:46:0b:90 and
ifcfg-eth-id00:17:a4:46:0b:91

But when I do a
/sbin/ifconfig eth0
/sbin/ifconfig eth1

only 1 of them have a IP address.

How do I enable both of the IPs which are in different subnets to be active. IN the GUI when I enable 1 lan card it disables the other.

5. I installed SUSE10 Enterprise and I cannot seem to find the apache web server to start it for some default content. ANy ideas where it normally installs ?

Thanks for any solutions you can provide. As a expert this is probably simple stuff I hope.

Points will be assigned and any help is appreciated.
12 REPLIES 12
Emil Velez
Honored Contributor

Re: A few Network questions

I got these from another source and wanted to attach them. Additional replies are appreciated too

1 do not delete /etc/securetty. Root still can log in from everywhere. I presume you are suing ssh to log in to the server.

2 I tried using password hp (2 character password) and it worked. So, I guess we dont need any changes to be made.

3 run fdisk l or pvdislap

To see the luns connected, check the file /proc/scsi/scsi

5 - I think the Apache RPM (httpd is not installed by default. If it is not, then install in from the install media.

Then you can start and stop the apache server with following command:



/usr/sbin/rcapache2 start

/usr/sbin/rcapache2 stop


Hemmetter
Esteemed Contributor
Solution

Re: A few Network questions

Hi Emil,

1)
have a look at login(1):

This login implementation does ignore /etc/nologin and /etc/securetty. You need to configure this in the PAM configuration file for login in /etc/pam.d/login.

login reads the /etc/login.defs(5) configuration file. Please refer to this documenation for options which could be set.
<...>

also have a look at login.defs(5)


2)
Password policy can be influenced in
/etc/security/pam_pwcheck.conf
password: minlen=8 cracklib nullok

see pam_pwcheck(8)

3)
On Suse there may be "lsscsi" comman to show visible DISKs on your system


4) try "ifup eth0" and "ifup eth1"

check the config-files for:
BOOTPROTO='static'
STARTMODE='onboot'



rgds
HGH
Emil Velez
Honored Contributor

Re: A few Network questions

The resolution for the network cards was to nwmgr=no in the config file in /etc/sysconfig/network

thanks for the help
Emil Velez
Honored Contributor

Re: A few Network questions

thanks
Maaz
Valued Contributor

Re: A few Network questions

>The resolution for the network cards was to
>nwmgr=no in the config file in /etc/sysconfig/network
You got the solution your self. The NetworkManager is a Desktop class tool, it should not be the part of Server OS.
When NetworkManager is enabled, you can use only one NIC at a time.

you can also disable NetworkManager via
yast lan > select "Traditional Method with ifup"

Regards
Maaz
Emil Velez
Honored Contributor

Re: A few Network questions

Thanks mazz
dirk dierickx
Honored Contributor

Re: A few Network questions

just a note on point 1 & 2;

why would you want to change those to something less secure? sure it's different from hpux, which is a good thing in most times.

linux was also the first to include ssh by default (turning telnet off), but you'd be crazy to go back to telnet now, right?
John McNulty_2
Frequent Advisor

Re: A few Network questions


If you have it installed, try using lshw.

# lshw -short

It generates an output list very similar to ioscan on HP-UX. It doesn't seem to pick up CCISS raid card disks unfortunately, but will pick up SATA and SCSI disks.

e.g.

H/W path Device Class Description
===================================================
system HP d530 SFF(DG758A)
/0 bus 085Ch
/0/1 memory 128KiB BIOS
/0/5 processor Intel(R) Pentium(R) 4 CPU 3.00GHz
/0/5/6 memory 8KiB L1 cache
/0/5/7 memory 512KiB L2 cache
/0/5/0.1 processor Logical CPU
/0/5/0.2 processor Logical CPU
/0/27 memory System Memory
/0/27/0 memory 1GiB DIMM DDR Synchronous 400 MHz (2.5 ns)
/0/27/1 memory 1GiB DIMM DDR Synchronous 400 MHz (2.5 ns)
/0/27/2 memory 1GiB DIMM DDR Synchronous 400 MHz (2.5 ns)
/0/27/3 memory 1GiB DIMM DDR Synchronous 400 MHz (2.5 ns)
/0/28 memory Flash Memory
/0/28/0 memory 512KiB Chip FLASH Non-volatile
/0/0 memory
/0/2 memory
/0/100 bridge 82865G/PE/P DRAM Controller/Host-Hub Interface
/0/100/2 display 82865G Integrated Graphics Controller
/0/100/1d bus 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1
/0/100/1d/1 usb2 bus UHCI Host Controller
/0/100/1d.1 bus 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2
/0/100/1d.1/1 usb3 bus UHCI Host Controller
/0/100/1d.2 bus 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3
/0/100/1d.2/1 usb4 bus UHCI Host Controller
/0/100/1d.7 bus 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller
/0/100/1d.7/1 usb1 bus EHCI Host Controller
/0/100/1e bridge 82801 PCI Bridge
/0/100/1e/2 eth1 network NetXtreme BCM5782 Gigabit Ethernet
/0/100/1e/9 eth0 network RTL-8169 Gigabit Ethernet
/0/100/1f bridge 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge
/0/100/1f.1 storage 82801EB/ER (ICH5/ICH5R) IDE Controller
/0/100/1f.1/1 ide1 bus IDE Channel 1
/0/100/1f.1/1/0 /dev/hdc disk ATAPI MS-8148C1
/0/100/1f.2 scsi0 storage 82801EB (ICH5) SATA Controller
/0/100/1f.2/0 /dev/sda disk 320GB SAMSUNG HA320KJ
/0/100/1f.2/0/1 /dev/sda1 volume 203MiB EXT3 volume
/0/100/1f.2/0/2 /dev/sda2 volume 297GiB Linux raid autodetect partition
/0/100/1f.2/1 /dev/sdb disk 320GB SAMSUNG HD320KJ
/0/100/1f.2/1/1 /dev/sdb1 volume 203MiB EXT3 volume
/0/100/1f.2/1/2 /dev/sdb2 volume 297GiB Linux raid autodetect partition
/0/100/1f.5 multimedia 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller
/0/3 scsi2 storage
/0/3/0.0.0 /dev/sdc disk 10GB VIRTUAL-DISK
/0/3/0.0.0/1 /dev/sdc1 volume 10236MiB Linux filesystem partition
/0/4 scsi3 storage
/0/4/0.0.0 /dev/sdd disk 10GB VIRTUAL-DISK
/0/4/0.0.0/1 /dev/sdd1 volume 10236MiB Linux filesystem partition


To get more information on each you can do:

# lshw -class disk

e.g.

[root@dsv02 ~]# lshw -class disk
*-cdrom
description: IDE CD-ROM
product: ATAPI MS-8148C1
physical id: 0
bus info: ide@1.0
logical name: /dev/hdc
version: H.05
capabilities: packet atapi cdrom removable nonmagnetic dma lba iordy audio
configuration: status=nodisc
*-disk:0
description: ATA Disk
product: SAMSUNG HA320KJ
physical id: 0
bus info: scsi@0:0.0.0
logical name: /dev/sda
version: CV90
serial: S18WJ1NPB01155
size: 298GiB (320GB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 signature=0001142d
*-disk:1
description: ATA Disk
product: SAMSUNG HD320KJ
physical id: 1
bus info: scsi@1:0.0.0
logical name: /dev/sdb
version: CP10
serial: S10MJDWQ124623
size: 298GiB (320GB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 signature=000ece9d
*-disk
description: SCSI Disk
product: VIRTUAL-DISK
vendor: IET
physical id: 0.0.0
bus info: scsi@2:0.0.0
logical name: /dev/sdc
version: 0
size: 10GiB (10GB)
capacity: 10GiB (10GB)
capabilities: 15000rpm partitioned partitioned:dos
configuration: ansiversion=4 signature=00033237
*-disk
description: SCSI Disk
product: VIRTUAL-DISK
vendor: IET
physical id: 0.0.0
bus info: scsi@3:0.0.0
logical name: /dev/sdd
version: 0
size: 10GiB (10GB)
capacity: 10GiB (10GB)
capabilities: 15000rpm partitioned partitioned:dos
configuration: ansiversion=4 signature=00033237

Rgds,

John

Emil Velez
Honored Contributor

Re: A few Network questions

lshw does not load standard with SUSE.