Re: [gentoo-user] No working burning cdrom

2006-11-09 Thread Mrugesh Karnik
On Thursday 09 November 2006 12:57, Luigi Pinna wrote:
 Alle 06:49, giovedì 9 novembre 2006, Mrugesh Karnik ha scritto:
 [...]
  Its to do with a kernel upgrade. Do a ulimit -l unlimited before
  starting k3b in the same session.

 As user:
 $ ulimit -l unlimited
 bash: ulimit: max locked memory: cannot modify limit: Operation not
 allowed

 as root it is works!
 Now the question is how can I rescue it as default and allow it to
 users?
 What does it mean a kernel update?
 Thanks, Luigi

Yes, it works as root. I was just investigating ways to set that only 
for growisofs. One way is to set it in /etc/profile, but that'll affect 
all processes. I'll let you know when I find the solution. One solution 
I can think of is to run ulimit followed by growisofs in a subshell.. 
but the issue is with being root. I'll let you know.

As for the kernel upgrade, this limit was imposed in 2.6.16 or something 
from what I read.

-- 

Mrugesh Karnik
GPG Key 0xBA6F1DA8
Public key on http://wwwkeys.pgp.net



pgpyQ5L7m0BGc.pgp
Description: PGP signature


Re: [gentoo-user] No working burning cdrom

2006-11-09 Thread Neil Bothwick
On Thu, 9 Nov 2006 13:30:36 +0530, Mrugesh Karnik wrote:

 Yes, it works as root. I was just investigating ways to set that only 
 for growisofs. One way is to set it in /etc/profile, but that'll affect 
 all processes. I'll let you know when I find the solution. One solution 
 I can think of is to run ulimit followed by growisofs in a subshell.. 
 but the issue is with being root. I'll let you know.

This limit only applies to the root user, so the question becomes why
is K3b running growisofs as root?.  Is growisofs suid?


-- 
Neil Bothwick

Criminal Lawyer is a redundancy.


signature.asc
Description: PGP signature


Re: [gentoo-user] No working burning cdrom

2006-11-09 Thread Mrugesh Karnik
On Thursday 09 November 2006 15:10, Neil Bothwick wrote:
 On Thu, 9 Nov 2006 13:30:36 +0530, Mrugesh Karnik wrote:
  Yes, it works as root. I was just investigating ways to set that
  only for growisofs. One way is to set it in /etc/profile, but
  that'll affect all processes. I'll let you know when I find the
  solution. One solution I can think of is to run ulimit followed by
  growisofs in a subshell.. but the issue is with being root. I'll
  let you know.

 This limit only applies to the root user, so the question becomes
 why is K3b running growisofs as root?.  Is growisofs suid?

ls -l $(which growisofs)
-rws--x--- 1 root burning 71888 2006-10-19 11:33 /usr/bin/growisofs


Apparently, it is. I suppose it is to do with avoiding issues with users 
being in the proper group for burning the disks.

-- 

Mrugesh Karnik
GPG Key 0xBA6F1DA8
Public key on http://wwwkeys.pgp.net



pgpE72SsoiVaV.pgp
Description: PGP signature


Re: [gentoo-user] No working burning cdrom

2006-11-09 Thread Neil Bothwick
On Thu, 9 Nov 2006 15:31:25 +0530, Mrugesh Karnik wrote:

  This limit only applies to the root user, so the question becomes
  why is K3b running growisofs as root?.  Is growisofs suid?  
 
 ls -l $(which growisofs)
 -rws--x--- 1 root burning 71888 2006-10-19 11:33 /usr/bin/growisofs
 
 
 Apparently, it is. I suppose it is to do with avoiding issues with
 users being in the proper group for burning the disks.

Does the problem go away if you chmod 750 /usr/bin/growisofs?


-- 
Neil Bothwick

Windows isn't a virus -- viruses do something!


signature.asc
Description: PGP signature


Re: [gentoo-user] No working burning cdrom

2006-11-09 Thread Luigi Pinna
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Alle 11:16, giovedì 9 novembre 2006, Neil Bothwick ha scritto:
 On Thu, 9 Nov 2006 15:31:25 +0530, Mrugesh Karnik wrote:
   This limit only applies to the root user, so the question becomes
   why is K3b running growisofs as root?.  Is growisofs suid?
 
  ls -l $(which growisofs)
  -rws--x--- 1 root burning 71888 2006-10-19 11:33 /usr/bin/growisofs
 
 
  Apparently, it is. I suppose it is to do with avoiding issues with
  users being in the proper group for burning the disks.

 Does the problem go away if you chmod 750 /usr/bin/growisofs?

