SUID permission on Bash script

2009-08-28 Thread Jeronimo Calvo
Hi folks! Im trying to set up a reaaallly basic scrip to allow one user to shutdown my machine without root permisions, seting up SUID as follows: -rwsrwxr-- 1 root wheel 38 Aug 27 23:12 apagar.sh $ ./apagar.sh Permission denied content of script: cat apagar.sh ]#!/usr/local/bin/bash

Re: SUID permission on Bash script

2009-08-28 Thread Giorgos Keramidas
On Fri, 28 Aug 2009 09:24:35 +0100, Jeronimo Calvo jeronimocal...@googlemail.com wrote: Hi folks! Im trying to set up a reaaallly basic scrip to allow one user to shutdown my machine without root permisions, seting up SUID as follows: -rwsrwxr-- 1 root wheel 38 Aug 27 23:12 apagar.sh $

Re: SUID permission on Bash script

2009-08-28 Thread Jeronimo Calvo
Aham! so SUID can be applied to sh but it doesn't work!, there is not anyway to apply it? apart from installing sudo?, The thing is that installing sudo and adding that user into sudoers, that user will be capable to do any other SU tasks, apart of shutting down... wich i dont like :D (I know

linux_base installation - missing rpm binary

2009-08-28 Thread Jeff Laine
Hello, I've just installed the emulators/linux_base-f10 port in order to run some rpm-based applications. Various online manuals told me that one should not use the native freebsd rpm binary (archivers/rpm), but instead use the /compat/linux/bin/rpm. But there's no such rpm binary under

Re: Can partitions span more than one drive?

2009-08-28 Thread Ruben de Groot
On Wed, Aug 26, 2009 at 04:56:03PM +0300, Nikos Vassiliadis typed: RW wrote: On Wed, 26 Aug 2009 08:45:47 -0400 John Almberg jalmb...@identry.com wrote: Question: is it possible to just expand my existing /backup partition to encompass both the current drive and the new drive? I'm

Re: SUID permission on Bash script

2009-08-28 Thread Jonathan McKeown
On Friday 28 August 2009 10:54:19 Giorgos Keramidas wrote: On Fri, 28 Aug 2009 09:24:35 +0100, Jeronimo Calvo jeronimocal...@googlemail.com wrote: Hi folks! Im trying to set up a reaaallly basic scrip to allow one user to shutdown my machine without root permisions, seting up SUID as

Re: Information on Setting up a Jailed Webserver

2009-08-28 Thread Ruben de Groot
On Thu, Aug 27, 2009 at 12:28:26PM -0400, APseudoUtopia typed: Two more questions then I should be ready to go with my jail(s). In order to minimize the HDD space of the jail, can I add things in my src.conf such as WITHOUT_BOOT, WITHOUT_ACPI, WITHOUT_PF? Yes you can. Another option is to

Re: linux_base installation - missing rpm binary

2009-08-28 Thread Boris Samorodov
On Fri, 28 Aug 2009 13:06:28 +0400 Jeff Laine wrote: I've just installed the emulators/linux_base-f10 port in order to run some rpm-based applications. Various online manuals told me that one should not use the native freebsd rpm binary (archivers/rpm), but instead use the

Re: SUID permission on Bash script

2009-08-28 Thread George Davidovich
On Fri, Aug 28, 2009 at 10:01:54AM +0100, Jeronimo Calvo wrote: 2009/8/28 Giorgos Keramidas keram...@ceid.upatras.gr On Fri, 28 Aug 2009 09:24:35 +0100, Jeronimo Calvo jeronimocal...@googlemail.com wrote: Im trying to set up a reaaallly basic scrip to allow one user to shutdown my

RAID10 setup

2009-08-28 Thread Phil Lewis
We got there! Thanks for the encouragement. It took a few more steps, and I couldn't get geom_mirror or geom_stripe to kldload from the Fixit environment and so did it all from a clean install instead. All that remains is to move my /usr onto the new file system. It worked. Thanks again Phil

Re: linux_base installation - missing rpm binary

