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 01-13-2019, 03:19 AM   #511
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,022

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208

What if I want to build Slackware (From Scratch) for i686 instead of i586?

I am curious about how behaves a "pure" i686 Slackware compared with the official one.

Then, my question: SFS permits me to slightly change the architecture?

Last edited by ZhaoLin1457; 01-13-2019 at 03:28 AM.
 
Old 01-13-2019, 04:35 AM   #512
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
I think you may have to edit every single SlackBuild to change ARCH:
-----------
if [ -z "$ARCH" ]; then
case "$(uname -m)" in
i?86) ARCH=i586 ;;
arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$(uname -m) ;;
esac
export ARCH
fi
---------
ARCH=i586 to ARCH=i686
If you may do it by hand, with awk/sed it should be possible?

Last edited by nobodino; 01-13-2019 at 04:46 AM.
 
2 members found this post helpful.
Old 01-13-2019, 04:44 AM   #513
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
for this specific case (i586 -> i686) consider also this

https://www.linuxquestions.org/quest...9/#post5406886
 
2 members found this post helpful.
Old 01-19-2019, 05:58 AM   #514
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
regression test up to "Fri Jan 18 04:39:25 UTC 2019": pb with liblastfm
---------------------------
liblastfm-1.0.9/demos/demo1.cpp
liblastfm-1.0.9/demos/demo3.cpp
liblastfm-1.0.9/demos/demo2.cpp
liblastfm-1.0.9/CMakeLists.txt
liblastfm-1.0.9/README.md
CMake Error: No source or binary directory provided
make: *** No targets specified and no makefile found. Stop.
make: *** No targets specified and no makefile found. Stop.
---------------------------
same problem on Slackware and SFS.
 
1 members found this post helpful.
Old 01-19-2019, 07:11 PM   #515
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2, Slackware-from-Scratch
Posts: 241

Original Poster
Rep: Reputation: 45
Is anyone else having troubles with "su" on Slackware-current?

Action in past (as superuser): su - username
Result: logged in as username

Slackware-current as of Friday, 20190118: su - username
Result: if called from terminal, requests password. If called from script stops dead in terminal used.

I can't find this problem on the net and have run out of places to look. Advice needed.

TIA
 
Old 01-19-2019, 07:53 PM   #516
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
@worsel

If PAM is involved, this might help:
https://www.linuxquestions.org/quest...ssword-560989/

I only run -current on ARM and need to update it, but first I need to change the SDCard on the test box. Will try to replicate this, although I don't have PAM.
 
Old 01-19-2019, 11:58 PM   #517
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2, Slackware-from-Scratch
Posts: 241

Original Poster
Rep: Reputation: 45
@abga

Slackware doesn't use PAM. Thanks for replying.
 
Old 01-20-2019, 01:23 AM   #518
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
Worsel: have you seen my post #510?
 
Old 01-20-2019, 02:04 AM   #519
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
Quote:
Originally Posted by worsel View Post
@abga

Slackware doesn't use PAM. Thanks for replying.
You're welcome. I know it doesn't that's why I put if in front of the question (not a statement).
Work on PAM has been done:
http://www.slackware.com/~vbatts/pam/
And is still ongoing, unofficially:
https://github.com/Dlackware/pam
I asked about PAM, because of the nature of this thread (development, testing, goofin' around) and unable to "find this problem on the net" myself, but only the link I provided, related to PAM.

Now, I did change the SDCard on my Raspberry Pi running Slackware ARM -current, the old card went read-only - complete failure, updated the system and was unable to replicate your reported issue, whatever I tried, neither in console, nor in a script. Which leads me to believe that you might have some issues on your system: /etc/passwd* or data corruption related.
Try switching the user by also providing the shell type:
Code:
/bin/su - username -s /bin/bash
and see if it works, if positive, check your /etc/passwd* for inconsistencies.

If negative, I'd suggest to start a new thread dedicated to this, authentication issues are serious issues and need further investigation.

P.S. To exclude bash, as nobodino has apparently found some issues with it, try:
Code:
/bin/su - username -s /bin/sh

Last edited by abga; 01-20-2019 at 02:14 AM. Reason: P.S.
 
Old 01-20-2019, 04:31 AM   #520
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
On a clean uptodate slackware-current I do not see this weird "su -" behaviour.
 
Old 01-20-2019, 04:41 AM   #521
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
neither "/bin/su - sfs -s /bin/bash"

nor "/bin/su - sfs -s /bin/sh",

nor the old command "su - sfs"

works. It's blocked nowhere (see enclosed screen capture).

root@drakstart64:~/scripts# more /etc/passwd | grep sfs
sfs:x:1000:1000::/home/sfs:/bin/bash

If I revert to bash-4.4.023, everything is ok.
Attached Thumbnails
Click image for larger version

Name:	Capture du 2019-01-20 11-39-56.png
Views:	27
Size:	251.2 KB
ID:	29521  

Last edited by nobodino; 01-20-2019 at 04:46 AM.
 
Old 01-20-2019, 08:16 AM   #522
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
I modified the script prep-sfs-tools so that the operator enter 'su -f sfs' manualy.

Last edited by nobodino; 01-20-2019 at 10:51 AM.
 
Old 01-20-2019, 11:30 AM   #523
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
nota: liblastfm solved in -current
 
Old 01-20-2019, 03:10 PM   #524
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2, Slackware-from-Scratch
Posts: 241

Original Poster
Rep: Reputation: 45
Quote:
Worsel: have you seen my post #510?
Yes, but somehow didn't relate it to this problem. Mea culpa!

Quote:
I modified the script prep-sfs-tools so that the operator enter 'su -f sfs' manualy.
I was looking into this, but hadn't got it to work. Will try it today.
 
Old 01-20-2019, 06:46 PM   #525
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
Quote:
Originally Posted by nobodino View Post
neither "/bin/su - sfs -s /bin/bash"

nor "/bin/su - sfs -s /bin/sh",

nor the old command "su - sfs"

works. It's blocked nowhere (see enclosed screen capture).

root@drakstart64:~/scripts# more /etc/passwd | grep sfs
sfs:x:1000:1000::/home/sfs:/bin/bash

If I revert to bash-4.4.023, everything is ok.
My fault, to entirely exclude bash would have required to start as root with /bin/sh, because otherwise you'd be already using bash...
Code:
sfs-or-other-username$ /bin/su - -s /bin/sh
root# echo $SHELL
root# /bin/su - sfs -s /bin/sh
sfs$ echo $SHELL
Your /etc/password entry is valid and I'm happy you found out that bash 5.0 was causing the issue.

Don't know how could bash cause such an issue, by not passing the right arguments to su (which is part of the shadow package)?
Try running a strace as root under bash 5.0:
Code:
mkdir /tmp/trace && cd /tmp/trace
/usr/bin/strace -o bash-du-trace -ff su - sfs
exit
# and inspect the bash-du-trace.* files in /tmp/trace
and see if you can catch something. Prepare a second tty to be able to kill the strace as it might get the tty locked.

Last edited by abga; 01-20-2019 at 07:27 PM. Reason: typo + proper strace
 
  


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] /usr/bin/X11/X11/....... 10 X11 subsets & counting walter74 Linux - General 2 06-07-2015 12:36 AM
How do I get the /etc/X11/X file rebuilt from scratch rickh Debian 4 05-07-2006 11:06 PM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 05:11 AM

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

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