LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-01-2014, 03:13 AM   #16
Germany_chris
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Arch
Posts: 1,027

Rep: Reputation: 482Reputation: 482Reputation: 482Reputation: 482Reputation: 482

Quote:
Originally Posted by evo2 View Post
Hi,

visudo, vipw and vigr exist for a reason. Feel free to ignore them at your own risk, but don't encourage others to do the same.


OP has not stated what distro this is on so there is every chance the that wheel group doesn't even exist on this system.

Please be careful when offering advice.

Evo2.
I've not used a distro that didn't have a wheel group but that doesn't mean that there are some that don't. Nano is a fine editor for doing simple things like this I will ignore all others for simple adjustments.
 
Old 10-01-2014, 03:23 AM   #17
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,
Quote:
Originally Posted by Germany_chris View Post
I've not used a distro that didn't have a wheel group but that doesn't mean that there are some that don't.
There are plenty. The wheel group is actively shunned by many.

Quote:
Originally Posted by Germany_chris View Post
Nano is a fine editor for doing simple things like this I will ignore all others for simple adjustments.
You are missing the point completely. I'm not saying that nano shouldn't be used, I'm saying that you can use pretty much whatever editor you like, just do it within visudo. EG
Code:
EDITOR=nano visudo
Evo2.
 
Old 10-01-2014, 11:06 AM   #18
EODSteven
Member
 
Registered: Oct 2012
Location: Manchester, Tn
Distribution: Ubuntu 14.04, Windows 8, Windows Server 2012. Ubuntu Server 14.04
Posts: 196

Rep: Reputation: 3
Thats weird, this thread interested me so I followed the directions but it won't let me add a new user to the computer.....Everything else worked though! I click the unlock button and it does nothing....Good thing I don't need to do that.

Last edited by EODSteven; 10-01-2014 at 11:13 AM.
 
Old 10-01-2014, 11:16 AM   #19
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 534

Rep: Reputation: 203Reputation: 203Reputation: 203
@EODSteven: Please take into consideration when sudoing that you are only given root priviledges (well, you are, in all fairness made root). However, your environment remains the same and that includes PATH, your working directory, etc... So executing stuff like useradd which is commonly found in (/usr)/sbin rather than (/usr)/bin ca be done only if you type the full path to the executable..
 
Old 10-01-2014, 11:19 AM   #20
EODSteven
Member
 
Registered: Oct 2012
Location: Manchester, Tn
Distribution: Ubuntu 14.04, Windows 8, Windows Server 2012. Ubuntu Server 14.04
Posts: 196

Rep: Reputation: 3
Quote:
Originally Posted by Smokey_justme View Post
@EODSteven: Please take into consideration when sudoing that you are only given root priviledges (well, you are, in all fairness made root). However, your environment remains the same and that includes PATH, your working directory, etc... So executing stuff like useradd which is commonly found in (/usr)/sbin rather than (/usr)/bin ca be done only if you type the full path to the executable..
Yes Sir, I just googled that and did
Code:
sudo adduser test
and it worked perfectly!

Before I was talking about the system setting GUI. The unlock button is unresponsive here.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2014-10-01 10:21:41.png
Views:	12
Size:	43.5 KB
ID:	16547  

Last edited by EODSteven; 10-01-2014 at 11:26 AM.
 
Old 10-01-2014, 11:24 AM   #21
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 534

Rep: Reputation: 203Reputation: 203Reputation: 203
Ahh, well, that's kind of distribution specific and usually gsu or something like that is involved... To be fair, last time I've tried doing this with the GUI in Ubuntu, the system settings window frezed so.. Yeah, pretty much the same experience..

P.S. "sudo adduser" worked?? Well, how nice of them to ignore any basic form of security.. Out of curiosity, did it at least asked you for a password?
 
Old 10-01-2014, 11:28 AM   #22
EODSteven
Member
 
Registered: Oct 2012
Location: Manchester, Tn
Distribution: Ubuntu 14.04, Windows 8, Windows Server 2012. Ubuntu Server 14.04
Posts: 196

Rep: Reputation: 3
Quote:
Originally Posted by Smokey_justme View Post
Ahh, well, that's kind of distribution specific and usually gsu or something like that is involved... To be fair, last time I've tried doing this with the GUI in Ubuntu, the system settings window frezed so.. Yeah, pretty much the same experience..

P.S. "sudo adduser" worked?? Well, how nice of them to ignore any basic form of security.. Out of curiosity, did it at least asked you for a password?
Oh, yes Sir, I had to enter my sudoers password..I would of freaked if it didn't!
 
Old 10-01-2014, 11:32 AM   #23
EODSteven
Member
 
Registered: Oct 2012
Location: Manchester, Tn
Distribution: Ubuntu 14.04, Windows 8, Windows Server 2012. Ubuntu Server 14.04
Posts: 196

Rep: Reputation: 3
I believe you can still write a bash script in Linux though that will do this without administrative access, I hope they fix this flaw in security sometime!
 
Old 10-01-2014, 11:40 AM   #24
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 534

Rep: Reputation: 203Reputation: 203Reputation: 203
Adding a user can't be done without administrative access (there are ways to trick your system into doing it, but you're basically shitting on security and inviting others to root your computer)...

But I agree that they should really see to it that the GUI works or, at the very least, remove the option completely...
 
Old 10-01-2014, 12:27 PM   #25
EODSteven
Member
 
Registered: Oct 2012
Location: Manchester, Tn
Distribution: Ubuntu 14.04, Windows 8, Windows Server 2012. Ubuntu Server 14.04
Posts: 196

Rep: Reputation: 3
Quote:
Originally Posted by Smokey_justme View Post
Adding a user can't be done without administrative access (there are ways to trick your system into doing it, but you're basically shitting on security and inviting others to root your computer)...

But I agree that they should really see to it that the GUI works or, at the very least, remove the option completely...
Update...The GUI works now that I added another user! Must be a default setting that is disabled when the system has only one sudoer, and the test user that I added needs "my" sudo password in order to make any changes even though they are a sudoer as well..pretty good security there.
 
Old 10-01-2014, 04:26 PM   #26
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Somethings wrong then, be ause if the user is part of the sudoers group then it would asking for that users password not the original users password.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] removed myself from sudoers list faizlo Linux - Newbie 6 12-16-2011 11:40 AM
[SOLVED] sudoers list citi Linux - Newbie 15 01-27-2011 10:03 PM
sudoers question about cmnd_alias/list and directories. trey85stang Linux - General 2 12-02-2010 04:59 PM
How do I add myself to the sudoers list? Cultist Debian 6 07-26-2010 07:31 PM
sudoers list Pedroski Fedora 4 11-06-2009 11:20 AM

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

All times are GMT -5. The time now is 05:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration