Re: [SLUG] non-root users cant use network
On Mon, Aug 29, 2011 at 01:06:34PM +1000, Chris Barnes wrote: > cpbarnes@netbook:~$ ping 127.0.0.1 > socket: Permission denied > cpbarnes@netbook:~$ wget http://127.0.0.1/ > Connecting to 127.0.0.1:80... failed: Permission denied. Interesting. Try "strace wget http://127.0.0.1/"; and see which system calls are failing. My guess is bad permissions on /dev, /sys or /proc. Backup guesses are: something to do with selinux, out of memory, bad capabilities, or some important module not loaded! Nick. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] non-root users cant use network
Hi everyone, I'm fairly new to the list. I've got what I would consider an interesting issue with a little netbook I've been playing around with. basically regular users cannot make any outbound network connections. for example: cpbarnes@netbook:~$ ping 127.0.0.1 socket: Permission denied and cpbarnes@netbook:~$ wget http://127.0.0.1/ Connecting to 127.0.0.1:80... failed: Permission denied. doing the same as root works. Interestingly when i do: root@netbook:~# /sbin/ifconfig i can see the loopback interface AND its ip address 127.0.0.1 however as a regular user i get: "warning: no inet socket available: no such file or directory" i can see the loopback interface but there is no ip address. heres a little background. The netbook features an ARM processor, 128meg RAM, and the main storage is a USB thumb drive wired straight on to the mainboard. It came pre-loaded with Windows CE 6 however, as stunning and feature rich as it was, i got my hands on the vendors linux install for the netbook and installed that. The vendors Linux install is Debian based, ive got 2 varients, Debian 5 and Debian 6. Both present the same problem. I've tried updating the installed packages but the problem persists. The Linux kernel supplied appears to be a customised 2.6 and pretty much all the modules are compiled in. ive done a stack of searching on the interwebs. a lot of people talk about needing to setuid on the ping bin, but this is already done root@netbook:~# ls -l /bin/ping -rwsr-xr-x 1 root root 34984 oct 14 2010 /bin/ping and besides, its not just ping that isnt working. i get this problem with the loopback interface, with the ethernet interface, and with the wireless interface. /sbin/route shows no entries, not even locally connected networks but even after adding one problem persists. e.g. route add -net 127.0.0.0/8 lo some people have also suggested ip tables could be the problem but as far as I can tell no rules are installed. it doesnt even look like iptables support is compiled into the kernel root@netbook:~# /sbin/iptables -L iptables v1.4.8: can't initialize iptables table `filter`: iptables who? (do you need insmod?) Perhaps iptables or your kernel needs to be upgraded. I've never seen a problem like this. Does anyone have any ideas or suggestions on what to look for or what to try next? Thanks or your time. -- Kind Regards, Christopher Barnes e. chris.p.bar...@gmail.com -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Text to HTML?
On Mon, 2011-08-29 at 10:04 +1000, DaZZa wrote: > Hi. > > I'm looking for something that can take a text file and convert it > into HTML, possible with some highlighting. > > I've got some routers reporting to my syslog server on a Linux box, > but I want to be able to do a quick scan for bad things without having > to SSH to the box and scrolling through the text file. > > It'd be nice if the files could be put in some form of date > order/heading for each tracking (in conjunction with logrotate, maybe) > to ensure all that it in the link is one days worth of logs. > > Anyone know of such a beastie? It's be nice if it was CentOS > compatible, since that's what I'm stuck with at work, but if it's > source and needs to be compiled, so be it. > > Thanks. > > DaZZa Don't convert it. Apache will present a file as text which you can then look at with a browser. Alternatively a very simple perl (whatever) program could be used to rip through the log and present things you are interested in quickly and then present the full log at the click of a button. I would also bee looked for log analysis programs, most will analyse and present logs with colour. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Text to HTML?
On Mon, Aug 29, 2011 at 10:04 AM, DaZZa wrote: > I've got some routers reporting to my syslog server on a Linux box, > but I want to be able to do a quick scan for bad things without having > to SSH to the box and scrolling through the text file. > It's not what you asked for, but I like logcheck, it runs syslog through a whole bunch of regex and emails you anything out of the ordinary. It comes with a default set of rules and you can add to them as you receive emails with mundane lines. I set mine to run every hour, and I get about 5 emails a day, depending on what's happening with my boxes. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Was 'kernel panic', now '/usr/sbin/: Not found.'
I deleted the second version of 'grub' in /mnt/w1 but now find that I have guest@guest:/mnt/w1/boot/boot/grub$ vi grub.cfg .. a boot within a boot dir .. implying non-recursive deletion .. ? Adam. - Original Message Follows - > On Mon, Aug 29, 2011 at 10:10:45AM +1200, adam.bogacki > wrote: > > > I mount dev, proc, sys, and usr on /dev/sda (aka w1), > and > > What does df or mount show at this point > > > guest@guest:~$ sudo chroot /mnt/w1 /bin/bash > > and this point > -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Was 'kernel panic', now '/usr/sbin/: Not found.'
Fy, Adam. - Message Forwarded on Mon 29/8/2011 - From: "adam.bogacki" To: Matthew Hannigan Subject: Re: [SLUG] Was 'kernel panic', now '/usr/sbin/: Not found.' Date: Mon, 29 Aug 2011 12:37:47 +1200 .. but I still get this root@guest:/# update-grub root@guest:/# grub-install /dev/sda /usr/sbin/: Not found. Adam. - Original Message Follows - > On Mon, Aug 29, 2011 at 10:10:45AM +1200, adam.bogacki > wrote: > > > I mount dev, proc, sys, and usr on /dev/sda (aka w1), > and > > What does df or mount show at this point > > > guest@guest:~$ sudo chroot /mnt/w1 /bin/bash > > and this point > -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Re: Text to HTML?
DaZZa Lyx - http://www.lyx.org/ Abiword - http://www.abisource.com/ LibreOffice - http://www.libreoffice.org txt2html - http://txt2html.sourceforge.net/ -- Richard http://www.sheflug.org.uk -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Text to HTML?
On Mon, Aug 29, 2011 at 10:04:01AM +1000, DaZZa wrote: > I'm looking for something that can take a text file and convert it > into HTML, possible with some highlighting. Markdown? markdown < file.txt > file.html Nick. -- PGP Key ID = 0x418487E7 http://www.nick-andrew.net/ PGP Key fingerprint = B3ED 6894 8E49 1770 C24A 67E3 6266 6EB9 4184 87E7 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Text to HTML?
Have you tried a template engine such as: - http://www.cheetahtemplate.org/ On Mon, Aug 29, 2011 at 10:04 AM, DaZZa wrote: > Hi. > > I'm looking for something that can take a text file and convert it > into HTML, possible with some highlighting. > > I've got some routers reporting to my syslog server on a Linux box, > but I want to be able to do a quick scan for bad things without having > to SSH to the box and scrolling through the text file. > > It'd be nice if the files could be put in some form of date > order/heading for each tracking (in conjunction with logrotate, maybe) > to ensure all that it in the link is one days worth of logs. > > Anyone know of such a beastie? It's be nice if it was CentOS > compatible, since that's what I'm stuck with at work, but if it's > source and needs to be compiled, so be it. > > Thanks. > > DaZZa > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html > -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Was 'kernel panic', now '/usr/sbin/: Not found.'
Thanks, Matt guest@guest:/mnt/w1$ df Filesystem 1K-blocks Used Available Use% Mounted on aufs 1609136355264 1253872 23% / udev 1609136 268 1608868 1% /dev /dev/sr0494714494714 0 100% /media/cdrom /dev/loop0 482176482176 0 100% /rofs none 1609136 0 1609136 0% /dev/shm tmpfs 160913660 1609076 1% /tmp none 1609136 284 1608852 1% /var/run none 1609136 0 1609136 0% /var/lock none 1609136 0 1609136 0% /lib/init/rw /dev/sda1186370356 42304704 134598552 24% /mnt/w1 /dev/sdb1301440504 8589276 277538896 4% /mnt/deb /dev/sda1186370356 42304704 134598552 24% /mnt/w1/boot guest@guest:/mnt/w1$ mount aufs on / type aufs (rw) none on /proc type proc (rw,noexec,nosuid,nodev) none on /sys type sysfs (rw,noexec,nosuid,nodev) udev on /dev type tmpfs (rw,mode=0755) /dev/sr0 on /media/cdrom type iso9660 (rw) /dev/loop0 on /rofs type squashfs (rw) none on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) none on /dev/shm type tmpfs (rw,nosuid,nodev) tmpfs on /tmp type tmpfs (rw,nosuid,nodev) none on /var/run type tmpfs (rw,nosuid,mode=0755) none on /var/lock type tmpfs (rw,noexec,nosuid,nodev) none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) /dev/sda1 on /mnt/w1 type ext4 (rw) /dev/sdb1 on /mnt/deb type ext3 (rw) /dev/sda1 on /mnt/w1/boot type ext4 (rw) /dev on /mnt/w1/dev type none (rw,bind) /dev on /mnt/w1/proc type none (rw,bind) /dev on /mnt/w1/sys type none (rw,bind) /usr on /mnt/w1/usr type none (rw,bind) guest@guest:/mnt/w1$ ^C guest@guest:/mnt/w1$ and guest@guest:~$ sudo chroot /mnt/w1 /bin/bash root@guest:/# df Segmentation fault root@guest:/# mount Segmentation fault root@guest:/# .. but, significantly, chroot worked this time. Adam. - Original Message Follows - > On Mon, Aug 29, 2011 at 10:10:45AM +1200, adam.bogacki > wrote: > > > I mount dev, proc, sys, and usr on /dev/sda (aka w1), > and > > What does df or mount show at this point > > > guest@guest:~$ sudo chroot /mnt/w1 /bin/bash > > and this point > -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Text to HTML?
Hi. I'm looking for something that can take a text file and convert it into HTML, possible with some highlighting. I've got some routers reporting to my syslog server on a Linux box, but I want to be able to do a quick scan for bad things without having to SSH to the box and scrolling through the text file. It'd be nice if the files could be put in some form of date order/heading for each tracking (in conjunction with logrotate, maybe) to ensure all that it in the link is one days worth of logs. Anyone know of such a beastie? It's be nice if it was CentOS compatible, since that's what I'm stuck with at work, but if it's source and needs to be compiled, so be it. Thanks. DaZZa -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Was 'kernel panic', now '/usr/sbin/: Not found.'
On Mon, Aug 29, 2011 at 10:10:45AM +1200, adam.bogacki wrote: > I mount dev, proc, sys, and usr on /dev/sda (aka w1), and What does df or mount show at this point > guest@guest:~$ sudo chroot /mnt/w1 /bin/bash and this point -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Re: Was 'kernel panic', now '/usr/sbin/: Not found.'
On Mon, Aug 29, 2011 at 9:06 AM, Michael Chesterton wrote: > > > On Mon, Aug 29, 2011 at 8:40 AM, Sonia Hamilton wrote: > >> Hi Adam, >> >> Please don't direct emails to me directly - that's what the slug email >> list is for :-) >> > > To be fair, Sonia, you haven't told our mail clients how you want followups > to be handled. Had you done so, this message would not have gone directly to > you. > > Google "mail followup to". > Well, I did a little more looking and it appears you do sometimes use mail followup to header, but it was missing in the message I replied to. Oh well. At least my message might help someone new to lists, if not you. Peace, love and mung beans. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Re: Was 'kernel panic', now '/usr/sbin/: Not found.'
On Mon, Aug 29, 2011 at 8:40 AM, Sonia Hamilton wrote: > Hi Adam, > > Please don't direct emails to me directly - that's what the slug email > list is for :-) > To be fair, Sonia, you haven't told our mail clients how you want followups to be handled. Had you done so, this message would not have gone directly to you. Google "mail followup to". -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Re: Was 'kernel panic', now '/usr/sbin/: Not found.'
Hi Adam, Please don't direct emails to me directly - that's what the slug email list is for :-) Thanks, Sonia. On Mon, 29 Aug 2011 10:10:45 +1200, "adam.bogacki" said: > I am trying to reinstall GNU GRUB 1.97~beta4 on an Ubuntu > WattOS RC1 (/dev/sda) / Debian 6 (/dev/sdb) dual-boot > system. > > sudo fdisk -l > > Disk /dev/sda: 200.0 GB, 200049647616 bytes > 255 heads, 63 sectors/track, 24321 cylinders > Units = cylinders of 16065 * 512 = 8225280 bytes > Disk identifier: 0x0001 > >Device Boot Start End Blocks Id > System > /dev/sda1 * 1 23572 189342058+ 83 > Linux > /dev/sda2 23573 24321 60163125 > Extended > /dev/sda5 23573 24321 6016311 82 > Linux swap / Solaris > > Disk /dev/sdb: 320.1 GB, 320072933376 bytes > 255 heads, 63 sectors/track, 38913 cylinders > Units = cylinders of 16065 * 512 = 8225280 bytes > Disk identifier: 0x00060463 > >Device Boot Start End Blocks Id > System > /dev/sdb1 1 38127 306246656 83 > Linux > /dev/sdb2 38127 38914 63221775 > Extended > /dev/sdb5 > > I mount dev, proc, sys, and usr on /dev/sda (aka w1), and > > guest@guest:~$ sudo chroot /mnt/w1 /bin/bash > root@guest:/# update-grub2 > root@guest:/# grub-install /dev/sda > /usr/sbin/: Not found. > > I'm stumped. > > I have previously done > > root@guest:/# grub-install /dev/sda1 > > getting ... > > init[1]: segfault at 0 ip (null) sp bfd65e44 error 4 > kernel panic - not syncing: Attempted to kill init ! > Pid: 1 comm: init Not tainted > 2.6.31-23-generic # 75-Ubuntu > > .. but have since become aware I should not specify > partition number. > > Inspecting files on the WattOSRC1 drive (w1), it seems I > have two GRUB folders > > guest@guest:/mnt/w1$ ls > bindebootstrap grubinitrd.img.old man1 > openbox proc sbin sys var > boot dev homelib media opt >resolv.conf selinux tmp vmlinuz > cdrom etc initrd.img lost+found mntopt1 >root srv usr vmlinuz.old > > > and > > guest@guest:/mnt/w1/boot$ ls > bindebootstrap grubinitrd.img.old man1 > openbox proc sbin sys var > boot dev homelib media opt >resolv.conf selinux tmp vmlinuz > cdrom etc initrd.img lost+found mntopt1 >root srv usr vmlinuz.old > > The best way to get a working dual-boot GRUB2 seems to be to > delete one of the grub folders, and tell GRUB2 where the > kernel and root fs are. > > I have been messing around with rescue prompt boot > instructions and have been able to > boot into the debian drive, initially in graphic (with > stationary mouse) and later in text mode, but it seems a bit > hit and miss, lately mostly miss. Dunno why .. maybe too > many changes. > > I'd appreciate any constructive advice as I am about to move > house and will be off-line for a while. I'm starting to > appreciate Live-CDs. > > Cheers, > > Adam Bogacki, > > adam.boga...@clear.net.nz > > -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Was 'kernel panic', now '/usr/sbin/: Not found.'
I am trying to reinstall GNU GRUB 1.97~beta4 on an Ubuntu WattOS RC1 (/dev/sda) / Debian 6 (/dev/sdb) dual-boot system. sudo fdisk -l Disk /dev/sda: 200.0 GB, 200049647616 bytes 255 heads, 63 sectors/track, 24321 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x0001 Device Boot Start End Blocks Id System /dev/sda1 * 1 23572 189342058+ 83 Linux /dev/sda2 23573 24321 60163125 Extended /dev/sda5 23573 24321 6016311 82 Linux swap / Solaris Disk /dev/sdb: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00060463 Device Boot Start End Blocks Id System /dev/sdb1 1 38127 306246656 83 Linux /dev/sdb2 38127 38914 63221775 Extended /dev/sdb5 I mount dev, proc, sys, and usr on /dev/sda (aka w1), and guest@guest:~$ sudo chroot /mnt/w1 /bin/bash root@guest:/# update-grub2 root@guest:/# grub-install /dev/sda /usr/sbin/: Not found. I'm stumped. I have previously done root@guest:/# grub-install /dev/sda1 getting ... init[1]: segfault at 0 ip (null) sp bfd65e44 error 4 kernel panic - not syncing: Attempted to kill init ! Pid: 1 comm: init Not tainted 2.6.31-23-generic # 75-Ubuntu .. but have since become aware I should not specify partition number. Inspecting files on the WattOSRC1 drive (w1), it seems I have two GRUB folders guest@guest:/mnt/w1$ ls bindebootstrap grubinitrd.img.old man1 openbox proc sbin sys var boot dev homelib media opt resolv.conf selinux tmp vmlinuz cdrom etc initrd.img lost+found mntopt1 root srv usr vmlinuz.old and guest@guest:/mnt/w1/boot$ ls bindebootstrap grubinitrd.img.old man1 openbox proc sbin sys var boot dev homelib media opt resolv.conf selinux tmp vmlinuz cdrom etc initrd.img lost+found mntopt1 root srv usr vmlinuz.old The best way to get a working dual-boot GRUB2 seems to be to delete one of the grub folders, and tell GRUB2 where the kernel and root fs are. I have been messing around with rescue prompt boot instructions and have been able to boot into the debian drive, initially in graphic (with stationary mouse) and later in text mode, but it seems a bit hit and miss, lately mostly miss. Dunno why .. maybe too many changes. I'd appreciate any constructive advice as I am about to move house and will be off-line for a while. I'm starting to appreciate Live-CDs. Cheers, Adam Bogacki, adam.boga...@clear.net.nz -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html