# New user profile access

**URL:** <https://dietpi.com/forum/t/new-user-profile-access/16041>\
**Category:** Community Tutorials\
**Created:** [23 February 2023 17:58 UTC](https://dietpi.com/forum/t/new-user-profile-access/16041 "2023-02-23T17:58:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![badspellersuntie](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/a698b9/32.png) [@badspellersuntie](https://dietpi.com/forum/u/badspellersuntie)\
**Post date:** [23 February 2023 17:58 UTC](https://dietpi.com/forum/t/new-user-profile-access/16041/1 "2023-02-23T17:58:46Z")

</div>

So I created a new user profile, deleted DietPi and disabled root for security.  
Now none of the commands run correctly, the only way I can get them to run is to do /boot/dietpi/dietpi-

I already cp the contents of /root into my home directory but still when I login I don’t get the banner and have to use the full path to run the scripts.  
Any ideas on how I can get this functionality back?

---

<div class="post-metadata">

**Author:** ![WarHawk](https://dietpi.com/forum/user_avatar/dietpi.com/warhawk/32/21_2.png) [@WarHawk](https://dietpi.com/forum/u/WarHawk)\
**Post date:** [24 February 2023 04:15 UTC](https://dietpi.com/forum/t/new-user-profile-access/16041/2 "2023-02-24T04:15:03Z")

</div>

Did you add that user to the sudoers group? Especially before you blew out dietpi or disabled root login?

```auto
sudo usermod -aG sudo usernamehere

```

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [24 February 2023 08:07 UTC](https://dietpi.com/forum/t/new-user-profile-access/16041/3 "2023-02-24T08:07:54Z")

</div>

> [@badspellersuntie](#):
>
> Any ideas on how I can get this functionality back?

usually alias definition for DietPi scripts is done within `/etc/bashrc.d/dietpi.bash`. Therefore `bash` shell needs to be set explicitly for the user.

```auto
useradd -g dietpi -s /usr/bin/bash -m demo
passwd demo

```

---

<div class="post-metadata">

**Author:** ![badspellersuntie](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/a698b9/32.png) [@badspellersuntie](https://dietpi.com/forum/u/badspellersuntie)\
**Post date:** [24 February 2023 15:40 UTC](https://dietpi.com/forum/t/new-user-profile-access/16041/4 "2023-02-24T15:40:23Z")

</div>

Yes I can sudo all day, but it still looks nothing like the root login

---

<div class="post-metadata">

**Author:** ![badspellersuntie](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/a698b9/32.png) [@badspellersuntie](https://dietpi.com/forum/u/badspellersuntie)\
**Post date:** [24 February 2023 15:48 UTC](https://dietpi.com/forum/t/new-user-profile-access/16041/5 "2023-02-24T15:48:41Z")

</div>

Thank you my friend, this is the fix to the issue. Now everything works like expected.
