Linux MintThis forum is for the discussion of Linux Mint.
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.
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!
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!!
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.
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:
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.
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:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.