On February 19, 2005 02:27 am, lux-integ wrote:
> I am having problems using the su command on an lfs build.  I attach an
> example.  I read the man-page for su and  tried su with  -l,  su with
> -shell=bash. for the same or another user  etc and it fails everytime.
> I am wondering if the coreutls program needs re-installing.
> Some help would be appreciated.

First off, the file you attached was very small, only 118 bytes. There is no 
need to compress such a file with tar and gz. And, tar is only used if you 
have more than one file you want to combine into one archive file.

Next time you can just attach the file as long as they are under 50 KB in 
size. It's easier to work with that way.

Now onto your problem.

Make sure /bin/su has the right permissions: it has to be setuid root to run 
properly. If it is not, it can't access the /etc/shadow file for password 
verification.

Run "ls -l /bin/su" and make sure it looks like this:

[EMAIL PROTECTED]:~$ ls -l /bin/su
-rwsr-xr-x  1 root root 18033 Aug 23 08:55 /bin/su

If it doesn't look like that (the 18033 size and date/time can be different of 
course, ignore those), run: chmod 4755 /bin/su

Try your su program again and see if it works now.


-- 
Gerard Beekmans

/* If Linux doesn't have the solution, you have the wrong problem */

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

Reply via email to