2009-08-28 Thread Jeff Laine
On Fri,28-08-2009 [14:57:04], Boris Samorodov wrote: On Fri, 28 Aug 2009 13:06:28 +0400 Jeff Laine wrote: I've just installed the emulators/linux_base-f10 port in order to run some rpm-based applications. Various online manuals told me that one should not use the native freebsd rpm

Re: linux_base installation - missing rpm binary

2009-08-28 Thread Boris Samorodov
On Fri, 28 Aug 2009 15:54:05 +0400 Jeff Laine wrote: I've unpacked my apps under /compat/linux tree but my binary requires shared X libraries: nsdexec: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory This library is a

Reading raw memory

2009-08-28 Thread Steve Bertrand
Hi all, I'm wondering if FreeBSD allows direct access to memory. What I'd like to do is try to force a Perl application to leak memory by simulating a dangling pointer that it's garbage collection system can't clean up. I'd then like to look at the raw memory address to find out if the data is

various classes in FDP

2009-08-28 Thread ไพรัช ศรีโยธา
hi sirs, am translating freebsd handbook into thai. i would like to know where i can find such classes as FIGURE, SECT1, KEYCAP and so on that using in handbook. i can not find them in docbook.css. many thanks in advance for any helps and hints with best regards, psr -- มะไฟ ฅนเหลิงฟ้า

7.2-relase

2009-08-28 Thread niko Pubbsi
Hello I have a question can you give me the 7.2-relase-i386-dvd1.iso data but not the rar i need only the data for virtual machine rgds Niko ___ freebsd-questions@freebsd.org mailing list

Samba and busy network

2009-08-28 Thread stan
I have a FreeBSD machine serving as (among other things) a Samba server for an XP instance running under VirtualBox. The XP application is a data gathering one that polls continuously. I have set up things so that XP mounts the Samba share, and logs it's data there. Problem is that every morning

Re: Reading raw memory

2009-08-28 Thread Roland Smith
On Fri, Aug 28, 2009 at 08:43:26AM -0400, Steve Bertrand wrote: Hi all, I'm wondering if FreeBSD allows direct access to memory. Yes, via /dev/(k)mem. Byte offsets in /dev/mem are interpreted as physical memory adresses. See mem(4). Mind you that only root has access to this device be

Re: 7.2-relase

2009-08-28 Thread Daniel Loizos
Hi Niko The iso files can be found hereftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/7.2/. As far as I know they are just ISO files and not the rars. NB this is the page for the i386 edition. If you are after any others (amd64 etc) go herehttp://www.freebsd.org/where.html . I hope

Re: Can partitions span more than one drive?

2009-08-28 Thread Nikos Vassiliadis
Ruben de Groot wrote: On Wed, Aug 26, 2009 at 04:56:03PM +0300, Nikos Vassiliadis typed: RW wrote: On Wed, 26 Aug 2009 08:45:47 -0400 John Almberg jalmb...@identry.com wrote: Question: is it possible to just expand my existing /backup partition to encompass both the current drive and the

Re: Trying to make a mirror for a disconnected lab

2009-08-28 Thread Brian A. Seklecki
On Tue, 2009-08-25 at 22:20 -0400, Duncan Hutty wrote: Q. ports/distfiles contains tarballs of multiple versions of each software; I assume that I only need one version of each tarball. And since this mirror as described comes to ~100GiB, how can I modify my For this you want

Re: Reading raw memory

2009-08-28 Thread Dan Nelson
In the last episode (Aug 28), Steve Bertrand said: I'm wondering if FreeBSD allows direct access to memory. What I'd like to do is try to force a Perl application to leak memory by simulating a dangling pointer that it's garbage collection system can't clean up. I'd then like to look at

header intact

2009-08-28 Thread SERGIO RODRIGO DE CAMARGO PAULI
-- Forwarded message -- From: freebsd-questions-requ...@freebsd.org Date: 2009/8/27 Subject: confirm db8171874c7371bf6bd54819ad65dd3191f7b202 To: kerne...@ig.com.br Mailing list removal confirmation notice for mailing list freebsd-questions We have received a request for the

Re: (solved) Re: Problem mounting EXT2FS

