LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-22-2023, 12:45 AM   #1
Alfred-Augustus
Member
 
Registered: May 2022
Posts: 91

Rep: Reputation: 7
Make no login at the keyboard safe?


Hi

Lets say nobody can physically access your computer except you and only you.
Is there a way to make your system safe for surfing the internet
and you don't ever have to log-in or ever use any password?

Even root does not need password as long as it is being accessed while physically with attached keyboard.

Last edited by Alfred-Augustus; 12-22-2023 at 12:52 AM.
 
Old 12-22-2023, 02:11 AM   #2
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 663

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
PLZ dont do it...
 
2 members found this post helpful.
Old 12-22-2023, 02:56 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,927

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
Quote:
Originally Posted by Alfred-Augustus View Post
Hi

Lets say nobody can physically access your computer except you and only you.
Is there a way to make your system safe for surfing the internet
and you don't ever have to log-in or ever use any password?

Even root does not need password as long as it is being accessed while physically with attached keyboard.
Yes, it is possible (I mean log in without password), and no, do not even try to do that, that is not safe. If you can get in, someone else will be able to get in too.
 
Old 12-22-2023, 03:46 AM   #4
j12i
Member
 
Registered: Nov 2013
Location: UTC+1
Distribution: Slackware64 15.0
Posts: 160

Rep: Reputation: Disabled
If you use Plasma, you can enable automatic login in SDDM settings (in Plasma system settings).
 
1 members found this post helpful.
Old 12-22-2023, 04:05 AM   #5
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
Quote:
Originally Posted by Alfred-Augustus View Post
Hi

Lets say nobody can physically access your computer except you and only you.
Is there a way to make your system safe for surfing the internet
and you don't ever have to log-in or ever use any password?

