SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi: when I run K3b, cdrecord complains about not having permissions. For instance,
Code:
/usr/bin/cdrecord: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits./usr/bin/cdrecord: Cannot allocate memory. WARNING: Cannot do mlockall(2).
This is output when asking K3b to show the debugging output. How can I run K3b as root? Of course I could start X as root, but I would not want to do it.
Not sure if this is the 'proper' way to go about this, but, what I ended up doing is launching a konsole, #sudo su to log in as root
Then just ran the package with #k3b and it then launched k3b as root and I was then able to access the directories I wanted.
Not sure if this is the 'proper' way to go about this, but, what I ended up doing is launching a konsole, #sudo su to log in as root
Then just ran the package with #k3b and it then launched k3b as root and I was then able to access the directories I wanted.
Hope that helps.
You should not run GUI apps using sudo. You can cause a lot of issues with your system. The program sudo is for command line programs only and kdesu should be used if you need to run a GUI program as root.
CudaPrime: no, that is not the proper way to do it on Slackware. The proper way to do it on Slackware is actually documented:
Quote:
If you have permission errors when attempting to burn a cdrom or dvd image,
such as the following:
/usr/bin/cdrecord: Operation not permitted. Cannot send SCSI cmd via ioctl
then cdrecord almost certainly needs root privileges to work correctly.
One potential solution is to make the cdrecord and cdrdao binaries suid root,
but this has possible security implications. The safest way to do that is
to make those binaries suid root, owned by a specific group, and executable
by only root and members of that group. For most people, the example below
will be sufficient (but adjust as desired depending on your specific needs):
chown root:cdrom /usr/bin/cdrecord /usr/bin/cdrdao
chmod 4750 /usr/bin/cdrecord /usr/bin/cdrdao
If you don't want all members of the 'cdrom' group to be able to execute the
two suid binaries, then create a special group (such as 'burning' which is
recommended by k3b), use it instead of 'cdrom' in the line above, and add
to it only the users you wish to have access to cdrecord and cdrdao.
Hi: when I run K3b, cdrecord complains about not having permissions. For instance,
Code:
/usr/bin/cdrecord: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits./usr/bin/cdrecord: Cannot allocate memory. WARNING: Cannot do mlockall(2).
This is output when asking K3b to show the debugging output. How can I run K3b as root? Of course I could start X as root, but I would not want to do it.
The answer is in the "Getting Started" section of the Slackware documentation.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.