Sudoers file

Dear All,

Please help i have message when running “sudo mkdir” it said “user is not in sudoers file. This incident will be reported

how can i fix this, since my root user remote logon disabled.

i’m using SLES 12 SP3 on cloud.

Regards,

[QUOTE=ionly;59297]Dear All,

Please help i have message when running “sudo mkdir” it said “user is not in sudoers file. This incident will be reported

how can i fix this, since my root user remote logon disabled.

i’m using SLES 12 SP3 on cloud.

Regards,[/QUOTE]
Hi and welcome to the Forum :slight_smile:
Just login as your user and then switch to root user with su - and enter the root password.

[QUOTE=malcolmlewis;59300]Hi and welcome to the Forum :slight_smile:
Just login as your user and then switch to root user with su - and enter the root password.[/QUOTE]

Hi,

i try this and show "su: Authentication failure
i make sure that my password is correct

is it any other way?

Thanks

[QUOTE=ionly;59323]Hi,

i try this and show "su: Authentication failure
i make sure that my password is correct

is it any other way?

Thanks[/QUOTE]
Hi
So you don’t have root user access? Where are you trying to create the directory on the filesystem?

[QUOTE=ionly;59297]Dear All,

Please help i have message when running “sudo mkdir” it said “user is not in sudoers file. This incident will be reported

how can i fix this, since my root user remote logon disabled.

i’m using SLES 12 SP3 on cloud.

Regards,[/QUOTE]

What do you mean by “i’m using SLES 12 SP3 on cloud”? Which cloud? Is cloud-init being used and you’re authenticating using an SSH public key?

HTH.