On 06/13/2014 04:42 PM, akhiezer wrote:
Date: Fri, 13 Jun 2014 14:34:42 -0500
From: Dan McGhee <[email protected]>
To: LFS Support List <[email protected]>
Subject: [lfs-support] Preparing for new LFS build

Getting ready to build LFS-7.5 and want to "head off" some situations
before I begin.  Somewhere in my last {,B}LFS build, I lost--or never
had--the ability to run "su" or "su -"  Yes, I have sudo, but I use the
Package Users--I know, I know--System and need "su."  I have PAM
installed currently and used Christopher Gregory's solution, documented
on a recent post to "blfs-dev" and copied /etc/pam.d/su to
/etc/pam.d/su-1.  This did not solve the situation.

Here is the result of running

-rwxr-xr-x  1 shadow-4.1.5.1 shadow-4.1.5.1    135159 Dec 11  2013 su
Does "su" need to be owned by root or run suid to work?  Do the files in

(( A point of (indirect) ref: here it's typically:

-rws--x--x 1 root root [...] /bin/su*

; that's on non-PAM systems - oh and the size is typically ~60K.

))

chown root:root and chmod u+s fixed it.

I know that there are many who don't have any use for the Package User System, and this is probably one of the things they don't like. Permissions and attributes for files are *very* important, and I must take particular care to note things like this from build to build.

Thanks again, akh.
Dan

--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to