Author Topic: inxi root requirement  (Read 18164 times)

mrneilypops

  • Posts: 106
    • View Profile
inxi root requirement
« on: January 17, 2013, 06:39:20 PM »
How can I run inxi as a non-root user?

falldown

  • Posts: 366
    • View Profile
Re: inxi root requirement
« Reply #1 on: January 17, 2013, 06:46:02 PM »
Do you have the correct permission to write to your inxi.conf file?

I have never used inxi before, but usually these problems are a permission issue.

VastOne

  •      v-ger
  • Posts: 4185
    • View Profile
    • VSIDO Community
Re: inxi root requirement
« Reply #2 on: January 17, 2013, 06:50:15 PM »
From terminal, do a

Code: [Select]
whereis inxi
If it reports either of these

Code: [Select]
inxi: /usr/sbin/inxi

/usr/local/bin/inxi

Run from terminal

Code: [Select]
/usr/sbin/inxi

or

/usr/local/bin/inxi

If either of these work then it is an environment path issue.

I can run inxi on my install without sudo, this is why I think it is a path issue
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

VastOne

  •      v-ger
  • Posts: 4185
    • View Profile
    • VSIDO Community
Re: inxi root requirement
« Reply #3 on: January 17, 2013, 06:51:39 PM »
I was about to suggest permissions but falldown already had..

 ;D ;D
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

VastOne

  •      v-ger
  • Posts: 4185
    • View Profile
    • VSIDO Community
Re: inxi root requirement
« Reply #4 on: January 17, 2013, 06:52:25 PM »
Do you have the correct permission to write to your inxi.conf file?

I have never used inxi before, but usually these problems are a permission issue.

It is installed natively on VSIDO, why not try to run it and see?
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

mrneilypops

  • Posts: 106
    • View Profile
Re: inxi root requirement
« Reply #5 on: January 17, 2013, 06:54:39 PM »
@VastOne
Exactly as you described.
How can I fix this to just type inxi (-F)

EDIT: Hmm...this is odd.
Since I logged into openbox I can run inxi -F as a normal user.
In xfce4 desktop I definitely had to be root.
Any ideas?

falldown

  • Posts: 366
    • View Profile
Re: inxi root requirement
« Reply #6 on: January 17, 2013, 07:00:00 PM »
Quote from: VastOne
I was about to suggest permissions but falldown already had..

 ;D ;D
:D

VastOne

  •      v-ger
  • Posts: 4185
    • View Profile
    • VSIDO Community
Re: inxi root requirement
« Reply #7 on: January 17, 2013, 07:01:23 PM »
Run

Code: [Select]
echo $PATH
and report what it shows ... My guess is that :/usr/sbin is not included in yours.. and will need to be fixed

This is mine

Code: [Select]
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin:/home/vastone/bin
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

mrneilypops

  • Posts: 106
    • View Profile
Re: inxi root requirement
« Reply #8 on: January 17, 2013, 07:04:56 PM »
Code: [Select]
neil@vsido:~$ echo $PATH
/home/neil/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin:/home/neil/bin:/sbin:/usr/sbin:/home/neil/bin

VastOne

  •      v-ger
  • Posts: 4185
    • View Profile
    • VSIDO Community
Re: inxi root requirement
« Reply #9 on: January 17, 2013, 07:17:28 PM »
Both OB and Xfce use ~.bashrc, which is where these variables are set

Your path statement shows everything is correctly set

I am at a loss as to why it works in OB and not Xfce

You might want to run the echo $PATH in Xfce to verify

As I said, it also runs fine on my Xfce

@falldown, will you run it from Xfce to see what you get?
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

mrneilypops

  • Posts: 106
    • View Profile
Re: inxi root requirement
« Reply #10 on: January 17, 2013, 07:32:29 PM »
@VastOne
Thanks for the tips.
I will give this a try in xfce and post back on this thread ASAP.

falldown

  • Posts: 366
    • View Profile
Re: inxi root requirement
« Reply #11 on: January 17, 2013, 07:42:42 PM »
In xfce I have to sudo it.. OB does not require sudo.

Very strange indeed.

Sector11

  • Posts: 870
    • View Profile
Re: inxi root requirement
« Reply #12 on: January 17, 2013, 08:19:41 PM »
@ mrneilypops et all

Check this out: inxi the super script - bash aliases

Gotta put that in my sig.  :D
Stay Home

mrneilypops

  • Posts: 106
    • View Profile
Re: inxi root requirement
« Reply #13 on: January 18, 2013, 06:16:38 AM »
@falldown
Thanks for the confirmation.

VastOne

  •      v-ger
  • Posts: 4185
    • View Profile
    • VSIDO Community
Re: inxi root requirement
« Reply #14 on: January 18, 2013, 04:34:35 PM »
I will track this down and find the solution today

VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO