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 Wed 04 May 2016, 17:32
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Package Collections / Repositories
Looking for Slackware su utility
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
FossLab

Joined: 04 Jan 2016
Posts: 14

PostPosted: Mon 04 Jan 2016, 21:27    Post subject:  Looking for Slackware su utility
Subject description: Does anyone where where I can find su
 

Hello:

I'm looking for the Slackware su utility. Slacko 6.3.0 uses busybox and I would like to avoid having to chmod 4755 /bin/busybox so that another user can $(su root).

Background: can now surf as user fido but want to be able to $(su root) from urxvt window.

If I could find su then I could chmod 4755 su and leave busybox alone.

Would anyone know which Slackware package su is located in?

If not anyone know of a quicker way to find it without having to download a zillion packages?

[most search engines are not much help on this issue, perhaps topic is too obscure]

Thanks
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1234
Location: nyc

PostPosted: Tue 05 Jan 2016, 03:31    Post subject:  

http://packages.slackware.com/

http://slackbuilds.org/


you could try a search of those if you haven't already.
Back to top
View user's profile Send private message 
FossLab

Joined: 04 Jan 2016
Posts: 14

PostPosted: Tue 05 Jan 2016, 21:59    Post subject: Update  

OK, took longer than expected but found su in the shadow-4.2.1* package (go to slackware-current)

It works but not as I wanted.

If you install the shadow-4.2.1-i486-1.tgz package you also get the following

/bin/su
/bin/login
/sbin/nologin
/sbin/sulogin
/usr/bin/passwd
/usr/sbin/adduser
/usr/sbin/chgpasswd
/usr/sbin/faillog
/usr/sbin/groupdel
/usr/sbin/groupmod
/usr/sbin/useradd
/usr/sbin/userdel
/usr/sbin/usermod
/usr/sbin/

and other files for a total of about +6 MB of extra stuff.
One might also wish to check the permissions on the extra files, especially the setuid bits.

Now +6 MB of extra files is not too bad on a PC with enough memory but for an older machine with less RAM or a RPi ... every byte counts.

Things work as expected if the entire package is installed/used.
As root $(su fido) then [as fido] $(su root) work as expected.

However replacing the link $(/bin/su -> /bin/busybox) with the new /bin/su and changing all the other old links back to busybox does not seem to do anything when you type the command $(su fido).

The newer su might need something in the shadow package that does not work as expected using busybox.

It seems that one must accept the entire shadow-4.2.1-i486-1.tgz package or live with the busybox links.

I did not spend enough time testing the shadow package to determine if something might break the Slacko system (which was tested with busybox).

Interesting experiment though.
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2502

PostPosted: Wed 06 Jan 2016, 07:07    Post subject:  

You didn't unset the suid bit, did you?
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Package Collections / Repositories
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.0495s ][ Queries: 11 (0.0093s) ][ GZIP on ]