add super user

Discussion in 'Installation/Configuration' started by Tom John, Apr 1, 2021.

  1. Tom John

    Tom John Active Member HowtoForge Supporter

    Hi guys,
    i am using ubuntu 20.04 and ISPConfig 3
    i want to add a superuser who has privilage to see the folder root
    i add the user as follows:
    useradd tomdf
    and then:
    usermod -aG sudo tomdf
    then i check it:
    [email protected]:~$ whoami
    [email protected]:~$ sudo -l -U tomdf
    [sudo] password for tomdf: 
    Matching Defaults entries for tomdf on server2:
        env_reset, mail_badpass,
    User tomdf may run the following commands on server2:
        (ALL : ALL) ALL
    however when i want access to root folder i get permission denied
    maybe you have any idea what was going wrong?
    thanks for your help
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Read man page for command sudo, about parameters -l and -U. If you really want to use them, use man sudoers.
    Meanwhile, log in to that host as user tomdf and use commands
    sudo -i
  3. Tom John

    Tom John Active Member HowtoForge Supporter

    thanks a lot its working
    thanks for your help

Share This Page