It works again!
Question is why emerge/k3b installed/changed permission with suid bit.
It is a bug?
In everycase: thanks a lot at all of you!
Luigi

- -- 
Public key GPG(0x633F86B7) on hkp://keyserver.linux.it/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFU6wrHmkkjmM/hrcRAk8tAKCQ5QnaTzc+NRjMAsh26kHtre4dfgCbBuKw
XTayac918bKdDrSm0bGI++I=
=kJqr
-END PGP SIGNATURE-
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] No working burning cdrom

2006-11-09 Thread b.n.

It works again!
Question is why emerge/k3b installed/changed permission with suid bit.

 It is a bug?

AFAIK, K3b by default gives the suid bit to growisofs and other cd 
recording programs. It complains if it finds these programs without the 
suid bit and asks you to set it for you, however, so you should have 
seen it (It needs your root password to do it, so it's interactive :) )


m.
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] No working burning cdrom

2006-11-08 Thread Neil Bothwick
On Thu, 9 Nov 2006 00:14:16 +0100, Luigi Pinna wrote:

 :-( unable to anonymously mmap 33554432: Resource temporarily 
 unavailable

Are you, or K3b, trying to run this as root? This looks like the message
that pops up when you run growisofs as root.

 growisofs command:
 - ---
 /usr/bin/growisofs -Z /dev/hdc=/dev/fd/0 -use-the-force-luke=notray
 -use-the-force-luke=tty -use-the-force-luke=tracksize:2169087
 -dvd-compat -speed=8 -overburn -use-the-force-luke=bufsize:32m 
 
 My dvd-burner is the floppy drive?

/dev/fd/0 is stdin, /dev/fd0 is the floppy drive.


-- 
Neil Bothwick

Linux like wigwam. No windows, no gates, Apache inside.


signature.asc
Description: PGP signature


Re: [gentoo-user] No working burning cdrom

2006-11-08 Thread Mrugesh Karnik
On Thursday 09 November 2006 04:44, Luigi Pinna wrote:
 Hi!
 I tried today to burn some backup data with k3b.
 Until some days ago all worked perfectly, today I had that message:
 growisofs
 ---

 :-( unable to anonymously mmap 33554432: Resource temporarily

 unavailable

 growisofs command:
 ---
 /usr/bin/growisofs -Z /dev/hdc=/dev/fd/0 -use-the-force-luke=notray
 -use-the-force-luke=tty -use-the-force-luke=tracksize:2169087
 -dvd-compat -speed=8 -overburn -use-the-force-luke=bufsize:32m

 My dvd-burner is the floppy drive?
 How can I solve that problem? Since it I can't burn my data more...
 Thanks,
 Luigi

Its to do with a kernel upgrade. Do a ulimit -l unlimited before 
starting k3b in the same session.


-- 

Mrugesh Karnik
GPG Key 0xBA6F1DA8
Public key on http://wwwkeys.pgp.net



pgpENLMz8hyFU.pgp
Description: PGP signature


Re: [gentoo-user] No working burning cdrom

2006-11-08 Thread Luigi Pinna
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Alle 06:49, giovedì 9 novembre 2006, Mrugesh Karnik ha scritto:
[...]
 Its to do with a kernel upgrade. Do a ulimit -l unlimited before
 starting k3b in the same session.

As user:
$ ulimit -l unlimited
bash: ulimit: max locked memory: cannot modify limit: Operation not 
allowed

as root it is works!
Now the question is how can I rescue it as default and allow it to 
users?
What does it mean a kernel update?
Thanks, Luigi
- -- 
Public key GPG(0x633F86B7) on hkp://keyserver.linux.it/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFUtiLHmkkjmM/hrcRAkhqAKCUzxKuNjyGWZr4IN3DukAlRFSYTgCeJWgt
DjM2ups9wxmzD5W3YzecTBA=
=WW7R
-END PGP SIGNATURE-
-- 
gentoo-user@gentoo.org mailing list