LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-10-2017, 10:34 PM   #1
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,317
Blog Entries: 28

Rep: Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140
K3B Growisofs Problem on --Ccurrent Fixed


I have had a problem burning optical disks with K3B on --Current as user. When I started the application as user, I got an error message saying that K3B cannot find growisofs.

I could burn disks as root.

Tonight, I finally got annoyed enough to look into it, in an effort to answer a Linux Question. I fixed it by changing the permissions of /usr/bin/growisofs.

Here's what I did, in case it might help someone else.

Code:
bash-4.4$ locate growisofs
/usr/bin/growisofs
/usr/include/k3bgrowisofswriter.h
/usr/man/man1/growisofs.1.gz
/usr/share/zsh/5.3.1/functions/_growisofs
bash-4.4$ cd /usr/bin
bash-4.4$ ls -l growisofs
-rwxr-x--- 1 root burning 105808 Apr 14  2011 growisofs
bash-4.4$ su
Password: 
bash-4.4# chmod 774 growisofs
bash-4.4# ls -l growisofs
-rwxrwxr-- 1 root burning 105808 Apr 14  2011 growisofs
Once I made that change, I could start K3B as user without errors.

(Aside: Eleven years ago, I would not have understood a word of that.)

Last edited by frankbell; 04-10-2017 at 10:36 PM.
 
Old 04-11-2017, 07:57 AM   #2
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware, VMs
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
I encountered the same issue awhile ago. Nice solution! I fixed the issue in XFCE by first clicking on Applications----->Multimedia---->K3b----->Settings----->Setup System Permissions. Within the Setup System Permissions window I checked the box beside growisofs. After clicking apply and OK I was prompted to authenticate as root. I can now burn media as a regular user.
 
1 members found this post helpful.
Old 04-11-2017, 09:31 AM   #3
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Would adding oneself to the 'burning' group accomplish the same thing?
Seems the group is there for a reason?
Just wondering
John
 
2 members found this post helpful.
Old 04-11-2017, 01:15 PM   #4
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,503

Rep: Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459
I'm wondering myself why the burning group is there. My machine doesn't have it, and Slackware doesn't ship with it. And furthermore, the default permissions on /usr/bin/growisofs are rwxr-xr-x, owned by root:root.

That said, the issue I see trying to use k3b as a normal user is that it will tell me that cdrecord doesn't have permission to open the device. My user is part of the cdrom group, and that group has write permission for /dev/sr0 which is the DVD-RW drive.

The usual solution for this is to make /usr/bin/cdrecord setuid root (chmod 4711). I don't do this by default because it is a large binary and I don't trust that doing this wouldn't expose a possible local root hole. But on your own non-server machine it's probably safe enough to consider.
 
7 members found this post helpful.
Old 04-12-2017, 08:53 AM   #5
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Thanks for the explanation, I have been wondering why cdrecord was that way as I have this silly script to wrap around it.

https://notabug.org/orbea/burncd/src/master/burncd
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need alternatives for growisofs/K3b Dr. Device Linux - Software 1 03-21-2006 01:14 PM
K3b (growisofs) OPC failed knappster Linux - Software 1 08-31-2005 12:29 PM
k3b can't find growisofs compu73rg33k Linux - Software 2 06-24-2005 11:17 AM
k3b cant find growisofs iotc247 Slackware 9 11-16-2004 11:12 PM
Problem with K3b and growisofs Machinegun Linux - Software 0 07-06-2004 03:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration