LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2014, 05:48 PM   #1
mxmaniac
LQ Newbie
 
Registered: Feb 2014
Posts: 26

Rep: Reputation: Disabled
How do I remove sudo ability from a guest user?


Im using Debian Wheezy. I have a guest user account I added sudo ability to, and I want to remove it. I googled this and found about 10 pages with 10 different answers, and all were seemingly over complex. All I had to do to add sudo was "adduser guest sudo". Isn't there an equally simple way to remove it?
 
Old 02-17-2014, 06:01 PM   #2
Isaac Velando
LQ Newbie
 
Registered: Feb 2014
Location: Texas
Distribution: Arch, Ubuntu Server, CentOS
Posts: 29

Rep: Reputation: 21
If that's exactly how you created the ability, I believe the following should do it:
Code:
gpasswd -d guest sudo
See:
Code:
man gpasswd
to see gpasswd's utility. And yes there would be other ways of doing this, many others.
 
Old 02-17-2014, 07:56 PM   #3
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,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
As root, edit the sudoers file using visudo in a terminal.
 
1 members found this post helpful.
  


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
Question about the sudo command, specifically how to have sudo act as if user is root slacker_ Linux - Newbie 17 09-22-2013 03:48 PM
Need to remove ability for users to start xterm after they login and X starts. Rajmohan Maudshetty Red Hat 1 07-23-2011 03:59 PM
lost ability to add/remove a_c_g_t Fedora 5 10-26-2007 10:18 AM
Oracle on Fedora Core 2 - User has lost X ability madfish Fedora 1 02-05-2005 02:55 PM
giving a user the ability to use ports below 1024 surreal Linux - Networking 2 12-17-2003 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:08 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