Post here if you are a new Porteus member and you're looking for some help.
-
Ed_P
- Contributor
- Posts: 8373
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#16
by Ed_P » 14 Jan 2018, 00:04
brokenman wrote: ↑13 Jan 2018, 14:20
Actually this shouldn't require a fix. /opt/porteus-scripts should be a part of your $PATH variable.
It is in the 3.2.2's guest mode but not root mode.
Code: Select all
guest@porteus:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/games:/opt/porteus-scripts:/usr/lib64/java/bin:/usr/lib64/qt/bin:/usr/lib64/java/bin:/usr/lib64/qt/bin:/usr/lib64/java/bin:/usr/lib64/qt/bin
guest@porteus:~$ su
Password:
root@porteus:/home/guest# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/lib64/java/bin:/usr/lib64/qt/bin
root@porteus:/home/guest# ./bootmode.sh
Boot device: /dev/sda6
Device format: "ntfs"
Boot ISO: /ISOs/Porteus-CINNAMON-v3.2.2-x86_64.iso
Changes to be saved to a save.dat file.
Save.dat: /porteus3.2/changes/porteussave.dat
Changes: changes=EXIT:/porteus3.2/changes/porteussave.dat
Ed
Ed_P
-
ncmprhnsbl
- DEV Team
- Posts: 3941
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
-
Contact:
Post#17
by ncmprhnsbl » 14 Jan 2018, 00:53
try : su -l
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
ncmprhnsbl
-
Ed_P
- Contributor
- Posts: 8373
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#18
by Ed_P » 14 Jan 2018, 01:31
I don't need to do that with 4.0. And it's path doesn't have /opt/porteus-scripts in it.
Code: Select all
guest@porteus:~$ su
Password:
root@porteus:/home/guest# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/lib64/java/bin
root@porteus:/home/guest# update-flash
[OK] User is root
[OK] Distro is Porteus
[OK] Flash is installed
[OK] Internet connection exists
Downloading live script ...
Downloading: update-flash-live DONE
/usr/local/bin/update-flash-live: line 63: warning: command substitution: ignored null byte in input
Searching online for latest flash player version ...
Installed version: 28.0.0.137-
Latest version: 28.0.0.137
Would you like to continue? [y/n]
Ed
Ed_P
-
ncmprhnsbl
- DEV Team
- Posts: 3941
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
-
Contact:
Post#19
by ncmprhnsbl » 14 Jan 2018, 04:35
and round and round we go
that's because of symlinks in /usr/bin
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
ncmprhnsbl
-
Ed_P
- Contributor
- Posts: 8373
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#20
by Ed_P » 14 Jan 2018, 14:45
ncmprhnsbl wrote: ↑14 Jan 2018, 04:35
and round and round we go
that's because of symlinks in /usr/bin
Yup.
brokenman wrote: ↑13 Jan 2018, 14:20
Actually this shouldn't require a fix. /opt/porteus-scripts should be a part of your $PATH variable.
Ed
Ed_P
-
brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Post#21
by brokenman » 14 Jan 2018, 17:47
When you log in as guest, the file /etc/profile is run and the following environment variable from the script is locked and loaded.
Code: Select all
PATH="/usr/local/bin:/usr/bin:/bin:/usr/games:/opt/porteus-scripts"
Now because you are logged in as guest, guest has access to this path. Root doesn't have this path because they are not logged in. This leaves two options if you want to access /opt/porteus-scripts
1. Use a login shell: su -l
This will maintain all the env variables from guest.
2. Put symlinks in /usr/bin to the path /opt/porteus-scripts files
guest has access to /usr/bin root has access to /sbin
Does this explain it clearly?
How do i become super user?
Wear your underpants on the outside and put on a cape.
brokenman
-
Blaze
- DEV Team
- Posts: 3885
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
-
Contact:
Post#22
by Blaze » 14 Jan 2018, 17:53
for root user need to tweak /etc/login.defs
Code: Select all
ENV_SUPATH PATH=/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin
for guest user need to tweak /etc/profile
Code: Select all
# Set the default system $PATH:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/games:/opt/porteus-scripts"
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
Blaze
-
Ed_P
- Contributor
- Posts: 8373
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#23
by Ed_P » 14 Jan 2018, 18:46
brokenman wrote: ↑14 Jan 2018, 17:47
Does this explain it clearly?
Yes.
Basically we are discussing your use of the word "required" for ncmprhnsbl's solution to the update-flash function on 3.2.2. Technically it is not "required" so long as users remember/know to use a different form of the su command. Or edit the path as
Blaze has noted. But of the solutions noted ncmprhnsbl's is the easiest to implement, just download an updated module.
Ed
Ed_P
-
Jack
- Contributor
- Posts: 1857
- Joined: 09 Aug 2013, 14:25
- Distribution: Porteus and Nemesis
- Location: USA
Post#24
by Jack » 13 Feb 2018, 04:16
New flashplayer-plugin-28.0.0.161-x86_64-1.txz
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.
Jack