So the question is - is it possible to add the new user to a group so that it can have access to mount and dismount?
Hello Sprintrdriver,
be logged in as your First user.
Adding username2 in to the sudoers GroupHold down Ctrl and Alt keys and press t (Ctrl Alt +t)
Copy/paste (or type) in to your terminal the code below, replacing the word "username2", with the actual username of your second user -
sudo usermod -a -G sudo username2
press enter
type in your password when asked (password of first user)
Explanation of this command -
- This will modify the username2 (usermod) (actual username2)
- and add/append (-a)
- to the group (-G)
- named (sudo)
Checking username2 is now in the sudo groupAfterwards you can do, replacing the word "username2", with the actual username of your second user -
groups username2
to check.
Adding/Changing sudo password of username2If it needs the password added for the sudo group of username2
Then to do, replacing the word "username2", with the actual username of your second user -
sudo passwd username2
press enter
type username2 password
press enter
type username2 password again.
press enter