You are not logged in.

#1 2011-10-21 18:25:57

ianforcements
Member
Registered: 2011-10-21
Posts: 3

/sbin not in PATH after installing lightDM?

Sorry, I'm a tad confused here, and very new.

When I try to run fdisk, or other similar commands found in /sbin, from the terminal... it says they aren't found.

If I run /sbin/fdisk ,  the command works fine.  I am also not able to reboot or shut down the pc unless I do so from the terminal - /"sbin/reboot"

I can change my path within the terminal, and fdisk works fine on its own, but obviously, once I close the terminal, that change goes away.

The path in my /etc/profile is as follows:

PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
export PATH

It looks to me like /sbin is there just fine, but what do I know.

This change happened after installed lightDM, which otherwise works flawlessly. 

Thanks for any help

Offline

#2 2011-10-21 18:40:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: /sbin not in PATH after installing lightDM?

Offline

#3 2011-10-21 19:45:05

ianforcements
Member
Registered: 2011-10-21
Posts: 3

Re: /sbin not in PATH after installing lightDM?

Though I was trying to find that thread again,  there isn't actually a solution there for my problem.

I am launching via inittab using the same:

x:5:respawn:/usr/sbin/lightdm >& /dev/null

mentioned in the thread.

Offline

#4 2011-10-21 19:53:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: /sbin not in PATH after installing lightDM?

What version are you using?
Have you read the comments on https://aur.archlinux.org/packages.php?ID=40708 ?

Offline

#5 2011-10-21 20:18:03

ianforcements
Member
Registered: 2011-10-21
Posts: 3

Re: /sbin not in PATH after installing lightDM?

Sorry, I'm a total idiot today.  I couldn't remember where I read that stuff (the comments).  Anyway, before coming back here, I fixed the /sbin issue, as well as the shutdown/reboot issue with oblogout, but I don't think they are the best solutions.  (Adding path to bash.bashrc, and adding /sbin/ to oblogout.conf)

Maybe I will try another DM instead.  This is just my first shot at anything linux, so.. I'm having fun!

Thank you

Last edited by ianforcements (2011-10-21 20:18:40)

Offline

#6 2011-10-21 21:56:51

shulamy
Member
From: israel
Registered: 2010-09-11
Posts: 456

Re: /sbin not in PATH after installing lightDM?

Offline

Board footer

Powered by FluxBB