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
Looking for Slackware su utility
- Puppus Dogfellow
- Posts: 1667
- Joined: Tue 08 Jan 2013, 01:39
- Location: nyc
http://packages.slackware.com/
http://slackbuilds.org/
you could try a search of those if you haven't already.
http://slackbuilds.org/
you could try a search of those if you haven't already.
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.
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.