Even root does not need password as long as it is being accessed while physically with attached keyboard.
Use a live-distro (get one here: https://download.liveslak.org/slackware64-15.0-live/ and modify it to auto-login.
Use it on a separate network from all your other devices.
Turn it off when you are done "surfing the internet".

Nothing is absolutely safe.
The most you can do is to make it the least unsafe possible.

Please note that a passwordless computer is more unsafe than one with a password...
 
2 members found this post helpful.
Old 12-22-2023, 04:56 AM   #6
Alfred-Augustus
Member
 
Registered: May 2022
Posts: 91

Original Poster
Rep: Reputation: 7
no... i mean like iPhone and iPad. You dont need a password to use iPad to surf the web.

Why is Linux cannot be like that?

Last edited by Alfred-Augustus; 12-22-2023 at 04:59 AM.
 
Old 12-22-2023, 06:20 AM   #7
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
Quote:
Originally Posted by Alfred-Augustus View Post
no... i mean like iPhone and iPad. You dont need a password to use iPad to surf the web.

Why is Linux cannot be like that?
Why do you think Linux cannot be like that?
It absolutely can.
 
Old 12-22-2023, 07:06 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,927

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
Quote:
Originally Posted by Alfred-Augustus View Post
no... i mean like iPhone and iPad. You dont need a password to use iPad to surf the web.

Why is Linux cannot be like that?
You can create a "safe" user, or a containerized process to protect your host. And you might also set this user passwordless. But you cannot be root on android, sometimes you cannot even be root at all. Creating a passwordless root account and a surfing the web means you will give your host to anyone (who is interested).
 
Old 12-22-2023, 08:29 AM   #9
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Debian, Void, Slackware, VMs
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by rizitis View Post
PLZ dont do it...
Agreed. Running a password-less box as root is a bad idea. You want to have a buffer or two between you and the bad guys. That's why I use sudo for administrative commands (doas on OpenBSD). Keep your unit patched with security updates and have a firewall.
 
1 members found this post helpful.
Old 12-22-2023, 08:34 AM   #10
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 786

Rep: Reputation: 250Reputation: 250Reputation: 250
Quote:
Originally Posted by Alfred-Augustus View Post
no... i mean like iPhone and iPad. You dont need a password to use iPad to surf the web.
You can set init=/bin/bash on boot and jump straight to root. I have Android, and they don't even let you get root, bind a program to an interface, or for the most part see what's going on with system internals. It's locked down with SE Linux. In that scenario, the system is so locked down already that it's no wonder you don't need a password to browse the web.

It's not really accurate to compare a single user locked down system (smartphones) with Linux, with its roots in Unix, which was/is designed as a multi-user system with simultaneous logins originally running on mini-computers.
 
1 members found this post helpful.
Old 12-22-2023, 09:55 AM   #11
Alfred-Augustus
Member
 
Registered: May 2022
Posts: 91

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by Slax-Dude View Post
Why do you think Linux cannot be like that?
It absolutely can.
Everyone is saying if you don't use a root password and a user password on Linux, your system is not safe.

In Android/iOS, there is not even a root password, but you can still update the OS or install new apps.
And nobody use password to log-in to the phone to browse the web.

Last edited by Alfred-Augustus; 12-22-2023 at 09:56 AM.
 
Old 12-22-2023, 09:59 AM   #12
Alfred-Augustus
Member
 
Registered: May 2022
Posts: 91

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by jayjwa View Post
You can set init=/bin/bash on boot and jump straight to root. I have Android, and they don't even let you get root, bind a program to an interface, or for the most part see what's going on with system internals. It's locked down with SE Linux. In that scenario, the system is so locked down already that it's no wonder you don't need a password to browse the web.

It's not really accurate to compare a single user locked down system (smartphones) with Linux, with its roots in Unix, which was/is designed as a multi-user system with simultaneous logins originally running on mini-computers.
Yeah, I would like a very locked-down Linux that don't require password. Lets say I am building a Linux laptop for my parents (who is computer illiterate). Would be great if they don't have to mess with passwords, but still surf the web safely.

Just like my mom bought an iPad from Apple Store and just started using it. No passwords needed.

Last edited by Alfred-Augustus; 12-22-2023 at 10:01 AM.
 
Old 12-22-2023, 10:02 AM   #13
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
Quote:
Originally Posted by Alfred-Augustus View Post
Everyone is saying if you don't use a root password and a user password on Linux, your system is not safe.
Correct.

Quote:
Originally Posted by Alfred-Augustus View Post
In Android/iOS, there is not even a root password, but you can still update the OS or install new apps.
But your user is not root, so you are comparing apples to oranges.

Quote:
Originally Posted by Alfred-Augustus View Post
And nobody use password to log-in to the phone to browse the web.
Yes. Just like you can on linux.
 
Old 12-22-2023, 10:27 AM   #14
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 663

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
Quote:
Originally Posted by Alfred-Augustus View Post
Yeah, I would like a very locked-down Linux that don't require password. Lets say I am building a Linux laptop for my parents (who is computer illiterate). Would be great if they don't have to mess with passwords, but still surf the web safely.

Just like my mom bought an iPad from Apple Store and just started using it. No passwords needed.
On iOS devices, including the iPad, the concept of "root" access is different from that of traditional Unix or Linux systems. In Unix/Linux, "root" typically refers to the superuser or administrator with full control over the system. On iOS, Apple retains full control over the operating system and has the highest level of access.

Here's how it works:

Apple's Control:
Apple has complete control over the iOS operating system. They are the root administrators of the device. This control allows them to define and enforce security policies, manage system updates, and ensure the overall stability and security of the iOS ecosystem.

User Permissions:
When you, as a user, create an Apple ID and set up your iOS device, you are granted certain permissions and access levels. However, this is different from traditional root access. Users have limited access to certain parts of the system, and certain actions may require additional authentication, such as a passcode, Touch ID, or Face ID.

Security Model:
iOS relies on a robust security model that includes features like sandboxing, app permissions, and secure boot processes. These measures are in place to prevent unauthorized access and maintain the integrity of the system.

Updates and Remote Management:
Apple remotely manages and updates iOS devices through the Apple ID, iCloud, and the Software Update mechanism. This allows them to push security updates and new features directly to devices without requiring user intervention.

In summary, while users have a level of control over their iOS devices, the ultimate root authority lies with Apple. Users can customize their devices to a certain extent, but Apple's control over the operating system ensures a consistent and secure user experience. The security measures in place also help protect the device and user data from potential threats.

Last edited by rizitis; 12-22-2023 at 10:29 AM.
 
3 members found this post helpful.
Old 12-22-2023, 02:16 PM   #15
lostintime
Member
 
Registered: Dec 2021
Posts: 195

Rep: Reputation: Disabled
Hi Alfred-Augustus,

To autologin when booting to console (runlevel 3), edit /etc/inittab. Something like this:

c1:12345:respawn:/sbin/agetty --autologin <username> --noclear 38400 tty1 linux
--noclear 38400 tty1 linux

Consult the respective display manager docs to autologin when booting to runlevel 4 with a display/login manager. With sddm that comes packaged with Slackware, edit /etc/sddm.conf:

Code:
[Autologin]
User=<username>
There is no requirement to directly edit /etc/sddm.conf. Autologin can be configured with the KDE System Settings tool, Startup and Shutdown --> Login Screen (SDDM) --> Behavior button.

Most display/login managers support autologin and password-less logins. Some display/login managers are designed not to support root logins. Logging in as root with sddm is supported.

Surfing the web without credentials is straightforward because most web browsers support storing credentials. Similarly, email clients support storing credentials too.

I hope that helps. Have fun!
 
4 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
[SOLVED] Are wireless keyboard safe to use? linuzfreak Linux - Hardware 6 05-11-2014 08:30 PM
Not login in mysql safe mode telltobalaji Linux - General 2 07-04-2012 10:15 PM
Mouse and keyboard lockup in Safe mode with Networking Newbie - linux Linux - Newbie 2 11-17-2011 05:11 PM
midi keyboard, how to make sound?midi keyboard, how to produce sounds? Blyiss Linux - Software 10 03-24-2007 08:53 PM
safe guarding your system by not allowing anyone to login as root abhis_mail2002 Fedora 6 05-14-2006 02:58 AM

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

All times are GMT -5. The time now is 10:34 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