LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 06-21-2016, 12:02 PM   #1
drkarthik
LQ Newbie
 
Registered: May 2016
Location: HYDERABAD, TELANGANA, INDIA
Distribution: DEBIAN JESSIE
Posts: 17

Rep: Reputation: Disabled
separate sudo and user password


hi everyone,
I am using linux mint cinnamon 18 beta.
I want to know if this can be done.
Can i have a separate sudo password different from the user password so that even if I give my login password for my username to others they will not be able to use it to perform root actions?
this is possible in debian but i stopped using it as I have grown familiar with mint.
thank you!
 
Old 06-21-2016, 12:14 PM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
I would question why you are giving out your login information to others? If they require access then they should have their own login.

To answer your question I believe it is yes. Just google for it there is a lot out there
 
Old 06-21-2016, 12:34 PM   #3
drkarthik
LQ Newbie
 
Registered: May 2016
Location: HYDERABAD, TELANGANA, INDIA
Distribution: DEBIAN JESSIE
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lazydog View Post
I would question why you are giving out your login information to others? If they require access then they should have their own login.

To answer your question I believe it is yes. Just google for it there is a lot out there

thanks for the reply,
i give out the login information to others because it is a home computer and more than 4 to 5 people use it.
i just felt like leaving the login information open and at the same time restricting them to perform any root operations and break the installation. All my family members have just started using linux (previously windows).

yes i googled for this but could not find an easy method for mint.
can you please post some links or redirect me to a reliable solution.
thank you!!
 
Old 06-21-2016, 01:23 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,662

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by drkarthik View Post
thanks for the reply,
i give out the login information to others because it is a home computer and more than 4 to 5 people use it.
i just felt like leaving the login information open and at the same time restricting them to perform any root operations and break the installation. All my family members have just started using linux (previously windows).
Then start using Linux CORRECTLY, and just create user ID's for everyone...why is this a problem? This is the same thing as creating a separate user under Windows...everyone has their own home directory, settings, etc. Which is what you WANT if more than one person is using the system.

Also, if they've just started, it is ABSOLUTELY A HORRIBLE IDEA to give someone, with NO Linux experience, the ability to be able to cause irreparable damage to your system. If they don't know what they're doing, you *DO NOT* want them to have sudo/root access, at all, period, ever. You say you've used Debian in the past, so you should already know about the very basics of system-security.
Quote:
yes i googled for this but could not find an easy method for mint. can you please post some links me to a reliable solution.
Since you looked, and didn't find something 'easy', then tell us what you DID find...we aren't going to hand you links and look things up for you.
 
Old 06-21-2016, 01:50 PM   #5
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
I wouldn't do what you are trying to do (if nothing else, I'd create a guest-user that people could use to log in with, so as to protect your own personal files from accidental harm) but it's your computer.

This has nothing to do with Mint or Debian or any distro. The thing that `sudo` does, according to its own man page:

Code:
$ whatis sudo
sudo (8)             - execute a command as another user
So you can definitely use different passwords to initiate sudo. Two easy steps:

1. Create a user. For instance:

Code:
$ sudo useradd -m -g wheel timmy
$ sudo passwd timmy 
password123
2. Tell little Timmy to use sudo this way:

Code:
$ sudo -u timmy "echo `whoami`"
  <enters: password123>
timmy

Last edited by notKlaatu; 06-21-2016 at 02:43 PM.
 
1 members found this post helpful.
Old 06-21-2016, 02:17 PM   #6
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,328
Blog Entries: 3

Rep: Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726
I agree with the advice above. It is best to have accounts for the different users, or else a guest account. Failing that, if you do stick with your current arrangement, which is not advised, then you should make a second account and give that administrative privileges. Once the second account is verified to work as administrator, use it to demote the first account so that it is not administrator any longer. But, again, adding a guest account or accounts for the other users is the way to go if you can.
 
1 members found this post helpful.
Old 06-21-2016, 02:21 PM   #7
drkarthik
LQ Newbie
 
Registered: May 2016
Location: HYDERABAD, TELANGANA, INDIA
Distribution: DEBIAN JESSIE
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by notKlaatu View Post
I wouldn't do what you are trying to do (if nothing else, I'd create a guest-user that people could use to log in with, so as to protect your own personal files from accidental harm) but it's your computer.

This has nothing to do with Mint or Debian or any distro. The thing that `sudo` does, according to its own man page:

Code:
$ whatis sudo
sudo (8)             - execute a command as another user
So you can definitely use different passwords to initiate sudo. Two easy steps:

1. Create a user. For instance:

Code:
$ sudo useradd -m -g wheel timmy
$ sudo passwd timmy 
password123
2. Tell little Timmy to use sudo this way:

Code:
$ sudo -u timmy "echo $whoami"
  <enters: password123>
timmy
thank you..
 
Old 06-21-2016, 02:21 PM   #8
drkarthik
LQ Newbie
 
Registered: May 2016
Location: HYDERABAD, TELANGANA, INDIA
Distribution: DEBIAN JESSIE
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
I agree with the advice above. It is best to have accounts for the different users, or else a guest account. Failing that, if you do stick with your current arrangement, which is not advised, then you should make a second account and give that administrative privileges. Once the second account is verified to work as administrator, use it to demote the first account so that it is not administrator any longer. But, again, adding a guest account or accounts for the other users is the way to go if you can.
thank you...
 
Old 06-21-2016, 03:00 PM   #9
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
I love guest modes for my nephews (12 & 5.)
 
  


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
Forgotten sudo (su) and user password for app install etc... nailshock Linux - Newbie 3 02-17-2015 12:54 PM
sudo requires user password moonmoth Fedora 7 09-13-2014 08:02 AM
Can I setup sendmail so that it use separate user and password files? Dims Linux - Newbie 2 10-14-2010 03:56 PM
sudo non-user/non-root password Alex_Dc Linux - Security 3 02-19-2010 06:28 PM
sudo requires current user's password robogymnast Linux - General 5 08-04-2008 08:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 10:13 AM.

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