bash-me-up (Bash Startup Files Setup Made Easy)

VastOne

Which means that the difference could be in any file that was placed on the /root partition and not /home
VSIDO      VSIDO Change Blog    

    I dev VSIDO

VastOne

Quote from: VastOne on January 11, 2017, 05:34:28 PM
Here they are but I am not sure errors are being captured on a failed login because the latest and the old one are identical

Xsession: X session started for vastone at Wed Jan 11 11:30:59 CST 2017
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
dbus-update-activation-environment: setting DISPLAY=:0
dbus-update-activation-environment: setting XAUTHORITY=/home/vastone/.Xauthority
localuser:vastone being added to access control list
/etc/X11/Xsession: 28: export: Illegal option -f


I just confirmed this.. the errors file is not updated on a failed login from the LightDM tty7 session

lightdm log current

[+0.01s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.01s] DEBUG: Starting Light Display Manager 1.18.3, UID=0 PID=706
[+0.01s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.01s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf
[+0.01s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.01s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.01s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.01s] DEBUG:   [SeatDefaults] is now called [Seat:*], please update this configuration
[+0.01s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.03s] DEBUG: Registered seat module xlocal
[+0.03s] DEBUG: Registered seat module xremote
[+0.03s] DEBUG: Registered seat module unity
[+0.06s] DEBUG: Monitoring logind for seats
[+0.06s] DEBUG: New seat added from logind: seat0
[+0.06s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.06s] DEBUG: Seat seat0: Starting
[+0.06s] DEBUG: Seat seat0: Creating greeter session
[+0.07s] DEBUG: Seat seat0: Creating display server of type x
[+0.07s] DEBUG: Could not run plymouth --ping: Failed to execute child process "plymouth" (No such file or directory)
[+0.07s] DEBUG: Using VT 7
[+0.07s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.07s] DEBUG: DisplayServer x-0: Logging to /var/log/lightdm/x-0.log
[+0.07s] DEBUG: DisplayServer x-0: Writing X server authority to /var/run/lightdm/root/:0
[+0.07s] DEBUG: DisplayServer x-0: Launching X Server
[+0.07s] DEBUG: Launching process 773: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.07s] DEBUG: DisplayServer x-0: Waiting for ready signal from X server :0
[+0.07s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.07s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.08s] WARNING: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
[+0.08s] DEBUG: Loading user config from /etc/lightdm/users.conf
[+0.09s] DEBUG: User vastone added
[+1.93s] DEBUG: Got signal 10 from process 773
[+1.93s] DEBUG: DisplayServer x-0: Got signal from X server :0
[+1.93s] DEBUG: DisplayServer x-0: Connecting to XServer :0
[+1.93s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+1.93s] DEBUG: Session pid=1086: Started with service 'lightdm-greeter', username 'lightdm'
[+1.95s] DEBUG: Session pid=1086: Authentication complete with return value 0: Success
[+1.95s] DEBUG: Seat seat0: Session authenticated, running command
[+1.95s] DEBUG: Session pid=1086: Running command /usr/sbin/lightdm-gtk-greeter
[+1.95s] DEBUG: Creating shared data directory /var/lib/lightdm/data/lightdm
[+1.95s] DEBUG: Session pid=1086: Logging to /var/log/lightdm/seat0-greeter.log
[+2.07s] DEBUG: Activating VT 7
[+2.07s] DEBUG: Activating login1 session c1
[+2.52s] DEBUG: Greeter connected version=1.18.3 resettable=false
[+2.94s] DEBUG: Greeter start authentication for vastone
[+2.95s] DEBUG: Session pid=1168: Started with service 'lightdm', username 'vastone'
[+2.96s] DEBUG: Session pid=1168: Got 1 message(s) from PAM
[+2.96s] DEBUG: Prompt greeter with 1 message(s)
[+5.90s] DEBUG: Seat seat0 changes active session to


lightdm old

