LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-29-2023, 10:17 AM   #16
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242

Quote:
Originally Posted by teckk View Post
From a terminal

Fix the $PATH for user.

In a terminal
Code:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

echo $PATH

ls /bin
Code:
cat /etc/profile
#fix it
/etc/login.defs
/etc/environment
~/.pam_environment
~/.bash_profile
~/.bash_login
~/.profile
/etc/profile.d

/etc/zshenv
~/.zshenv
/etc/zprofile
~/.zprofile
/etc/zlogin
/.zlogin
that/this whole system is broke? it has been upgraded to 23.04 and I've added 3 other users and let it set, then I'm finding out when I logout then try to log in again I lose my login, switch tty log in then ls the dir and get this error ls is in user bin. (every thing is being associated to the actual users bin)

now I got a figure out how to fix PATH as this screw up is applying across the user land (?)

Last edited by BW-userx; 04-29-2023 at 10:19 AM.
 
Old 04-30-2023, 02:02 PM   #17
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
I got it fixed, I don't know exactly what it was that was causing it, but I delete my entire bin in home then it logged in like it should then I added back into bin only the scripts I use regularly and logged out then in and it works like it should now. something strange in a script I wrote somewhere.
 
Old 05-06-2023, 10:12 AM   #18
vmelkon
Member
 
Registered: Feb 2007
Location: Canada
Distribution: Kubuntu 22.04
Posts: 549

Rep: Reputation: 84
Quote:
Originally Posted by BW-userx View Post
you want the entire script?

it doesn't matter anymore. this Ubunututu got me so I cannot login now, I cannot even go into a ROOT GUI login because it looks like there login manager does not work like that because #^$*#^$*@^*$@ asses figured no one should even learn how to use root so they hide it as best they can. lalalala anyways I am about to dump this distro again.
I have not used Ubuntu Studio but I imagine it is similar to Kubuntu.
If you want to enable root login into the GUI, it is easy.

1.
You should create a password for the root account if you have not done so already.
sudo passwd root


2. You will need to comment out a line from /etc/pam.d/sddm
You can open it from the command line
sudo nano /etc/pam.d/sddm

3.
At the near top of that file, comment out this line
auth required pam_succeed_if.so user != root quiet_success

To save the file, press Ctrl-O
To quit nano, press Ctrl-X

Now, you can log out and log from the GUI using the username = root
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What I know, looking for what I don't know I don't know Dontpanic Linux - Newbie 18 07-23-2019 07:37 PM
what the frig? sorry, I don't know what I should call this one... vdogvictor Linux - Hardware 1 09-19-2004 11:37 PM
I don't even know what to name this one! loran Linux - Newbie 43 03-05-2003 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration