Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 19 Sep 2019, 08:28
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Default root password for bionicpup?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
haywirepc

Joined: 19 Nov 2009
Posts: 118

PostPosted: Wed 11 Sep 2019, 14:21    Post subject:  Default root password for bionicpup?  

Somehow my chrome installed from repo got borked, trying to install from google provided deb. It prompts for a root password.

Suddenly I realized I never needed this before. Tried woofwoof, puppy, root, no go. Any idea what the default root password is in bionicpuppy linux?
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 1230
Location: Connecticut, United States

PostPosted: Wed 11 Sep 2019, 14:27    Post subject:  

what happens when in a terminal you type "passwd"?

It must be an Ubuntu installer for chrome asking for a root password.
Back to top
View user's profile Send private message Visit poster's website 
williams2

Joined: 14 Dec 2018
Posts: 141

PostPosted: Wed 11 Sep 2019, 15:59    Post subject:  

An unprivleged user, like spot, can not use su to switch to root
if su is not set suid
Code:
# su spot
$ su
su: must be suid to work properly
$ exit
exit
# chmod -v u+s /bin/su
mode of '/bin/su' changed from 0755 (rwxr-xr-x) to 4755 (rwsr-xr-x)
# su spot
$ su
Password:
# whoami
root
# chmod -v u-s /bin/su
mode of '/bin/su' changed from 4755 (rwsr-xr-x) to 0755 (rwxr-xr-x)

But su is a symlink to busybox, so setting the suid bit for su
is really setting the suid bit for busybox.
So busybox and any symlinked busybox applet would allow spot to use any of these programs as if spot were root.
This doesn't matter much if you are running as root anyway.

You could try setting suid by typing or pasting this in a text terminal
(click the "console" icon on the desktop:
Code:
chmod -v u+s /bin/su

Then try installing Chrome.
Then unset the suid bit:
Code:
chmod -v u-s /bin/su


suid might not be what is causing your problem.
Back to top
View user's profile Send private message 
haywirepc

Joined: 19 Nov 2009
Posts: 118

PostPosted: Wed 11 Sep 2019, 16:28    Post subject:  

passwd did it. Not sure why I didn't think of that, I thought you needed the old password to change it. thanks.

I think my chrome issue was caused by installing both the latest from the chrome install website and the one from the puppy repos previously.

Uninstalled all and just installed the one from chrome site, now everything seems to be working nicely.

Thank you all for your help.
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5390
Location: King's Lynn, UK.

PostPosted: Wed 11 Sep 2019, 18:21    Post subject:  

@ haywirepc:-

Goes to prove what I've been trying to get people to understand for years. The official Google-Chrome Linux installer is a .deb package. Now, while .deb packages will install in Pup - most of the time, anyway - the Chrome installer is a bit of a special case. Sure, it'll install.....but in the process of doing so, it buggers up permissions throughout the pup_ro2 layer, and borks CUPS, amongst other things. Rolling Eyes

This is why I've been building special Puppy-only packages for the last 2 or 3 years; they're built to work with the Puppy way of doing things. Pup may well be 'binary-compatible' with Ubuntu.....but it sure as hell is NOT Ubuntu. There's also the issue of Ubuntu being a true 'multi-user' system, with the .deb package expecting to be installed by a 'user', rather than the root admin user (which Puppy is). It's written with permissions set accordingly, and expecting the use of 'sudo' to permit installation.....

I assume this must be Bionicpup64 we're talking about, yes?


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
williams2

Joined: 14 Dec 2018
Posts: 141

PostPosted: Wed 11 Sep 2019, 19:05    Post subject:  

Quote:
expecting the use of 'sudo' to permit installation.....


spot does not seem to be in the /etc/sudoers file
(in my BionicPup64)
Code:
# su spot
$ sudo grep nobody /etc/shadow
spot is not in the sudoers file.  This incident will be reported.
$ sudo su
Password:
spot is not in the sudoers file.  This incident will be reported.
$ exit
exit
#


I can enable it by editing /etc/sudoers
and adding a line something like this:
Code:
spot   ALL=(root) ALL


Code:
# whoami
root
# su spot
$ whoami
spot
$ grep nobody /etc/shadow
grep: /etc/shadow: Permission denied
$ sudo grep nobody /etc/shadow
Password:
nobody:!:11141:0:99999:7:::
$ su
su: must be suid to work properly
$ sudo su
sh-4.4# whoami
root
sh-4.4#


Personally, I don't need spot to be allowed to use sudo.

BE CAREFUL EDITING /etc/sudoers
IT CAN PREVENT THE OS STARTING.

I boot to ram with an adrv sfs file, so if I reboot
everything is exactly the same as the last time I booted.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0412s ][ Queries: 12 (0.0092s) ][ GZIP on ]