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.
The 2 ls commands use backticks ` (on my keyboard, to the left of the 1 key, with the tilde ~), not a single quote ' (on my keyboard on the same key as ").
Also, in your /etc/sudoers file, giving permissions to the wheel group is disabled because that line is commented out. You can edit the file with visudo and remove the comment symbol.
You don't need to be in root's group as a user if you have sudo and su access. You can just be in users, or better still, create a private group and make that your primary group.
I have remove the # in sudoers and logout of root and back into gishaust at the terminal and the sudo and still got the same response.
What you are saying at the bottom of the post I create a group name etc 'accounts' then add the user to it 'accountmanager' after that all you have to do is su or sudo and as long as you have the root password it will allow me to have root privileges. Is that correct. Thanks.
Both of those executables are suid on my systems. As root, you can run the following to change it which should allow you to use sudo as a member of the wheel group (now that the line in /etc/sudoers is uncommented):
Code:
chmod u+s /bin/su /usr/local/bin/sudo
Yes, for using su it doesn't matter which groups you're in as long as you know the root account's password. It would be better to create another group for your user account than to leave it in the root group.
Distribution: ubuntu 7.04 server and 7.04 desktops
Posts: 15
Original Poster
Rep:
su works find sudo gives me the password but as soon as I enter the root password it asks for it again three times and then says gishaust is not of the sudo group.
I want to know if I have the following correct before i do it.
groupadd accounts
adduser
login: name accountmanager
Id uid: "automatic choosen by the computer"
initial group: accounts
additional groups: "press enter"
home directory : "press enter"
shell: "press enter"
Expiry date: "press enter" #this is if I want the account end at some stage
I am fairly new to groups and accounts. so would this achieve what we have be discussing.
Firstly, I'm assuming you've added the gishaust user to the wheel group and uncommented that line from /etc/sudoers using visudo. If so, when you use sudo you need to type in gishaust's password, not the root password. You use the root password when you use su.
The last part will create a group called accounts and a user called accountmanager who is a member of that group. To access sudo, the accountmanager will need to be added to the wheel group and will use their own password with sudo.
Distribution: ubuntu 7.04 server and 7.04 desktops
Posts: 15
Original Poster
Rep:
Thanks for all your help i have not add gishaust to the wheelgroup.
I have been read up and found this information and your support helped me greatly with the learning curve. But what is the wheel group.
Remember - this is a Slackware forum. Backtrack is not Slackware. The parts of Slackware that Backtrack changes/removes/mutilates are not endorsed by Slackware, Inc. and you should not ask support here. Your problem is one of Backtrack exclusively - in Slackware this would work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.