[+0.01s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.01s] DEBUG: Starting Light Display Manager 1.18.3, UID=0 PID=687
[+0.01s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.01s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf
[+0.01s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.01s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.01s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.01s] DEBUG:   [SeatDefaults] is now called [Seat:*], please update this configuration
[+0.01s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.06s] DEBUG: Registered seat module xlocal
[+0.06s] DEBUG: Registered seat module xremote
[+0.06s] DEBUG: Registered seat module unity
[+0.09s] DEBUG: Monitoring logind for seats
[+0.09s] DEBUG: New seat added from logind: seat0
[+0.09s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.09s] DEBUG: Seat seat0: Starting
[+0.09s] DEBUG: Seat seat0: Creating greeter session
[+0.09s] DEBUG: Seat seat0: Creating display server of type x
[+0.09s] DEBUG: Could not run plymouth --ping: Failed to execute child process "plymouth" (No such file or directory)
[+0.09s] DEBUG: Using VT 7
[+0.09s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.09s] DEBUG: DisplayServer x-0: Logging to /var/log/lightdm/x-0.log
[+0.09s] DEBUG: DisplayServer x-0: Writing X server authority to /var/run/lightdm/root/:0
[+0.09s] DEBUG: DisplayServer x-0: Launching X Server
[+0.09s] DEBUG: Launching process 757: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.09s] DEBUG: DisplayServer x-0: Waiting for ready signal from X server :0
[+0.09s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.09s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.09s] WARNING: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
[+0.09s] DEBUG: Loading user config from /etc/lightdm/users.conf
[+0.10s] DEBUG: User vastone added
[+1.97s] DEBUG: Got signal 10 from process 757
[+1.97s] DEBUG: DisplayServer x-0: Got signal from X server :0
[+1.97s] DEBUG: DisplayServer x-0: Connecting to XServer :0
[+1.98s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+1.98s] DEBUG: Session pid=1103: Started with service 'lightdm-greeter', username 'lightdm'
[+2.00s] DEBUG: Session pid=1103: Authentication complete with return value 0: Success
[+2.00s] DEBUG: Seat seat0: Session authenticated, running command
[+2.00s] DEBUG: Session pid=1103: Running command /usr/sbin/lightdm-gtk-greeter
[+2.00s] DEBUG: Creating shared data directory /var/lib/lightdm/data/lightdm
[+2.00s] DEBUG: Session pid=1103: Logging to /var/log/lightdm/seat0-greeter.log
[+2.13s] DEBUG: Activating VT 7
[+2.13s] DEBUG: Activating login1 session c1
[+2.58s] DEBUG: Greeter connected version=1.18.3 resettable=false
[+3.00s] DEBUG: Greeter start authentication for vastone
[+3.00s] DEBUG: Session pid=1167: Started with service 'lightdm', username 'vastone'
[+3.01s] DEBUG: Session pid=1167: Got 1 message(s) from PAM
[+3.01s] DEBUG: Prompt greeter with 1 message(s)
[+8.58s] DEBUG: Continue authentication
[+8.61s] DEBUG: Session pid=1167: Authentication complete with return value 0: Success
[+8.61s] DEBUG: Authenticate result for user vastone: Success
[+8.61s] DEBUG: User vastone authorized
[+8.62s] DEBUG: Greeter sets language en_US.utf8
[+8.67s] DEBUG: Greeter requests session fluxbox
[+8.67s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+8.67s] DEBUG: Session pid=1103: Sending SIGTERM
[+8.69s] DEBUG: Greeter closed communication channel
[+8.69s] DEBUG: Session pid=1103: Exited with return value 0
[+8.69s] DEBUG: Seat seat0: Session stopped
[+8.69s] DEBUG: Seat seat0: Greeter stopped, running session
[+8.69s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+8.69s] DEBUG: Session pid=1167: Running command /etc/X11/Xsession /usr/bin/startfluxbox
[+8.69s] DEBUG: Creating shared data directory /var/lib/lightdm/data/vastone
[+8.69s] DEBUG: Session pid=1167: Logging to .xsession-errors
[+8.77s] DEBUG: Activating VT 7
[+8.77s] DEBUG: Activating login1 session 2
[+8.96s] DEBUG: Session pid=1167: Exited with return value 0
[+8.96s] DEBUG: Seat seat0: Session stopped
[+8.96s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+8.96s] DEBUG: Sending signal 15 to process 757
[+9.37s] DEBUG: Process 757 exited with return value 0
[+9.37s] DEBUG: DisplayServer x-0: X server stopped
[+9.37s] DEBUG: Releasing VT 7
[+9.37s] DEBUG: DisplayServer x-0: Removing X server authority /var/run/lightdm/root/:0
[+9.37s] DEBUG: Seat seat0: Display server stopped
[+9.37s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+9.37s] DEBUG: Seat seat0: Creating greeter session
[+9.37s] DEBUG: Seat seat0: Creating display server of type x
[+9.37s] DEBUG: Using VT 7
[+9.37s] DEBUG: Seat seat0: Starting local X display on VT 7
[+9.37s] DEBUG: DisplayServer x-0: Logging to /var/log/lightdm/x-0.log
[+9.37s] DEBUG: DisplayServer x-0: Writing X server authority to /var/run/lightdm/root/:0
[+9.37s] DEBUG: DisplayServer x-0: Launching X Server
[+9.37s] DEBUG: Launching process 1250: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+9.37s] DEBUG: DisplayServer x-0: Waiting for ready signal from X server :0
[+10.33s] DEBUG: Got signal 10 from process 1250
[+10.33s] DEBUG: DisplayServer x-0: Got signal from X server :0
[+10.33s] DEBUG: DisplayServer x-0: Connecting to XServer :0
[+10.34s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+10.34s] DEBUG: Session pid=1269: Started with service 'lightdm-greeter', username 'lightdm'
[+10.36s] DEBUG: Session pid=1269: Authentication complete with return value 0: Success
[+10.36s] DEBUG: Seat seat0: Session authenticated, running command
[+10.36s] DEBUG: Session pid=1269: Running command /usr/sbin/lightdm-gtk-greeter
[+10.36s] DEBUG: Creating shared data directory /var/lib/lightdm/data/lightdm
[+10.36s] DEBUG: Session pid=1269: Logging to /var/log/lightdm/seat0-greeter.log
[+10.43s] DEBUG: Activating VT 7
[+10.43s] DEBUG: Activating login1 session c2
[+10.61s] DEBUG: Greeter connected version=1.18.3 resettable=false
[+10.89s] DEBUG: Greeter start authentication for vastone
[+10.89s] DEBUG: Session pid=1305: Started with service 'lightdm', username 'vastone'
[+10.90s] DEBUG: Session pid=1305: Got 1 message(s) from PAM
[+10.90s] DEBUG: Prompt greeter with 1 message(s)
[+16.63s] DEBUG: Greeter closed communication channel
[+16.63s] DEBUG: Session pid=1269: Exited with return value 0
[+16.63s] DEBUG: Seat seat0: Session stopped
[+16.63s] DEBUG: Seat seat0: Stopping; failed to start a greeter
[+16.63s] DEBUG: Seat seat0: Stopping
[+16.63s] DEBUG: Seat seat0: Stopping display server
[+16.63s] DEBUG: Sending signal 15 to process 1250
[+16.63s] DEBUG: Seat seat0: Stopping session
[+16.63s] DEBUG: Session pid=1305: Sending SIGTERM
[+16.63s] DEBUG: Session pid=1305: Terminated with signal 15
[+16.63s] DEBUG: Session: Failed during authentication
[+16.63s] DEBUG: Seat seat0: Session stopped
[+16.65s] DEBUG: Got signal 15 from process 1
[+16.65s] DEBUG: Caught Terminated signal, shutting down
[+16.65s] DEBUG: Stopping display manager
VSIDO      VSIDO Change Blog    

    I dev VSIDO

