LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux
User Name
Password
4MLinux This forum is for the discussion of 4MLinux.

Notices


Reply
  Search this Thread
Old 01-05-2021, 10:56 AM   #1
4ML220
LQ Newbie
 
Registered: Aug 2017
Posts: 16

Rep: Reputation: Disabled
How should I logout? (from 'root' acct > into new created standard 'user')


Hi guys, after instalation 4Mlinux v34.2 to PC hdd and restarts and setting root paswd and a few settings > then I've followed web-site original instructions to create standard new 'user' & paswd > and after that I should log-out from root and log-in into standard user.


Q1:
But how can I log-out from this root acct and get into 'user'?
The JWM start menu doesn't have logout button & using some commands did not help logout:

logoff
logout
session-logout
CTRL+D
exit
gnome-session-quit --force
gnome-session-save --kill
pkill -KILL -u root
sudo pkill -u root
sudo pkill -KILL -u root

Neither restart works - 4MLinux just restart & log straight into 'root' acct again & again ...
I used also the Menu > JWM exit > so it exit into black command screen > I used command logout > then try login again as 'user' > enter passw > controll command 'whoami' says 'user' > but it's not letting use command 'startx' - there's always answer:
killall: can't kill pid XXX: Operation not permited

Is there please any way how to do it? How to log in and use allways standard acct. 'user' instead of 'root' in 4MLinux.
Thank you.


Q2:
So it looks like I will have to wipe it out of my hdd and try to do clear reinstall.
What is the proper way to install & create 7 use acct. 'user'?
1. install linux with create root > set root > install all sw & everything settings as 'root' > then create 'user' acct > log into 'user' > use 'user'?
or
2. install linux with create root > set root > create 'user' acct. right away > log into 'user' > install all sw & everything settings as 'user' > use 'user'?
or
3. install linux with create root > set root > create 'user' acct right away > stay into 'root' > install all sw & everything setiings as 'root' > then log into 'user' > use 'user'?


Q3:
And how to make 4MLinux to start pc automatic into 'user' (not into 'root')?
 
Old 01-05-2021, 04:58 PM   #2
era31415
LQ Newbie
 
Registered: May 2013
Posts: 4

Rep: Reputation: Disabled
I think you might get what you want with:
Quote:
exec su - user
exec replaces the current process with a new one described in its arguments
the new command overlays the current shell without spawning a new process.

Since the pid (Process Identity does not change then the new command replaces without
remembering the old process, including the root ID it was running with, everything run from that point on will be the new user you have named because the su Set User runs its arguments as user.

The - tells su to set up and run the login sequence.

As user. The default if no user is named is root.

Enjoy your Explorations!
 
Old 01-06-2021, 04:49 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
Why don't you just reboot? That's what most people do after installing.
 
Old 01-06-2021, 12:05 PM   #4
Merlin2
LQ Newbie
 
Registered: Jul 2015
Distribution: Puppy
Posts: 14

Rep: Reputation: Disabled
Shut down remove power

If your computer has a UEFI BIOS, you MUST Power off to obtain a clean reboot. Rebooting with many UEFI firmware versions DOES NOT perform a clean warm re-boot. I suggest you log off and remove the power cord from your computer. Then wait at least ten seconds before replacing the power cord. Remember the original IBM PC power supply was designed to retain power for at least ten seconds

Good Luck
 
Old 01-06-2021, 12:57 PM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
Quote:
Originally Posted by Merlin2 View Post
Rebooting with many UEFI firmware versions DOES NOT perform a clean warm re-boot.
I wonder if that's what is stopping my Lenovo Thinkstation from rebooting. istr it did reboot when I first got it a couple of years ago, but it doesn't now unless I briefly switch off and on again.
 
Old 01-06-2021, 02:03 PM   #6
Merlin2
LQ Newbie
 
Registered: Jul 2015
Distribution: Puppy
Posts: 14

Rep: Reputation: Disabled
A simple way to find out that works for me is:Ii hold down the left SHIFT key when I click on shutdown OR reboot. Works every time on my Lenovo ThinkCenter with Linux or Windows 10. Sometimes shutdown and reboot do not give me a clean reboot if I forget to hold down the LEFT SHIFT key. Then I must remove the power cord. Aa far as i can tell the UEFI firmware seems to be designed to keep a minimum power state to the motherboard and retain the previous boot parameters.
M
 
Old 01-07-2021, 12:06 PM   #7
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,254

Rep: Reputation: 220Reputation: 220Reputation: 220
Hi,

https://www.linuxquestions.org/quest...me-4175553243/
https://www.linuxquestions.org/quest...er-4175581471/

The "logout" command should work unless you disabled it here:
https://www.linuxquestions.org/quest...in-4175686492/

.

Last edited by zk1234; 01-07-2021 at 12:08 PM.
 
Old 01-08-2021, 04:21 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
Quote:
Originally Posted by Merlin2 View Post
A simple way to find out that works for me is:Ii hold down the left SHIFT key when I click on shutdown OR reboot. Works every time on my Lenovo ThinkCenter with Linux or Windows 10.
M
I tried that last night, keeping the left shift down through shutdown and into restart. It still froze on me after completing the POST. It always freezes either there (where UEFI is supposed to hand over to the bootloader) or later where the bootloader is supposed to hand over to the kernel. But unlike you, I can always unfreeze it by flicking the wall switch. I've never had to unplug it.
 
Old 08-25-2021, 06:55 AM   #9
4ML220
LQ Newbie
 
Registered: Aug 2017
Posts: 16

Original Poster
Rep: Reputation: Disabled
OK, thank you guys a lot for your help.
After a few months of trying now I know that I did read the manual of 4MLinux wrong:
There is an instruction "... recommended to not create regular user account ..." following with instructions how to create regular user account.
So I did not see the word "NOT" and followed it ...
Sorry about it.

This thread can be closed now.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Zentyal 4.1 Standard user with restrictions similar to MS server 2008/2 standard user atomiccomp Linux - Server 3 08-14-2015 06:11 AM
acct sa only shows only root no user data dersh Linux - Software 1 02-23-2010 08:01 AM
[SOLVED] changed username in slackware12.1 now can't sign into acct NightSky Slackware 6 10-28-2009 04:15 PM
can't login to GNOME as acct's created before XF86Config change? morrolan Linux - Software 7 01-16-2004 06:08 AM
*nEW* Sound and User Acct's Tasha v71 Linux - Newbie 7 10-22-2001 09:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux

All times are GMT -5. The time now is 05:32 PM.

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