Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Jun 2012
Command to give new user EXACTLY same privileges as original user acc?
This is not a duplicate of a previous post but in that post I mentioned the need for an account that can be fixed just by creating a new account, but in that post I failed to ask the current quetion.
What I want to do is use added user to try out different things but keep orig account for basic tasks that wont clutter things up too much.
So to reiterate, after I have entered command: 'sudo adduser johndoe' what is the quickest and best way to then make this new account an exact mirror of orig user account in terms of privileges. When using that account I don't want to encounter any b.s. If I can do it with orig. user I want to be able to do it in added user.
I am fairly new to admin level linux use.
You can find all the groups of a user by running the id command, so for example
id elija uid=1000(elija) gid=1000(elija) groups=1000(elija),7(lp),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),100(users),102(fuse),107(scanner),108(netdev)
usermod -G scanner,netdev new_user_nameShould you be sitting wondering,
Which Batman is the best,
There's only one true answer my friend,
It's Adam Bloody West!
The Fifth Continent