VastOne

#32
I am seeing this error in the syslog that started at about the time all of this began

Jan 11 12:18:12 localhost lightdm[706]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files

I am going to log into a different partition to see if that same error is in the syslog

EDIT - Same error on other partitions so it is not relevant
VSIDO      VSIDO Change Blog    

    I dev VSIDO

hakerdefo

Okay! Vasty can you try another try?
Edit the .xsessionrc file to look like this,


#!/bin/bash
test -f /etc/profile && . /etc/profile

test -f $HOME/.profile && . $HOME/.profile

Save it and do the LightDM logout-login and see how it goes.

Cheers!!!
You Can't Always Git What You Want

VastOne

It did not work.. being that it is bash now would it need to be made 755 executable?
VSIDO      VSIDO Change Blog    

    I dev VSIDO

hakerdefo

This is happening because in Debian /bin/sh is symlinked to dash not bash. And in /etc/profile provided by bash-me-up the line 28 is,

export -f pathremove pathprepend pathappend


In dash, which is a posix shell, there is no way to export a function. So the above line is like an alien to dash so it throws an error. And in /etc/X11/Xsession there is the line,
set -e
That ensures that the execution of the scripts halts on any error.
So the simplest of the solution to do would be to comment out the line,


# export -f pathremove pathprepend pathappend


