Re: [gentoo-user] SUID

2009-03-02 Thread Tomáš Krasničan
Hi, #! scripts can not run as suid. Regards, krasko Hinko Kocevar wrote: Hi, I'm trying to touch a file in /sbin during boot time and would like to do that with a normal user by running SUIDed shell script. I have following script: hin...@alala /tmp $ cat test.sh #!/bin/sh touch /sbin/foo.

[gentoo-user] SUID

2009-03-02 Thread Hinko Kocevar
Hi, I'm trying to touch a file in /sbin during boot time and would like to do that with a normal user by running SUIDed shell script. I have following script: hin...@alala /tmp $ cat test.sh #!/bin/sh touch /sbin/foo.bar exit $? hin...@alala /tmp $ sudo chmod +x test.sh hin...@alala /tmp $ sud

Re: [gentoo-user] SUID mounts (& cross platform encryption program/container)

2006-02-28 Thread Ow Mun Heng
On Tue, 2006-02-28 at 03:20 -0600, Zac Slade wrote: > On Tuesday 28 February 2006 00:56, Ow Mun Heng wrote: > > Hi All, > > > > I'm having some issues with enabling programs to be suid root. Stuffs > > like /bin/mount /usr/bin/mount.cifs is already in mode 47xx and I still > > get errors that I

Re: [gentoo-user] SUID mounts

2006-02-28 Thread Mattias Merilai
Ow Mun Heng wrote: or do I need to chgrp /bin/mount into group-owned by disk/wheel? Yes you do, and for /bin/mount, it already should be 4755 root:root. SUID bit makes the program to be executed in the rights the owner of it, so if you want to have a program run SUID root you will have to c

Re: [gentoo-user] SUID mounts

2006-02-28 Thread Zac Slade
On Tuesday 28 February 2006 00:56, Ow Mun Heng wrote: > Hi All, > > I'm having some issues with enabling programs to be suid root. Stuffs > like /bin/mount /usr/bin/mount.cifs is already in mode 47xx and I still > get errors that I have no permissions to execute it (to mount) If the mount poi