2009-08-28 Thread Fernando Apesteguía
On Tue, Aug 25, 2009 at 12:17 AM, Jeronimo Calvojeronimocal...@googlemail.com wrote: Thanks a lot fellas!! problem resolved!!! Did you try to unmount the filesystem? I applied the patch against 7.2-RELEASE-p3 and I can't unmount it: Device busy. Anyone else with this problem? Cheers On

MySql54 Port With_CHARSET and WITH_XCHARSET

2009-08-28 Thread Ian Lord
Hi, I am wondering if there is a problem with the port or if there is something I don't understand about mysql configure options... Doing: cd /usr/ports/databases/mysql54-server make WITH_CHARSET=utf8 WITH_XCHARSET=none make install It sounds like the only charset that should be

java config problem

2009-08-28 Thread AN
I'm trying to configure java on FreeBSD 7-stable and Gnome 2.26.3, with Firefox35. I tried the following commands, but still no ability to view java applets. ln -s libjavaplugin_oji.so /usr/local/lib/firefox/plugins ln -s libjavaplugin_oji.so /usr/local/lib/firefox3/plugins ln

Re: RAID10 setup

2009-08-28 Thread krad
Make yourself a bootable usb stick with freebsd on i find mine very useful for installs like yours On 8/28/09, Phil Lewis dharm...@gmail.com wrote: We got there! Thanks for the encouragement. It took a few more steps, and I couldn't get geom_mirror or geom_stripe to kldload from the Fixit

Re: java config problem

2009-08-28 Thread Jerry
On Fri, 28 Aug 2009 22:25:14 + (GMT) AN a...@neu.net wrote: I'm trying to configure java on FreeBSD 7-stable and Gnome 2.26.3, with Firefox35. I tried the following commands, but still no ability to view java applets. ln -s libjavaplugin_oji.so /usr/local/lib/firefox/plugins ln -s

Re: SUID permission on Bash script

2009-08-28 Thread Polytropon
On Fri, 28 Aug 2009 09:24:35 +0100, Jeronimo Calvo jeronimocal...@googlemail.com wrote: content of script: ]#!/usr/local/bin/bash ^ This ] doesn't belong to the script, does it? Furthermore, why do you employ bash for calling another program? It's standard to use sh (#!/bin/sh) if you don't

Re: SUID permission on Bash script

2009-08-28 Thread RW
On Fri, 28 Aug 2009 11:54:19 +0300 Giorgos Keramidas keram...@ceid.upatras.gr wrote: On Fri, 28 Aug 2009 09:24:35 +0100, Jeronimo Calvo jeronimocal...@googlemail.com wrote: As far as i know, using SUID, script must runs with root permissions... so i shoudnt get Permission denied, what im

Re: SUID permission on Bash script

2009-08-28 Thread Tim Judd
On 8/28/09, RW rwmailli...@googlemail.com wrote: On Fri, 28 Aug 2009 11:54:19 +0300 Giorgos Keramidas keram...@ceid.upatras.gr wrote: On Fri, 28 Aug 2009 09:24:35 +0100, Jeronimo Calvo jeronimocal...@googlemail.com wrote: As far as i know, using SUID, script must runs with root

Re: SUID permission on Bash script

2009-08-28 Thread Polytropon
On Fri, 28 Aug 2009 20:10:59 -0600, Tim Judd taj...@gmail.com wrote: Dunno, but this dawns on me.. what defines a script? I've always defined a script that starts with a #! shebang. So the script can be SUID, but the interpreter/shell isn't. Is that why it doesn't work? What is the

Re: SUID permission on Bash script

2009-08-28 Thread Giorgos Keramidas
On Sat, 29 Aug 2009 02:24:31 +0100, RW rwmailli...@googlemail.com wrote: On Fri, 28 Aug 2009 11:54:19 +0300 Giorgos Keramidas keram...@ceid.upatras.gr wrote: On Fri, 28 Aug 2009 09:24:35 +0100, Jeronimo Calvo jeronimocal...@googlemail.com wrote: As far as i know, using SUID, script must runs

Re: SUID permission on Bash script

2009-08-28 Thread Michael David Crawford
RW wrote: So are scripts actually incapable of running setuid? They aren't on Linux. I learned about that a while back when I investigated setuid scripts for a coworker. It's not that setuid shell scripts are really more inherently insecure than programs written in C. The problem is more