# Sudoers file

**URL:** <https://forums.suse.com/t/sudoers-file/34726>\
**Category:** SLES Configure-Administer\
**Created:** [January 27, 2020, 11:50am UTC](https://forums.suse.com/t/sudoers-file/34726 "2020-01-27T11:50:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![M111](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@M111](https://forums.suse.com/u/M111)\
**Post date:** [January 27, 2020, 11:50am UTC](https://forums.suse.com/t/sudoers-file/34726/1 "2020-01-27T11:50:06Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [January 27, 2020, 3:35pm UTC](https://forums.suse.com/t/sudoers-file/34726/2 "2020-01-27T15:35:11Z")

</div>

[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 🙂  
Just login as your user and then switch to root user with su - and enter the root password.

---

<div class="post-metadata">

**Author:** ![M111](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@M111](https://forums.suse.com/u/M111)\
**Post date:** [January 29, 2020, 5:23am UTC](https://forums.suse.com/t/sudoers-file/34726/3 "2020-01-29T05:23:17Z")

</div>

[QUOTE=malcolmlewis;59300]Hi and welcome to the Forum 🙂  
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

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [January 29, 2020, 5:33am UTC](https://forums.suse.com/t/sudoers-file/34726/4 "2020-01-29T05:33:17Z")

</div>

[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?

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [January 29, 2020, 7:51pm UTC](https://forums.suse.com/t/sudoers-file/34726/5 "2020-01-29T19:51:11Z")

</div>

[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.