In /etc/profile file.
Can you test this?

Cheers!!!
You Can't Always Git What You Want

VastOne

I commented that out and rebooted and still cannot log in to tty7

I must reiterate this... I can log into a different partition with this same setting and same files and same user. This to me is interesting to say the least
VSIDO      VSIDO Change Blog    

    I dev VSIDO

hakerdefo

Try removing these symlinks,

sudo rm /root/.profile
sudo rm /root/.bash_profile
sudo rm /root/.bash_logout
sudo rm /root/.bashrc
sudo rm /root/.bash_aliases


And see if it makes any difference.

Cheers!!!
You Can't Always Git What You Want

VastOne

Quote from: hakerdefo on January 11, 2017, 07:27:10 PM
Try removing these symlinks,

sudo rm /root/.profile
sudo rm /root/.bash_profile
sudo rm /root/.bash_logout
sudo rm /root/.bashrc
sudo rm /root/.bash_aliases


And see if it makes any difference.

Cheers!!!

No difference still no login to tty7/lightdm
VSIDO      VSIDO Change Blog    

    I dev VSIDO

hakerdefo

Remove the following on both /home and this partition and reboot please,

sudo rm ~/.Xauthority
You Can't Always Git What You Want

VastOne

Quote from: hakerdefo on January 11, 2017, 07:40:58 PM
Remove the following on both /home and this partition and reboot please,

sudo rm ~/.Xauthority


Did not work. I still cannot log into tty7 lightdm
VSIDO      VSIDO Change Blog    

    I dev VSIDO

PackRat

@vastone -

Quote... I am now on another partition to restore the bup files but wanted to post what is going on

I use a separate /home partition that is also used on this partition I am on now.. just stating that whatever broke on the install partition is not affecting this login even though the files are the same

This is behaving more like a permissions issue than anything.. But that makes no sense because I can login to another partition with the same login using the same /home files

I'm having a hard time visualizing this setup. Do you have multiple installs of VSIDO and a shared /home partition? And you log into each install as "vastone"?
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

hakerdefo

gksudo medit /etc/X11/Xsession
Change the first line from,
#!/bin/sh
to
#!/bin/bash
and try logout-login via LightDM.
Confused Cheers!!!
You Can't Always Git What You Want

VastOne

Quote from: PackRat on January 11, 2017, 07:48:47 PM
@vastone -

I'm having a hard time visualizing this setup. Do you have multiple installs of VSIDO and a shared /home partition? And you log into each install as "vastone"?

Yes... And even further they are the EXACT same partitions at one time.. I use fsarchiver and backup and restore to several partitions for redundancy and for testing cases just as this one

The only thing I regret is this is my A partition, where grub is held.. I should have dropped to either B, C or D partition to test.. :D

I can simply fsarchive anyone of those and bring it back if this is not resolved to my liking
VSIDO      VSIDO Change Blog    

    I dev VSIDO

PackRat

So then you also have 4 (?) / partitions?

So when you successfully log in via lightdm, you are reading the original Debian /etc/bashrc and /etc/profile files?
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo