Problem with creating new user in 6.1 Orange PI PC2

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
Apoc
Posts: 6
Joined: Tue Feb 06, 2018 9:55 am

Problem with creating new user in 6.1 Orange PI PC2

Post by Apoc »

I just updated my OpiPC2 to 6.1,

Code: Select all

[ INFO ] Current Version : 6.1
[ INFO ] Server Version  : 6.1
and as usual I created my user using adduser and added it to the sudo groups.

After that I can't use any of the dietpi-* apps, as it seems it can't find them.

Code: Select all

apoc@DietPi:~$ sudo dietpi-software
sudo: dietpi-software: command not found
If I log as root they are available as usual. If i try using the dietpi user they also work, so I think it must be some error on my part when creating my user.

Code: Select all

root@DietPi:~# dietpi-
dietpi-autostart      dietpi-cleaner        dietpi-drive_manager  dietpi-letsencrypt    dietpi-process_tool   dietpi-sync
dietpi-backup         dietpi-config         dietpi-justboom       dietpi-logclear       dietpi-services       dietpi-update
dietpi-bugreport      dietpi-cron           dietpi-launcher       dietpi-morsecode      dietpi-software
Can anyone help me?
User avatar
MichaIng
Site Admin
Posts: 2294
Joined: Sat Nov 18, 2017 6:21 pm

Re: Problem with creating new user in 6.1 Orange PI PC2

Post by MichaIng »

Hi Apoc,

I see, yes we moved our software aliases from /etc/bash.bashrc to /DietPi/dietpi/func/dietpi-globals, introduced with DietPi v6.0.

These globals are sourced at /root/.bashrc which is copied to dietpi users home directory as well during system preparation.

So to allow access to them, as well as the new global variables and functions G_<tab> and get the login banner, do:
sudo cp /root/.bashrc ~/

But thanks for sharing this issue. Maybe we find a good way to automatically grant access to these for all new (at least sudo capable) users.
I created an issue on gitub: https://github.com/Fourdee/DietPi/issues/1477
User avatar
WarHawk
Posts: 610
Joined: Thu Jul 20, 2017 8:55 am

Re: Problem with creating new user in 6.1 Orange PI PC2

Post by WarHawk »

https://www.digitalocean.com/community/ ... quickstart

Code: Select all

# adduser username

# usermod -aG sudo username
I add a user to my linux builds so I don't have to run as root all the time

I also

Code: Select all

# passwd
to change the default dietpi password
Apoc
Posts: 6
Joined: Tue Feb 06, 2018 9:55 am

Re: Problem with creating new user in 6.1 Orange PI PC2

Post by Apoc »

Thanks! It works now.
Post Reply