Hi Rosika,
Check the PATH for rosika_3
echo $PATH
At least you have the mount permissions under control
Regards
Neville
Hi Rosika,
Check the PATH for rosika_3
echo $PATH
At least you have the mount permissions under control
Regards
Neville
Hi Neville,
thanks for your new answer.
In the meantime I found out how to execute a command as another user.
Among other possibilities there“s the su
command:
su [another user] -c [command]
To verify it works I did the following as the old user rosika
:
su rosika_3 -c bash
Password: [pw for rosika_3]
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
Welcome to Linux Lite 6.2 rosika_3
Montag 20 Februar 2023, 14:42:24
Memory Usage: 1636/3842MB (42.58%)
Disk Usage: 15/23GB (65%)
Support - https://www.linuxliteos.com/forums/ (Right click, Open Link)
rosika_3 ī° / ī± home ī± rosika ī° pwd
/home/rosika
rosika_3 ī° / ī± home ī± rosika ī° ls /home
lost+found rosika rosika_3 timeshift
rosika_3 ī° / ī± home ī± rosika ī° cd /home/rosika_3
rosika_3 ī° ~ ī° pwd
/home/rosika_3
rosika_3 ī° ~ ī° exit
exit
rosika@rosika-Lenovo-H520e ~> echo $status
0
So it seems to work fineā¦
⦠although I get those ācannot set terminal process groupā messages which however doesnĀ“t seem to have mattered. In the end when logging out I still get
echo $status
0
which is good.
OK. then:
I did a direct comparison of users rosika_3
and rosika
. Here“s the output:
rosika@rosika-Lenovo-H520e ~> su rosika_3 -c 'echo $PATH'
Password: [pw for rosika_3]
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
rosika@rosika-Lenovo-H520e ~> echo $PATH
/usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games /usr/local/games /snap/bin
I can“t spot any difference.
Next time when logging in to my new user account I“ll try the su
variant for executing the command(s) that didn“t work last time.
Thanks a lot, Neville.
Many greetings from Rosika