Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] App as root doesn't starts  (Read 5049 times)

dacorsa

  • Guest
[EN] App as root doesn't starts
« on: 2018/02/22, 11:00:30 »
Hi guys


i have 2 computer with siduction, on my portable app as root doesn't starts, doesn't appear the box to insert the root password, can you help me solve it? Can be some files needs special permission?


Thanks

Online devil

  • Administrator
  • User
  • *****
  • Posts: 4.838
Re: App as root doesn't starts
« Reply #1 on: 2018/02/22, 11:31:27 »
If you would put any information at all into your post, maybe we can. Right now it says exactly nothing and just wastes my time.

dacorsa

  • Guest
Re: App as root doesn't starts
« Reply #2 on: 2018/02/22, 11:52:13 »
Dear Devil,


the box to insert the root password appear and desappear immediatly, i don't know what can be i don't have other info to give you.


Can you tell me some command to try?


Thanks

Offline ayla

  • User
  • Posts: 1.744
Re: App as root doesn't starts
« Reply #3 on: 2018/02/22, 12:07:54 »
Maybe you can tell us which programm you want to start as root and how you are trying this and what "portable app" ?? you are trying to use as a start. Details please.

dacorsa

  • Guest
Re: App as root doesn't starts
« Reply #4 on: 2018/02/22, 12:19:15 »
ad example GSmartControl:



dacorsa@NanoSID:~$ gsmartcontrol
Command 'gsmartcontrol' is available in '/usr/local/sbin/gsmartcontrol'
The command could not be located because '/usr/local/sbin' is not included in the PATH environment variable.
This is most likely caused by the lack of administrative priviledges associated with your user account.
gsmartcontrol: command not found
dacorsa@NanoSID:~$ gsmartcontrol-root
Error executing command as another user: Not authorized


This incident has been reported.
dacorsa@NanoSID:~$

dacorsa

  • Guest
Re: App as root doesn't starts
« Reply #5 on: 2018/02/22, 12:30:09 »

dacorsa@NanoSID:~$ gsmartcontrol
<error> [hz] Error: gspawn: Esecuzione del processo figlio «smartctl» non riuscita (File o directory non esistente)
<error> [app] bool CmdexSync::execute(): cmdex_.execute() failed.


dacorsa

  • Guest
Re: App as root doesn't starts
« Reply #6 on: 2018/02/22, 12:34:57 »

dacorsa@NanoSID:~$ synaptic-pkexec
Error executing command as another user: Not authorized


This incident has been reported.
dacorsa@NanoSID:~$


Offline ayla

  • User
  • Posts: 1.744
Re: App as root doesn't starts
« Reply #7 on: 2018/02/22, 12:48:04 »
Quote
root@siduce:/home/cal# apt install gsmartcontrol
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
  libgltf-0.1-1 liblivemedia61 liborcus-0.12-0 libplacebo2 libtinyxml2-5 libvisio-0.1-1 linux-headers-4.14.11-towo.3-siduction-amd64
  linux-headers-4.14.9-towo.2-siduction-amd64 linux-image-4.14.11-towo.3-siduction-amd64 linux-image-4.14.9-towo.2-siduction-amd64 python3-olefile
Verwenden Sie »apt autoremove«, um sie zu entfernen.
Die folgenden zusätzlichen Pakete werden installiert:
  libpcrecpp0v5
Die folgenden NEUEN Pakete werden installiert:
  gsmartcontrol libpcrecpp0v5
