Page 1 of 1

How to setup root login for Bionicpup8?

Posted: Fri 27 Mar 2020, 16:18
by sankarv
i have installed bionic pup 8 in my harddisk. its really good.

since i need security, how to setup ask for password for root login.

someone please help.

also please let me know what is the default root password.
thanks a lot in advance.

Posted: Fri 27 Mar 2020, 17:16
by rockedge
default password is -> woofwoof

to change for root, in a terminal use ->

Code: Select all

passwd
It will take some modifications to the start up process to force a user login which would be from the command line before the Xorg server starts.

I can tell you though that with the correct configuration and safe practices running as the root user poses very little in actual danger.

Does your security concerns include someone using the machine while you are away from it physically? There is always the "Lock" functions built into Puppy Linux which will require a password to access the desktop and file system.

Be patient there many members of this forum who really know a lot and can give you better advice and will more than likely offer you some good advice.

Posted: Fri 27 Mar 2020, 17:38
by williams2
Edit the file inittab in /etc
Change this:

Code: Select all

tty1::respawn:plogin
to this:

Code: Select all

tty1::respawn:getty 38400 tty1

Posted: Fri 27 Mar 2020, 19:47
by bigpup
WARNING
Make sure you remember the password you make.


This is how to setup Xlock

Require password at boot to use desktop.

You could set up Xlock to start on boot and use a password to unlock screen.
Xlock (lock icon on desktop) is a screen lock that requires a password to unlock.

1. Click on lock icon on desktop (xlock) to set up your password, if you haven't already
2. Drag "xlock" from /usr/bin/ to the startup directory /root/Startup.
3. Choose "Link (absolute)" from the choices given in the pop-up menu.

Now, whenever you start Puppy, you will see the desktop only for a moment, then xlock will kick in to lock the screen.
You will have to use Xlock password to unlock screen and get usable desktop.

Posted: Fri 27 Mar 2020, 19:48
by bigpup
I am all worried about running as root.
Do you really understand what the difference really is by not running as root?
https://igurublog.wordpress.com/2010/01 ... -not-root/

Puppy Linux is a one user Operating System. (root)
It really does not offer other users to use it.

There is spot.
But spot is made to run web browsers, so they only can download to and access spot directory.
All other programs are being run as root.

Posted: Sat 28 Mar 2020, 20:54
by rockedge
I create additional users all the time on Puppy Linux. To run web servers and mysql database servers, separate users are needed. In /home/www-data/.bashrc I can place this file to specify certain parameters while running as www-data if I decide to run programs from the terminal as www-data.

One can add and/or change the passwd for the user name and use /home/www-data as a FTP login directory when pure-ftpd is running for example

Skype will start directly in a terminal that has

Code: Select all

root# su www-data
www-data:root$/usr/share/skypeforlinux/skypeforlinux

Posted: Sat 28 Mar 2020, 21:20
by B.K. Johnson
what is the default login username?

Posted: Sat 28 Mar 2020, 22:27
by rockedge
the root default password is 'woofwoof'

Posted: Sat 28 Mar 2020, 22:27
by rockedge
overflow

Posted: Sun 29 Mar 2020, 02:54
by B.K. Johnson
@rockedge
Was "overflow" in answer to my question?

Posted: Sun 29 Mar 2020, 03:22
by rockedge
no, the post somehow ended up being submitted twice quickly and the thread ended up with the same post doubled. I could have used 'deleted' but I thought I'd come back when I had more to add

Posted: Sun 29 Mar 2020, 03:57
by B.K. Johnson
My asking for the username may sound silly, but ...
I intended to post asking for both username and password then stumbled on this thread and got the password.
Here's why!

There have been quite a few posts. including mine, complaining about puppy freezing.
Because it has been a real PITA for me, repeatedly losing unsaved Composer files, and files temporarily saved to /, I started researching if it's a common Linux problem or unique to puppy or a problem that is Firefox related and a "portable" will solve.

It turns out not to be unique to puppy. I found a few suggestions related to to the GNOMe and XFCE desktops. When my computer froze yesterday, I remembered that one suggestion was Alt+F2. I didn't expect a miracle, but tried it. On a black screen, I got a prompt for login and password. My guesses all failed. I had to press the power-off button.

I wasn't aware of what I considered a backdoor to puppy. So, what is the secret login and password that I can use o my next ftrrze.

Ihad no idea this backdoor existed. Hopefully, peebee or someone elsr can shed some light on this.
Stay tuned.

Posted: Sun 29 Mar 2020, 05:14
by williams2
A Linux OS may start with a text terminal interface (video monitor and keyboard) called a console, to control the operating system.

A long time ago, computers were controlled from a console built into the front of the machine, consisting of switches and lights.

Many Linux OSs have more than one text console, so they are called virtual consoles, as opposed to a text terminal console connected directly to the machine.

My Puppy has 3 virtual text consoles.
You can switch to the first console by pressing ctrl+alt+F1
This is the console Puppy was using when it first started.
You can switch to the other 2 consoles by pressing
ctrl+alt+F2 and ctrl+alt+F3

You can switch back to the graphic interface by pressing ctrl+alt+F4

See /etc/inittab

You need to login to the shell (user user interface).

First type the user name, press <enter>
then type the password then press enter.

You probably want to login as root
The default root password is woofwoof

You can change or set a password by typing passwd

If you set a password for spot, you can login as spot,
though spot can't do much.

If you are logged in as root you can do things like kill processes that might need killing.

You could login as root in one virtual console and login as spot in another console.

reg avoiding root login

Posted: Mon 30 Mar 2020, 14:46
by sankarv
thanks a lot folks for all suggestions. it worked. 8) 8)