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.
I am a new slackware user. I was using slackware as root yesterday and had no problem using pkgtool from the console (I typed in pkgtool and the pkgtool gui opened up). Today, I used adduser with default settings to make a new user for running wine. When I tried installpkg with the wine package though, I got:
Code:
installpkg wine-1.5.3.x86_64-lsg.txz
installpkg: command not found
Then again when I tried pkgtool:
Code:
pkgtool
pkgtool: command not found
Am I doing something wrong? Maybe this has something to do with how I setup the new user with adduser
Hi. brianL suggested you change to root by typing the su command followed by a hyphen. That will work.
I don't use sudo so I can't tell you which file to edit to place the user name in. But, as a learning experience you can find out yourself. Type "man sudo" and it will probably tell you which file to edit (as root). Files related to the command are normally listed at the bottom of the man page.
Normally a configuration file gives you all the details you need to edit that file. If not then additional information is often found in chapter 5 ... use the command "man 5 configfilename" to get details on the format of the file.
Last edited by TracyTiger; 05-08-2012 at 03:24 PM.
Reason: Added more info
Well your user is part of the "wheel" group for sure since you can "su root" (although you only need 'su' by itself).
However, your user doesn't seem to be in the /etc/sudoers file which you'll have to edit via "visudo."
I would read:
Code:
man sudoers
Before you attempt to edit it without knowing what to do. I also recommend some Google searching for the sudoers settings. But it seems like you're just going to want to allow your user to run pkgtool and installpkg.
I've only set it up on computers that are going to be accessed by other people. I've never set it up on my personal computer either since I generally don't like typing "sudo" for every little thing I need root permissions for.
Well your user is part of the "wheel" group for sure since you can "su root"
Hi TommyC7 !
I don't believe that Slack (or Linux?) requires membership in the wheel group for a user to become root. A quick look in /etc/group doesn't show my user in that group and my user account can use the su command successfully.
In another life, in a previous decade, on a UNIX system, I remember wheel membership being a requirement. It's probably still a requirement on other *nix distributions today.
If I'm wrong please correct me. I'm always learning but don't want to leave incorrect information out there to be picked up by others.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.