0 aktualisiert, 2 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 725 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 2.320 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n]
Holen:1 http://deb.debian.org/debian unstable/main amd64 libpcrecpp0v5 amd64 2:8.39-9 [152 kB]
Holen:2 http://deb.debian.org/debian unstable/main amd64 gsmartcontrol amd64 1.1.3-1 [573 kB]
Es wurden 725 kB in 0 s geholt (1.511 kB/s).
Vormals nicht ausgewähltes Paket libpcrecpp0v5:amd64 wird gewählt.
(Lese Datenbank ... 313381 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../libpcrecpp0v5_2%3a8.39-9_amd64.deb ...
Entpacken von libpcrecpp0v5:amd64 (2:8.39-9) ...
Vormals nicht ausgewähltes Paket gsmartcontrol wird gewählt.
Vorbereitung zum Entpacken von .../gsmartcontrol_1.1.3-1_amd64.deb ...
Entpacken von gsmartcontrol (1.1.3-1) ...
Trigger für mime-support (3.60) werden verarbeitet ...
Trigger für desktop-file-utils (0.23-2) werden verarbeitet ...
Trigger für libc-bin (2.26-6) werden verarbeitet ...
Trigger für man-db (2.8.1-1) werden verarbeitet ...
libpcrecpp0v5:amd64 (2:8.39-9) wird eingerichtet ...
Trigger für hicolor-icon-theme (0.17-1) werden verarbeitet ...
gsmartcontrol (1.1.3-1) wird eingerichtet ...
Trigger für libc-bin (2.26-6) werden verarbeitet ...
root@siduce:/home/cal# gsmartcontrol
<warn>  [hz] Warning: exit: Device open failed, or device did not return an IDENTIFY DEVICE structure.
<warn>  [app] SmartctlParser::parse_section_info(): Unknown Info line encountered.
<warn>  [hz] FS warning: Error while opening file "/proc/scsi/scsi": Datei oder Verzeichnis nicht gefunden.
<warn>  [app] {anonymous}::read_proc_scsi_scsi_file(): SCSI file doesn't exist.
<warn>  [hz] FS warning: Error while opening file "/proc/scsi/scsi": Datei oder Verzeichnis nicht gefunden.
<warn>  [app] {anonymous}::read_proc_scsi_scsi_file(): SCSI file doesn't exist.
<warn>  [hz] FS warning: Unable to check if a path "/root/.config/gsmartcontrol/gsmartcontrol.conf" points to directory: Datei oder Verzeichnis nicht gefunden.
root@siduce:/home/cal# exit
exit
cal@siduce:~$ gsmartcontrol
Could not find the database of available applications, run update-command-not-found as root to fix this
Command 'gsmartcontrol' is available in '/usr/sbin/gsmartcontrol'
The command could not be located because '/usr/sbin' is not included in the PATH environment variable.
This is most likely caused by the lack of administrative priviledges associated with your user account.
gsmartcontrol: command not found

gsmartcontroll is here running when opened from a root-terminal.

So it seems you have installed it not using apt.

As you can see, if using apt to install it it is located in the /usr/sbin directory not in /usr/locale/sbin

So, my way to solve this would be: remove the installation of gsmartcontrol and install it with apt.

dacorsa

  • Guest
Re: App as root doesn't starts
« Reply #8 on: 2018/02/22, 12:50:48 »

dacorsa@NanoSID:~$ gufw
Error executing command as another user: Not authorized


This incident has been reported.
dacorsa@NanoSID:~$

dacorsa

  • Guest
Re: App as root doesn't starts
« Reply #9 on: 2018/02/22, 12:52:31 »
Yes ayla,

it's only 1 of many example, see the other...

Thank you

Offline ayla

  • User
  • Posts: 1.744
Re: App as root doesn't starts
« Reply #10 on: 2018/02/22, 12:57:40 »
synaptic is here starting when opened from menu with my user password, or as root from a terminal

no problems

dacorsa

  • Guest
Re: App as root doesn't starts
« Reply #11 on: 2018/02/22, 13:01:07 »
yes but it's only a problem on my pc, not on yours...


how can i solve?


Thanks

Offline ayla

  • User
  • Posts: 1.744
Re: App as root doesn't starts
« Reply #12 on: 2018/02/22, 13:03:52 »
open a terminal as root

Code: [Select]
su
type your root-passwd
synaptic
show us the output

Watch! dont type the command passwd, i meaned type your root-password, sorry
« Last Edit: 2018/02/22, 13:15:25 by ayla »

dacorsa

  • Guest
Re: App as root doesn't starts
« Reply #13 on: 2018/02/22, 13:21:12 »
as root works well,



root@NanoSID:/home/dacorsa# synaptic
root@NanoSID:/home/dacorsa#




but if i double click on icon on desktop appears root password prompt and desappears


How can i solve it?




Offline ayla

  • User
  • Posts: 1.744
Re: App as root doesn't starts
« Reply #14 on: 2018/02/22, 13:24:26 »
what desktop you are using?
Code: [Select]
inxi -S