LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Full dialup and DNS ok as root, user can only ping the ISP, permission? (https://www.linuxquestions.org/questions/linux-newbie-8/full-dialup-and-dns-ok-as-root-user-can-only-ping-the-isp-permission-316866/)

Emmanuel_uk 04-25-2005 02:37 AM

Full dialup and DNS ok as root, user can only ping the ISP, permission? (now solved)
 
Hi,

Root has full dial-up and internet access with mozilla.
However, as a user I can only connect to the ISP, ping the ISP, but mozilla and konqueror have the same error: "cannot resolve…"
I tried to ping corel.com and then its number directly, no success as a user.

I come to the conclusion that it is a permission problem.
Can you please suggest where to look?
I have spent all weekend installing the linmodem, that now works, but I do not understand yet what/ where the permission is about for the net connection.
I use mandrake 10.1 CE.
I downgraded the firewall setting to normal instead of hig. No success
I insmod slmodem (or whatever it is) as root via a CLI.
I start Kppp from the user icon (not root)
Root access to the net is full via Kppp and wvdial.

Thanks
regards

In case it helps:
Code:

# ls -l /dev/ttySL0 /dev/modem /dev/pts/2
lrwxrwxrwx  1 root root    11 Apr 24 14:06 /dev/modem -> /dev/ttySL0
crw-rw----  1 root uucp 136, 2 Apr 24 19:58 /dev/pts/2
lrwxrwxrwx  1 root root    10 Apr 24 19:58 /dev/ttySL0 -> /dev/pts/2

Host.conf
order bind,hosts
multi on

Hosts
127.0.0.1                localhost

hosts.allow
empty file

hosts.deny

No inetd file but a xinetd:

# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/

defaults
{
        instances              = 60
        log_type                = SYSLOG authpriv
        log_on_success                = HOST PID
        log_on_failure                = HOST
        cps                        = 25 30
}

includedir /etc/xinetd.d

Some dmesg
NET: Registered protocol family 17
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
Intel 810 + AC97 Audio, version 1.01, 16:58:44 Sep 8 2004
PCI: Found IRQ 11 for device 0000:00:1f.5
PCI: Sharing IRQ 11 with 0000:00:1f.6
PCI: Setting latency timer of device 0000:00:1f.5 to 64
i810: Intel ICH 82801AA found at IO 0xd000 and 0xd400, MEM 0x0000 and 0x0000, IRQ 11
i810_audio: Audio Controller supports 2 channels.
i810_audio: Defaulting to base 2 channel mode.
i810_audio: Resetting connection 0
ac97_codec: AC97 Audio codec, id: ADS72 (Analog Devices AD1881A)
i810_audio: AC'97 codec 0 Unable to map surround DAC's (or DAC's not present), total channels = 2
i810_audio: setting clocking to 48566
parport0: PC-style at 0x378 [PCSPP,TRISTATE,EPP]
ppdev: user-space parallel port driver
NET: Registered protocol family 10
Disabled Privacy Extensions on device c0323b60(lo)
IPv6 over IPv4 tunneling driver
slamr: module license 'Smart Link Ltd.' taints kernel.
slamr: SmartLink AMRMO modem.
slamr: probe 8086:2416 ICH card...
PCI: Found IRQ 11 for device 0000:00:1f.6
PCI: Sharing IRQ 11 with 0000:00:1f.5
PCI: Setting latency timer of device 0000:00:1f.6 to 64
slamr: mc97 codec is SIL22
slamr: slamr0 is ICH card.
PPP BSD Compression module registered
PPP Deflate Compression module registered

nhs 04-25-2005 07:23 PM

What's the output of iptables-save and "ifconfig -a" (the latter when connected)?

Emmanuel_uk 04-26-2005 12:59 AM

Thanks. Will post output tonight or tomorrow.
Will also add tail -f /var/log/syslog (for root and user if different)
I wondered as well, is it worth checking if some process (ppp?) have the SUID set? Does it matter?

Also, here is the procedure I use to connect (in case there was any clue)
as root
# modprob usr/lib..../slamr
# slmodem --countrylist (b4 for the UK)
# slmodemd --country=b4 /dev/slamr0 &
#ln -s /dev/modem /dev/ttySL0
then as user launch wvdial or kpp via a CLI or via an icon.
At this stage only do I start mozilla or try to ping (with the results
described in my previous mail)

(To get the modem to work in the first place I installed slmodem.xx.rpm
that came with the distro)

regards

Emmanuel_uk 04-26-2005 03:15 PM

Nhs,

Here are the info. I looked at quite a few things.
Still user1 cannot resolve DNS (or something like that)

How do I start the modem
modprobe lib/modules/2.6.8.1-10mdk/kernel/drivers/char/slamr
# slmodemd --country=b4 /dev/slamr0 &
bad country name `b4', using default by code!
symbolic link `/dev/ttySL0' -> `/dev/pts/3' created.
modem `slamr0' created. TTY is `/dev/pts/3'
Use `/dev/ttySL0' as modem device, Ctrl+C for termination.
# ln -s /dev/ttySL0 /dev/modem

# locate ipta
not there
So I installed iptables-1.2.9-7mdk.i586 and iptables-ipv6

# iptables-save
# ip6tables-save
both commands run, no output

While running the connection as root
[root@localhost user1]# ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:102 errors:0 dropped:0 overruns:0 frame:0
TX packets:102 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6422 (6.2 Kb) TX bytes:6422 (6.2 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:81.78.164.50 P-t-P:195.92.168.45 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:64 (64.0 b) TX bytes:97 (97.0 b)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

Kpp lauched from root. mozilla launched as user1:

[root@localhost user1]# ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:102 errors:0 dropped:0 overruns:0 frame:0
TX packets:102 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6422 (6.2 Kb) TX bytes:6422 (6.2 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:81.78.164.50 P-t-P:195.92.168.45 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:23 errors:0 dropped:0 overruns:0 frame:0
TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:21251 (20.7 Kb) TX bytes:1560 (1.5 Kb)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

Apr 26 16:17:06 localhost pppd[4387]: pppd 2.4.2 started by root, uid 0
Apr 26 16:17:06 localhost pppd[4387]: Using interface ppp0
Apr 26 16:17:06 localhost pppd[4387]: Connect: ppp0 <--> /dev/pts/3
Apr 26 16:17:10 localhost pppd[4387]: PAP authentication succeeded
Apr 26 16:17:10 localhost kernel: PPP BSD Compression module registered
Apr 26 16:17:10 localhost kernel: PPP Deflate Compression module registered
Apr 26 16:17:11 localhost pppd[4387]: local IP address 81...........
Apr 26 16:17:11 localhost pppd[4387]: remote IP address 195.92.168.45
Apr 26 16:17:11 localhost pppd[4387]: primary DNS address 195.92.195.95
Apr 26 16:17:11 localhost pppd[4387]: secondary DNS address 195.92.195.94
Apr 26 16:17:12 localhost postfix[4439]: warning: My hostname localhost is not a
fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Apr 26 16:17:12 localhost postfix/master[4440]: warning: My hostname localhost i
s not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Apr 26 16:17:12 localhost postfix/postsuper[4442]: warning: My hostname localhos
t is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Apr 26 16:17:12 localhost postfix/postsuper[4444]: warning: My hostname localhost is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Apr 26 16:17:12 localhost postfix/master[3173]: reload configuration
Apr 26 16:17:12 localhost postfix/qmgr[4450]: warning: My hostname localhost isnot a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Apr 26 16:17:12 localhost postfix/pickup[4451]: warning: My hostname localhost is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Apr 26 16:18:57 localhost pppd[4387]: Terminating on signal 15.
Apr 26 16:18:58 localhost pppd[4387]: Connection terminated.
Apr 26 16:18:58 localhost pppd[4387]: Connect time 1.9 minutes.
Apr 26 16:18:58 localhost pppd[4387]: Sent 1664 bytes, received 21355 bytes.
Apr 26 16:18:59 localhost postfix[4523]: warning: My hostname localhost is not a
fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Apr 26 16:18:59 localhost postfix/master[4524]: warning: My hostname localhost i
s not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.c

Just for info
# ps -A | egrep -v 'k|mingetty|sas'
PID TTY TIME CMD
1 ? 00:00:04 init
3 ? 00:00:00 events/0
28 ? 00:00:00 pdflush
29 ? 00:00:00 pdflush
31 ? 00:00:00 aio/0
383 ? 00:00:00 udevd
2595 ? 00:00:00 portmap
2609 ? 00:00:00 syslogd
2731 ? 00:00:00 xfs
2746 ? 00:00:00 dbus-daemon-1
2777 ? 00:00:00 atd
2795 ? 00:00:39 X
2858 ? 00:00:00 xinetd
2937 ? 00:00:00 cupsd
3060 ? 00:00:00 clamd
3173 ? 00:00:00 master
3324 ? 00:00:00 dbus-launch
3325 ? 00:00:00 dbus-daemon-1
3339 ? 00:00:00 s2u
3343 ? 00:00:00 magicdev
3369 ? 00:00:00 gconfd-2
3376 ? 00:00:00 famd
3401 ? 00:00:00 artsd
3447 pts/1 00:00:00 bash
3483 pts/1 00:00:00 su
3488 pts/1 00:00:00 bash
3523 pts/1 00:00:00 tail
3525 ? 00:00:00 sendmail.sendma
3723 ? 00:00:00 crond
4262 pts/2 00:00:00 bash
4294 pts/2 00:00:00 su
4297 pts/2 00:00:00 bash
4370 pts/2 00:00:18 slmodemd
4669 ? 00:00:00 qmgr
4670 ? 00:00:00 tlsmgr
4703 pts/2 00:00:00 ps
4704 pts/2 00:00:00 egrep

Kppp started from user1

Apr 26 16:27:52 localhost pppd[4743]: pppd 2.4.2 started by user1, uid 501
Apr 26 16:27:52 localhost pppd[4743]: Using interface ppp0
Apr 26 16:27:52 localhost pppd[4743]: Connect: ppp0 <--> /dev/pts/3
Apr 26 16:27:53 localhost pppd[4743]: PAP authentication succeeded
Apr 26 16:27:53 localhost pppd[4743]: local IP address 81..................
Apr 26 16:27:53 localhost pppd[4743]: remote IP address 195.92.168.44
Apr 26 16:27:53 localhost pppd[4743]: primary DNS address 195.92.195.95
Apr 26 16:27:53 localhost pppd[4743]: secondary DNS address 195.92.195.94
Apr 26 15:27:54 localhost postfix/postqueue[4814]: warning: My hostname localhost is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Apr 26 16:30:25 localhost pppd[4743]: Terminating on signal 15.
Apr 26 16:30:26 localhost pppd[4743]: Connection terminated.
Apr 26 16:30:26 localhost pppd[4743]: Connect time 2.6 minutes.
Apr 26 16:30:26 localhost pppd[4743]: Sent 97 bytes, received 64 bytes

As user1 now launching mozilla, on all sites message is "hostname not found".
$ ping google.com
ping: unknown host google.com
# ping google.com
ping: unknown host google.com

ifconfig cannot be run by user1, so with root

[root@localhost user1]# ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:102 errors:0 dropped:0 overruns:0 frame:0
TX packets:102 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6422 (6.2 Kb) TX bytes:6422 (6.2 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:81.76.250.166 P-t-P:195.92.168.44 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:64 (64.0 b) TX bytes:97 (97.0 b)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

Disconnect
Launch kppp as root
# ping google.com
PING google.com (216.239.39.99) 56(84) bytes of data.
64 bytes from 216.239.39.99: icmp_seq=1 ttl=245 time=279 ms
64 bytes from 216.239.39.99: icmp_seq=2 ttl=245 time=257 ms
64 bytes from 216.239.39.99: icmp_seq=3 ttl=245 time=252 ms
64 bytes from 216.239.39.99: icmp_seq=4 ttl=245 time=251 ms

Disconnect, reconenct as user1
$ ping 216.239.39.99
connect: Network is unreachable


# ls -l /usr/sbin/pp*
-rwsr-xr-t 1 root root 303511 Aug 24 2004 /usr/sbin/pppd*
-rwxr-xr-x 1 root root 38648 Aug 24 2004 /usr/sbin/pppdump*
-rwxr-xr-x 1 root daemon 9008 Aug 24 2004 /usr/sbin/pppstats*
-rw-r--r-- 2 root root 51 Apr 26 16:30 /etc/resolv.conf

# cat /etc/ppp/options
#lock (I removed the lock, as also provided by kppp)
noauth
noipdefault
usepeerdns

Broken link at first but then not broken anymore after using kppp
ls -l /etc/ppp/resolv.conf
lrwxrwxrwx 1 root daemon 29 Nov 24 21:38 /etc/ppp/resolv.conf
-> ../../var/run/ppp/resolv.conf

# cat /etc/pam.d/ppp
#%PAM-1.0
auth required pam_nologin.so
auth required pam_stack.so service=system-auth
account required pam_stack.so service=system-auth
session required pam_stack.so service=system-auth

# cat /etc/hosts
127.0.0.1 localhost
# cat /etc/host.conf
order bind,hosts
multi on
# cat /etc/hosts.deny
ALL: ALL@ALL, PARANOID

nhs 04-26-2005 06:27 PM

Quite wierd. About the only thing which I can think of which could cause a problem is if for some reason the ppp0 interface doesn't get set as the default gateway by ppp0 (which is hinted at by the fact that /etc/ppp/options doesn't have the defaultroute option) in which case it just doesn't know to use that interface for unknown destinations. Once connected try "route add default gw 195.92.168.44" where 195.92.168.44 is the remote end of the PPP connection. If this works then add defaultroute to /etc/ppp/options and/or find the appropriate option for kppp however this looks to be the most likely problem.

Emmanuel_uk 04-27-2005 01:36 AM

Thanks ever so much for the suggestion.
It is appreciated. Will try tonight

If you like challenges, I also have a speed problem on my other box,
with a different modem but same ISP account, same distro mandy 10.1 CE
http://www.linuxquestions.org/questi...42#post1612542

I am sure of one thing, I have started to learn how to debug connections.
But as a newbee, I still need to understand where ppp0 seats with respect to pppd.

Regards

nhs 04-27-2005 11:02 AM

ppp0 is the network interface (like eth0) and pppd is the program which creates the interface and converts the ethernet-like appearance of ppp0 into a byte stream for the modem's consumption.

Emmanuel_uk 04-27-2005 01:37 PM

success defaultroute pppd option
 
Nhs,
The route add gw trick worked. Thanks a lot!
Also added defaultroute to /etc/ppp/options.
It does solve the problem as well.

Onto my next modem now: got to have more than 33200 bps!

regards

PS: How on earth I had the problem in the first place, I do not know


All times are GMT -5. The time now is 07:32 AM.